]> git.karo-electronics.de Git - karo-tx-linux.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)
commit832dc9ed43da8eb2033d90b46c1041e1d6947907
tree96d6f91d99258465e30a935ddb0fd0729f29cea8
parent46e612b0fcefb7a3381933135f386523dedb4159
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