]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: cope with ENOSYS from efx_mcdi_get_workarounds()
authorEdward Cree <ecree@solarflare.com>
Tue, 21 Jul 2015 14:09:31 +0000 (15:09 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Jul 2015 05:21:31 +0000 (22:21 -0700)
commitfbe5aed4a89bc3766f4e636a58689222bbbce6cf
tree96d6f91d99258465e30a935ddb0fd0729f29cea8
parente874fedc9437851c51cb840167de85030e348b9d
sfc: cope with ENOSYS from efx_mcdi_get_workarounds()

GET_WORKAROUNDS was only introduced in May 2014, not all firmware
 will have it.  So call sites need to handle ENOSYS.
In this case we're probing the bug26807 workaround, which is not
 implemented in any firmware that doesn't have GET_WORKAROUNDS.
 So interpret ENOSYS as 'false'.

Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef10.c
drivers/net/ethernet/sfc/mcdi.c