linux_dsm_epyc7002/drivers/net/ethernet/amd/xgbe
Lendacky, Thomas 88131a812b amd-xgbe: Perform phy connect/disconnect at dev open/stop
A change added to the mdiobus/phy api added a module_get/module_put
during phy connect/disconnect processing. Currently, the driver
performs a phy connect during module probe and a phy disconnect during
module remove. With the addition of the module_get during phy connect
the amd-xgbe module use count is incremented and can no longer be
unloaded.

Move the phy connect/disconnect from the driver probe/remove functions
to the net_device_ops ndo_open/ndo_stop functions.  This allows the
module use count to be decremented when the device(s) are brought down
and allows the module to be unloaded.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-08-05 16:47:02 -07:00
..
Makefile amd-xgbe: Add traffic class support 2014-07-30 18:46:53 -07:00
xgbe-common.h amd-xgbe: Add traffic class support 2014-07-30 18:46:53 -07:00
xgbe-dcb.c amd-xgbe: Add traffic class support 2014-07-30 18:46:53 -07:00
xgbe-debugfs.c amd-xgbe: Fix debugfs compatibility change with kstrtouint 2014-07-07 21:38:06 -07:00
xgbe-desc.c amd-xgbe: Add hardware timestamp support 2014-07-30 18:46:52 -07:00
xgbe-dev.c amd-xgbe: Add traffic class support 2014-07-30 18:46:53 -07:00
xgbe-drv.c amd-xgbe: Perform phy connect/disconnect at dev open/stop 2014-08-05 16:47:02 -07:00
xgbe-ethtool.c amd-xgbe: Remove unnecessary spinlocks 2014-08-02 19:29:53 -07:00
xgbe-main.c amd-xgbe: Use dma_set_mask_and_coherent to set DMA mask 2014-08-05 16:47:02 -07:00
xgbe-mdio.c amd-xgbe: Perform phy connect/disconnect at dev open/stop 2014-08-05 16:47:02 -07:00
xgbe-ptp.c amd-xgbe: Add hardware timestamp support 2014-07-30 18:46:52 -07:00
xgbe.h amd-xgbe: Add traffic class support 2014-07-30 18:46:53 -07:00