UPSTREAM: phy: Add reset callback for not generic phy
authorRandy Li <ayaka@soulik.info>
Sat, 24 Sep 2016 18:50:17 +0000 (02:50 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 11 Jan 2017 10:00:53 +0000 (18:00 +0800)
I forget to add a dummy function in case the CONFIG_GENERIC_PHY
is disabled.

Change-Id: Ic324387058ef260473fd4ad20ed43eff79044dfe
Signed-off-by: Randy Li <ayaka@soulik.info>
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
(cherry picked from 98430c7aad6a3fdedcc78a0d6780dabb6580dc38)

include/linux/phy/phy.h

index cf867e7c0cc363760c13503659480800c26f41b7..392bdd67a604ae6ef0c90878b755ff47a30f9af0 100644 (file)
@@ -244,6 +244,13 @@ static inline int phy_set_mode(struct phy *phy, enum phy_mode mode)
        return -ENOSYS;
 }
 
+static inline int phy_reset(struct phy *phy)
+{
+       if (!phy)
+               return 0;
+       return -ENOSYS;
+}
+
 static inline int phy_get_bus_width(struct phy *phy)
 {
        return -ENOSYS;