From: Christian Iversen Date: Tue, 26 Jan 2021 23:06:37 +0000 (+0100) Subject: [hermon] Throttle debug output when sensing port type X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b2b35981f862ba17765c87f657353f93b5b41d4;p=thirdparty%2Fipxe.git [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 --- diff --git a/src/drivers/infiniband/hermon.c b/src/drivers/infiniband/hermon.c index e3b692dc9..35326ac6e 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 ) );