Heiner Kallweit
bd869245a3
net: core: try to runtime-resume detached device in __dev_open
...
A netdevice may be marked as detached because the parent is
runtime-suspended and not accessible whilst interface or link is down.
An example are PCI network devices that go into PCI D3hot, see e.g.
__igc_shutdown() or rtl8169_net_suspend().
If netdevice is down and marked as detached we can only open it if
we runtime-resume it before __dev_open() calls netif_device_present().
Therefore, if netdevice is detached, try to runtime-resume the parent
and only return with an error if it's still detached.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2020-06-22 16:26:01 -07:00
..
2020-06-14 01:57:21 +09:00
2020-06-02 08:00:39 +02:00
2020-02-24 13:02:53 -08:00
2020-06-13 16:27:13 -07:00
2020-05-18 17:35:02 -07:00
2020-06-13 16:27:13 -07:00
2020-05-24 13:47:27 -07:00
2020-06-09 12:59:45 -07:00
2020-06-03 16:27:18 -07:00
2020-05-19 17:56:34 +02:00
2020-05-26 00:03:16 +09:00
2020-06-13 16:27:13 -07:00
2020-06-14 01:57:21 +09:00
2020-06-14 01:57:21 +09:00
2020-06-08 12:49:18 -07:00
2020-06-22 16:26:01 -07:00
2020-06-14 01:57:21 +09:00
2020-06-13 16:27:13 -07:00
2020-06-14 01:57:21 +09:00
2020-04-28 14:39:46 -07:00
2020-06-13 16:27:13 -07:00
2020-05-23 16:56:17 -07:00
2020-06-17 15:04:57 -07:00
2020-06-14 01:57:21 +09:00
2020-06-14 01:57:21 +09:00
2019-09-26 08:56:17 +02:00
2020-06-20 17:47:53 -07:00
2020-06-20 17:47:53 -07:00
2020-05-19 12:50:14 -07:00
2020-06-14 01:57:21 +09:00
2019-07-08 19:48:57 -07:00
2020-06-14 01:57:21 +09:00
2020-06-20 17:22:22 -07:00
2020-06-14 01:57:21 +09:00
2020-02-26 20:38:13 -08:00
2020-06-13 16:27:13 -07:00
2020-06-14 01:57:21 +09:00
2020-06-14 01:57:21 +09:00
2020-06-15 18:08:50 -07:00
2020-06-14 01:57:21 +09:00
2020-06-15 18:06:52 -07:00
2020-06-14 01:57:21 +09:00
2020-06-13 16:27:13 -07:00
2020-06-09 12:59:45 -07:00
2020-06-14 01:57:21 +09:00
2020-06-14 01:57:21 +09:00
2020-06-14 01:57:21 +09:00
2020-06-14 01:57:21 +09:00
2020-04-27 02:07:40 -04:00
2020-05-23 16:36:05 -07:00
2020-06-14 01:57:21 +09:00
2020-06-15 12:58:59 -07:00
2019-12-16 10:15:49 +01:00
2020-06-09 12:59:45 -07:00
2020-06-11 18:18:22 -07:00
2020-06-20 21:29:27 -07:00
2020-06-14 01:57:21 +09:00
2020-06-14 01:57:21 +09:00
2019-06-22 08:59:24 -04:00
2020-06-11 12:22:41 -07:00
2020-06-14 01:57:21 +09:00
2020-06-19 20:15:25 -07:00
2020-06-14 01:57:21 +09:00
2020-06-14 01:57:21 +09:00
2020-06-05 13:18:26 -07:00
2019-08-10 15:25:47 -07:00
2020-06-13 16:27:13 -07:00
2020-06-14 01:57:21 +09:00
2020-06-13 16:27:13 -07:00
2020-06-22 15:38:56 -07:00
2020-06-01 12:05:45 -07:00
2020-05-23 16:56:17 -07:00
2020-06-14 01:57:21 +09:00
2020-05-23 16:56:17 -07:00
2020-05-29 13:10:39 -07:00
2019-05-21 10:50:45 +02:00