]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: remove phy_op indirection
authorEdward Cree <ecree@solarflare.com>
Mon, 7 Sep 2020 16:14:34 +0000 (17:14 +0100)
committerJakub Kicinski <kuba@kernel.org>
Mon, 7 Sep 2020 21:46:13 +0000 (14:46 -0700)
commitb1e54b673cb83bd4ec5a57cc4d0c4d5dd39c01e0
tree288104ff08cac10b5dd7203639baef050fa772cf
parent9d03135e885c3032ea8484b1430b2087b9de4f80
sfc: remove phy_op indirection

Originally there were several implementations of PHY operations for the
 several different PHYs used on Falcon boards.  But Falcon is now in a
 separate driver, and all sfc NICs since then have had MCDI-managed PHYs.
Thus, there is no need to indirect through function pointers in
 efx->phy_op; we can simply call the efx_mcdi_phy_* functions directly.

This also hooks up these functions for EF100, which was previously using
 the dummy_phy_ops.

Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/sfc/efx.c
drivers/net/ethernet/sfc/efx_common.c
drivers/net/ethernet/sfc/ethtool_common.c
drivers/net/ethernet/sfc/mcdi.h
drivers/net/ethernet/sfc/mcdi_port.c
drivers/net/ethernet/sfc/mcdi_port_common.c
drivers/net/ethernet/sfc/mcdi_port_common.h
drivers/net/ethernet/sfc/net_driver.h
drivers/net/ethernet/sfc/selftest.c