diff options
-rw-r--r-- | include/linux/usb/phy.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/usb/phy.h b/include/linux/usb/phy.h index d25125402fda..43965e530ee4 100644 --- a/include/linux/usb/phy.h +++ b/include/linux/usb/phy.h @@ -126,6 +126,9 @@ struct usb_phy { /* reset the PHY clocks */ int (*reset)(struct usb_phy *x); + + /* update DP/DM state */ + int (*change_dpdm)(struct usb_phy *x, int dpdm); }; /** @@ -286,6 +289,14 @@ usb_phy_set_power(struct usb_phy *x, unsigned mA) return 0; } +static inline int +usb_phy_change_dpdm(struct usb_phy *x, int dpdm) +{ + if (x && x->change_dpdm) + return x->change_dpdm(x, dpdm); + return 0; +} + /* Context: can sleep */ static inline int usb_phy_set_suspend(struct usb_phy *x, int suspend) |