OSDN Git Service

sfc: Poll for MCDI completion once before timeout occurs
authorRobert Stonehouse <rstonehouse@solarflare.com>
Wed, 9 Oct 2013 10:52:48 +0000 (11:52 +0100)
committerBen Hutchings <bhutchings@solarflare.com>
Fri, 6 Dec 2013 22:27:55 +0000 (22:27 +0000)
commit6b294b8efedaa7cf7507154148e2c79766ad6f96
tree23f9942889ba78024c3389808cfe0d1eea738619
parent5731d7b35e5b87157a9b9973cc2eff70c50aec58
sfc: Poll for MCDI completion once before timeout occurs

There is an as-yet unexplained bug that sometimes prevents (or delays)
the driver seeing the completion event for a completed MCDI request on
the SFC9120.  The requested configuration change will have happened
but the driver assumes it to have failed, and this can result in
further failures.  We can mitigate this by polling for completion
after unsuccessfully waiting for an event.

Fixes: 8127d661e77f ('sfc: Add support for Solarflare SFC9100 family')
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/mcdi.c