Jian Shen
95fb8bb318
net: phy: force phy suspend when calling phy_stop
...
Some ethernet drivers may call phy_start() and phy_stop() from
ndo_open() and ndo_close() respectively.
When network cable is unconnected, and operate like below:
step 1: ifconfig ethX up -> ndo_open -> phy_start ->start
autoneg, and phy is no link.
step 2: ifconfig ethX down -> ndo_close -> phy_stop -> just stop
phy state machine.
This patch forces phy suspend even phydev->link is off.
Signed-off-by: Jian Shen <shenjian15@huawei.com >
Reviewed-by: Heiner Kallweit <hkallweit1@gmail.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2019-08-28 16:16:27 -07:00
..
2019-08-17 12:34:50 -07:00
2019-04-15 17:19:54 -07:00
2019-02-25 14:16:22 -08:00
2019-05-24 13:39:34 -07:00
2019-02-25 14:16:22 -08:00
2019-08-19 11:54:03 -07:00
2019-06-09 13:24:17 -07:00
2019-04-15 17:19:54 -07:00
2019-04-15 17:19:54 -07:00
2019-05-26 21:56:41 -07:00
2019-04-15 17:19:54 -07:00
2019-03-21 13:41:26 -07:00
2019-03-21 13:41:26 -07:00
2019-06-09 20:05:19 -07:00
2019-04-15 17:19:54 -07:00
2019-03-03 21:47:57 -08:00
2019-04-15 17:19:54 -07:00
2019-08-17 12:34:50 -07:00
2019-04-15 17:19:54 -07:00
2019-08-17 12:34:50 -07:00
2019-08-17 12:34:50 -07:00
2019-05-31 10:49:43 -07:00
2019-04-15 17:19:54 -07:00
2019-07-30 09:54:45 -07:00
2019-04-15 17:19:54 -07:00
2019-04-15 17:19:54 -07:00
2019-08-16 11:56:25 -07:00
2019-05-23 09:19:21 -07:00
2019-08-16 11:56:25 -07:00
2019-05-29 14:25:10 -07:00
2019-05-02 22:14:21 -04:00
2019-04-18 17:42:54 -07:00
2019-04-18 17:42:54 -07:00
2019-08-02 17:56:28 -07:00
2019-08-28 14:51:00 -07:00
2019-03-27 14:27:30 -07:00
2019-01-22 20:58:40 -08:00
2019-01-22 20:53:08 -08:00
2019-01-22 20:59:18 -08:00
2019-08-06 14:11:08 -07:00
2019-01-22 20:58:40 -08:00
2019-08-28 14:51:00 -07:00
2019-01-22 20:53:08 -08:00
2019-01-22 20:53:08 -08:00
2019-08-28 14:51:00 -07:00
2018-05-16 14:20:36 -04:00
2019-01-22 20:53:08 -08:00
2019-01-22 20:59:18 -08:00
2019-08-28 14:51:00 -07:00
2019-01-22 20:53:08 -08:00
2019-02-27 12:52:20 -08:00
2019-01-22 20:59:18 -08:00
2019-01-22 20:59:18 -08:00
2019-08-28 14:51:00 -07:00
2019-01-22 20:59:18 -08:00
2019-08-01 13:10:34 -04:00
2019-01-22 20:53:08 -08:00
2019-08-17 12:34:50 -07:00
2019-04-29 23:17:21 -04:00
2019-08-17 12:34:50 -07:00
2019-08-17 12:34:50 -07:00
2019-08-17 12:34:50 -07:00
2019-04-15 17:19:54 -07:00
2019-05-29 22:02:18 -07:00
2019-08-19 11:54:03 -07:00
2019-07-31 18:56:11 -04:00
2019-08-13 19:49:01 -07:00
2019-08-13 17:14:06 -07:00
2019-08-28 16:16:27 -07:00
2019-07-27 14:27:51 -07:00
2019-04-15 17:19:54 -07:00
2019-08-19 13:04:45 -07:00
2019-04-15 17:19:54 -07:00
2019-05-31 12:37:46 -07:00
2019-08-24 17:01:36 -07:00
2019-02-08 15:11:25 -08:00
2019-04-15 17:19:54 -07:00
2019-04-23 10:44:44 -07:00
2019-04-15 17:19:54 -07:00
2019-08-15 11:43:48 -07:00
2019-03-03 21:47:57 -08:00
2019-04-15 17:19:54 -07:00
2019-08-17 12:34:50 -07:00
2019-02-20 00:34:07 -08:00