bnxt_en: Wait longer for the firmware message response to complete.
authorMichael Chan <michael.chan@broadcom.com>
Thu, 21 Feb 2019 00:07:32 +0000 (19:07 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Feb 2019 23:16:56 +0000 (15:16 -0800)
commit0000b81a063b5f3ab82fa18041c28327ce72c312
treeeeb98ebee8c6e47dd955873a7cf45db748f79d77
parent67681d02aaa1db9044a16df4ca9c77cde1221a3e
bnxt_en: Wait longer for the firmware message response to complete.

The code waits up to 20 usec for the firmware response to complete
once we've seen the valid response header in the buffer.  It turns
out that in some scenarios, this wait time is not long enough.
Extend it to 150 usec and use usleep_range() instead of udelay().

Fixes: 9751e8e71487 ("bnxt_en: reduce timeout on initial HWRM calls")
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h