[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <TY1PR06MB0992CD58C946C8C78191ACA1D84B0@TY1PR06MB0992.apcprd06.prod.outlook.com>
Date: Thu, 12 Oct 2017 10:47:27 +0000
From: Yoshihiro Shimoda <yoshihiro.shimoda.uh@...esas.com>
To: Kishon Vijay Abraham I <kishon@...com>,
"robh+dt@...nel.org" <robh+dt@...nel.org>,
"mark.rutland@....com" <mark.rutland@....com>
CC: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
"linux-renesas-soc@...r.kernel.org"
<linux-renesas-soc@...r.kernel.org>
Subject: RE: [PATCH v5 2/4] phy: rcar-gen3-usb2: use enum phy_mode in the
role_store()
Hi,
> From: Kishon Vijay Abraham I [mailto:kishon@...com], Sent: Wednesday, October 11, 2017 5:28 PM
>
> Hi,
>
> On Tuesday 10 October 2017 03:11 PM, Yoshihiro Shimoda wrote:
> > This patch modifies the role_store() to use "enum phy_mode" instead
> > of the local "bool" for host/device mode selection.
>
> looks good except for one minor comment..
Thank you for your review!
> > Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@...esas.com>
> > ---
> > drivers/phy/renesas/phy-rcar-gen3-usb2.c | 29 ++++++++++++++++++-----------
> > 1 file changed, 18 insertions(+), 11 deletions(-)
> >
> > diff --git a/drivers/phy/renesas/phy-rcar-gen3-usb2.c b/drivers/phy/renesas/phy-rcar-gen3-usb2.c
> > index e00e99a..7314b49 100644
> > --- a/drivers/phy/renesas/phy-rcar-gen3-usb2.c
> > +++ b/drivers/phy/renesas/phy-rcar-gen3-usb2.c
> > @@ -219,33 +219,40 @@ static bool rcar_gen3_is_host(struct rcar_gen3_chan *ch)
> > return !(readl(ch->base + USB2_COMMCTRL) & USB2_COMMCTRL_OTG_PERI);
> > }
> >
> > +static enum phy_mode rcar_gen3_get_phy_mode(struct rcar_gen3_chan *ch)
> > +{
> > + if (rcar_gen3_is_host(ch))
> > + return PHY_MODE_USB_HOST;
> > + else
>
> the else here is not required.
I got it. I sent v6 patch set a few hour ago.
Best regards,
Yoshihiro Shimoda
> Thanks
> Kishon
Powered by blists - more mailing lists