aboutsummaryrefslogtreecommitdiff
path: root/lib/pm-notifier-error-inject.c
diff options
context:
space:
mode:
authorYonglong Liu <[email protected]>2018-12-15 11:53:21 +0800
committerDavid S. Miller <[email protected]>2018-12-16 12:07:31 -0800
commit308c6cafde0147616da45e3a928adae55c428deb (patch)
tree80d86ff53fbcdc64b4edfaf77de4de16124d512a /lib/pm-notifier-error-inject.c
parent4e1d4be681b2c26fd874adbf584bf034573ac45d (diff)
net: hns: All ports can not work when insmod hns ko after rmmod.
There are two test cases: 1. Remove the 4 modules:hns_enet_drv/hns_dsaf/hnae/hns_mdio, and install them again, must use "ifconfig down/ifconfig up" command pair to bring port to work. This patch calls phy_stop function when init phy to fix this bug. 2. Remove the 2 modules:hns_enet_drv/hns_dsaf, and install them again, all ports can not use anymore, because of the phy devices register failed(phy devices already exists). Phy devices are registered when hns_dsaf installed, this patch removes them when hns_dsaf removed. The two cases are sometimes related, fixing the second case also requires fixing the first case, so fix them together. Signed-off-by: Yonglong Liu <[email protected]> Signed-off-by: Peng Li <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/pm-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions