From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Rutland Subject: Re: [PATCH v10 10/15] usb: phy-mxs: Add implementation of set_wakeup Date: Fri, 21 Feb 2014 09:21:27 +0000 Message-ID: <20140221092127.GC7541@e106331-lin.cambridge.arm.com> References: <1392873284-9386-1-git-send-email-peter.chen@freescale.com> <1392873284-9386-11-git-send-email-peter.chen@freescale.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1392873284-9386-11-git-send-email-peter.chen@freescale.com> Sender: linux-doc-owner@vger.kernel.org To: Peter Chen Cc: "balbi@ti.com" , "shawn.guo@linaro.org" , "robh+dt@kernel.org" , "grant.likely@linaro.org" , Pawel Moll , "alexander.shishkin@linux.intel.com" , "linux-usb@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "festevam@gmail.com" , "marex@denx.de" , "kernel@pengutronix.de" , "m.grzeschik@pengutronix.de" , "frank.li@freescale.com" , "gregkh@linuxfoundation.org" , "devicetree@vger.kernel.org" , "linux-doc@vger.kernel.org" List-Id: devicetree@vger.kernel.org On Thu, Feb 20, 2014 at 05:14:39AM +0000, 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 is SE0. > Once the PHY is out of power, without calling mxs_phy_disconnect_line, > there are unknown wakeups due to dp/dm floating at device mode. > > Signed-off-by: Peter Chen > --- > drivers/usb/phy/phy-mxs-usb.c | 116 +++++++++++++++++++++++++++++++++++++++++ > 1 files changed, 116 insertions(+), 0 deletions(-) [...] > +static void mxs_phy_disconnect_line(struct mxs_phy *mxs_phy, bool on) > +{ > + bool vbus_is_on = false; > + > + /* If the SoCs don't need to disconnect line without vbus, quit */ > + if (!(mxs_phy->data->flags & MXS_PHY_DISCONNECT_LINE_WITHOUT_VBUS)) > + return; > + > + /* If the SoCs don't have anatop, quit */ > + if (!mxs_phy->regmap_anatop) > + return; So it looks like fsl,anatop is truly optional. Thanks, Mark.