]> 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)
commit5128222a24bede6a4baed6fdc3f0cb3be35092df
tree23f9942889ba78024c3389808cfe0d1eea738619
parentab474492938b6fafe71c1653cc280d7642816a51
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: e9bfce701540 ('sfc: Add support for Solarflare SFC9100 family')
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/mcdi.c