]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite0a72b7ad61b33430a19887e568bab4990791e11
tree23f9942889ba78024c3389808cfe0d1eea738619
parentbb63b0cd1e05c53aa18dc01e47180b3c01816fbc
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: 38bd146f0c83 ('sfc: Add support for Solarflare SFC9100 family')
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/mcdi.c