From: David S. Miller Date: Tue, 5 Jun 2018 12:50:18 +0000 (-0400) Subject: Merge branch 'net-phy-improve-PM-handling-of-PHY-MDIO' X-Git-Tag: v4.19~872^2~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7a723099be325f6c5edd25c775b672a056907f75;p=platform%2Fkernel%2Flinux-rpi3.git Merge branch 'net-phy-improve-PM-handling-of-PHY-MDIO' Heiner Kallweit says: ==================== net: phy: improve PM handling of PHY/MDIO Current implementation of MDIO bus PM ops doesn't actually implement bus-specific PM ops but just calls PM ops defined on a device level what doesn't seem to be fully in line with the core PM model. When looking e.g. at __device_suspend() the PM core looks for PM ops of a device in a specific order: 1. device PM domain 2. device type 3. device class 4. device bus I think it has good reason that there's no PM ops on device level. The situation can be improved by modeling PHY's as device type of a MDIO device. If for some other type of MDIO device PM ops are needed, it could be modeled as struct device_type as well. ==================== Tested-by: Andrew Lunn Signed-off-by: David S. Miller --- 7a723099be325f6c5edd25c775b672a056907f75