[Patch v2 13/14] usb: phy-mxs: Add implementation of set_wakeup

2013-10-21 Thread Peter Chen
When we need the PHY can be waken up by external signals, we can call this API. Besides, we call mxs_phy_disconnect_line at this API to close the connection between USB PHY and controller, after that, the line state from controller is SE0. Once the PHY is out of power, without calling mxs_phy_disco

Re: [Patch v2 13/14] usb: phy-mxs: Add implementation of set_wakeup

2013-10-22 Thread Shawn Guo
On Tue, Oct 22, 2013 at 01:58:47PM +0800, Peter Chen wrote: > When we need the PHY can be waken up by external signals, > we can call this API. Besides, we call mxs_phy_disconnect_line > at this API to close the connection between USB PHY and > controller, after that, the line state from controller

Re: [Patch v2 13/14] usb: phy-mxs: Add implementation of set_wakeup

2013-10-23 Thread Peter Chen
On Wed, Oct 23, 2013 at 02:35:23PM +0800, Shawn Guo wrote: > > > > +static void mxs_phy_disconnect_line(struct mxs_phy *mxs_phy, bool on) > > +{ > > + void __iomem *base = mxs_phy->phy.io_priv; > > + bool vbus_is_on = false; > > + static bool line_is_disconnected; > > + unsigned int vbus_