net: usb: asix: ax88772: manage PHY PM from MAC
authorOleksij Rempel <o.rempel@pengutronix.de>
Fri, 11 Jun 2021 03:55:59 +0000 (05:55 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Jun 2021 20:00:31 +0000 (13:00 -0700)
commit4a2c7217cd5a87e85ceb761e307b030fe6db4805
treedbead54ca8d4028c95d4840e0fe4356a222bca37
parentd41783b355d75db055e439a99d8bc47e67a93eb0
net: usb: asix: ax88772: manage PHY PM from MAC

Take over PHY power management, otherwise PHY framework will try to
access ASIX MDIO bus before MAC resume was completed.

Fixes: e532a096be0e ("net: usb: asix: ax88772: add phylib support")
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reported-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reported-by: Jon Hunter <jonathanh@nvidia.com>
Suggested-by: Heiner Kallweit <hkallweit1@gmail.com>
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/asix_devices.c