diff options
author | Christian Iversen <ci@iversenit.dk> | 2021-01-27 00:06:37 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2021-02-01 12:35:22 +0000 |
commit | 7b2b35981f862ba17765c87f657353f93b5b41d4 (patch) | |
tree | 8536a458b3e5c3b8eafb5aedc5845a01931c8fe1 /src/drivers | |
parent | 299c671f57715d5c882eaf0606b1e45ecbd5c73a (diff) | |
download | ipxe-7b2b35981f862ba17765c87f657353f93b5b41d4.zip ipxe-7b2b35981f862ba17765c87f657353f93b5b41d4.tar.gz ipxe-7b2b35981f862ba17765c87f657353f93b5b41d4.tar.bz2 |
[hermon] Throttle debug output when sensing port type
When auto-detecting the initial port type, the Hermon driver will spam
the debug output without hesitation. Add a short delay in each
iteration to fix this.
Signed-off-by: Christian Iversen <ci@iversenit.dk>
Diffstat (limited to 'src/drivers')
-rw-r--r-- | src/drivers/infiniband/hermon.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/drivers/infiniband/hermon.c b/src/drivers/infiniband/hermon.c index e3b692d..35326ac 100644 --- a/src/drivers/infiniband/hermon.c +++ b/src/drivers/infiniband/hermon.c @@ -3743,6 +3743,9 @@ static int hermon_set_port_type ( struct hermon *hermon, rc = port_type; return rc; } + + /* Avoid spamming debug output */ + mdelay ( 50 ); } while ( ( port_type == HERMON_PORT_TYPE_UNKNOWN ) && ( ( elapsed = ( currticks() - start ) ) < HERMON_SENSE_PORT_TIMEOUT ) ); |