]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: allow bnx2x_bsc_read() to schedule
authorEric Dumazet <edumazet@google.com>
Sat, 23 May 2020 19:46:49 +0000 (12:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 May 2020 00:52:48 +0000 (17:52 -0700)
commite02698d1da769575f9cdfbabf0a3cc59c3d9e62b
treead0014bc0a9775b76aeb4bc64743a73488428972
parent708d215e0d70313b1978305eb2a7346d080beebf
bnx2x: allow bnx2x_bsc_read() to schedule

bnx2x_warpcore_read_sfp_module_eeprom() can call bnx2x_bsc_read()
three times before giving up.

This causes latency blips of at least 31 ms (58 ms being reported
by our teams)

Convert the long lasting loops of udelay() to usleep_range() ones,
and breaks the loops on precise time tracking.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Ariel Elior <aelior@marvell.com>
Cc: Sudarsana Kalluru <skalluru@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c