[PATCH v5 08/15] usb: phy-mxs: Add implementation of nofity_suspend and notify_resume
Peter Chen
peter.chen at freescale.com
Mon Dec 9 04:00:42 EST 2013
On Mon, Dec 09, 2013 at 09:31:28AM +0100, Marc Kleine-Budde wrote:
> On 12/09/2013 07:30 AM, Peter Chen wrote:
> > Implementation of notify_suspend and notify_resume will be different
> > according to mxs_phy_data->flags.
> >
> > Signed-off-by: Peter Chen <peter.chen at freescale.com>
> > ---
> > drivers/usb/phy/phy-mxs-usb.c | 55 ++++++++++++++++++++++++++++++++++++++---
> > 1 files changed, 51 insertions(+), 4 deletions(-)
> >
> > diff --git a/drivers/usb/phy/phy-mxs-usb.c b/drivers/usb/phy/phy-mxs-usb.c
> > index 0ef930a..e3df53f 100644
> > --- a/drivers/usb/phy/phy-mxs-usb.c
> > +++ b/drivers/usb/phy/phy-mxs-usb.c
> > @@ -166,8 +166,8 @@ static int mxs_phy_suspend(struct usb_phy *x, int suspend)
> > static int mxs_phy_on_connect(struct usb_phy *phy,
> > enum usb_device_speed speed)
> > {
> > - dev_dbg(phy->dev, "%s speed device has connected\n",
> > - (speed == USB_SPEED_HIGH) ? "high" : "non-high");
> > + dev_dbg(phy->dev, "%s device has connected\n",
> > + (speed == USB_SPEED_HIGH) ? "HS" : "FS/LS");
>
> What about creating a mxs_phy_dbg() function that adds the "HS" "FS/LS"
> prefix when printing?
>
No, sometimes, there is no speed information when we want to debug
mxs phy.
--
Best Regards,
Peter Chen
More information about the linux-arm-kernel
mailing list