From: Randy Li Date: Sat, 24 Sep 2016 18:50:17 +0000 (+0800) Subject: UPSTREAM: phy: Add reset callback for not generic phy X-Git-Tag: firefly_0821_release~770 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6c3361486c1c5f6535925b3e31ab40e1557de0bd;p=firefly-linux-kernel-4.4.55.git UPSTREAM: phy: Add reset callback for not generic phy I forget to add a dummy function in case the CONFIG_GENERIC_PHY is disabled. Change-Id: Ic324387058ef260473fd4ad20ed43eff79044dfe Signed-off-by: Randy Li Signed-off-by: Shawn Lin (cherry picked from 98430c7aad6a3fdedcc78a0d6780dabb6580dc38) --- diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h index cf867e7c0cc3..392bdd67a604 100644 --- a/include/linux/phy/phy.h +++ b/include/linux/phy/phy.h @@ -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;