]> git.itanic.dy.fi Git - linux-stable/commit
net: fman: Store en/disable in mac_device instead of mac_priv_s
authorSean Anderson <sean.anderson@seco.com>
Thu, 18 Aug 2022 16:16:28 +0000 (12:16 -0400)
committerJakub Kicinski <kuba@kernel.org>
Fri, 19 Aug 2022 23:35:54 +0000 (16:35 -0700)
commite61406a1955eb968aed43ffb35301ff969d7522f
tree8f16d1db849507a62426ceba95be778fe20d81e3
parentb7d852566a52b41e26f2da7c329816edacf69666
net: fman: Store en/disable in mac_device instead of mac_priv_s

All macs use the same start/stop functions. The actual mac-specific code
lives in enable/disable. Move these functions to an appropriate struct,
and inline the phy enable/disable calls to the caller of start/stop.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Acked-by: Camelia Groza <camelia.groza@nxp.com>
Tested-by: Camelia Groza <camelia.groza@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
drivers/net/ethernet/freescale/fman/mac.c
drivers/net/ethernet/freescale/fman/mac.h