From: Simon Horman <horms@verge.net.au>
To: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Cc: kishon@ti.com, linux-kernel@vger.kernel.org,
linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH v3 2/4] phy: rcar-gen3-usb2: split the two meaning of "has_otg"
Date: Fri, 6 Oct 2017 11:15:22 +0200 [thread overview]
Message-ID: <20171006091521.GD7734@verge.net.au> (raw)
In-Reply-To: <1504233685-17947-3-git-send-email-yoshihiro.shimoda.uh@renesas.com>
On Fri, Sep 01, 2017 at 11:41:23AM +0900, Yoshihiro Shimoda wrote:
> The has_otg on previous code has the two meaning:
> - The channel has dedicated otg pins (ID, VBUS).
> - The channel can swap the role via sysfs.
>
> However, some SoCs (e.g. R-Car D3) doesn't have such dedicated pins,
> but the SoCs can swap the role. So, this patch split the two meaning
> of has_otg as "has dedicated otg pins" and adds a new value
> "can_role_swap". For now, the behavior is the same as before.
>
> Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
> ---
> drivers/phy/renesas/phy-rcar-gen3-usb2.c | 61 ++++++++++++++++++++++----------
> 1 file changed, 42 insertions(+), 19 deletions(-)
>
> diff --git a/drivers/phy/renesas/phy-rcar-gen3-usb2.c b/drivers/phy/renesas/phy-rcar-gen3-usb2.c
> index e00e99a..4ea9902 100644
> --- a/drivers/phy/renesas/phy-rcar-gen3-usb2.c
> +++ b/drivers/phy/renesas/phy-rcar-gen3-usb2.c
> @@ -87,7 +87,8 @@ struct rcar_gen3_chan {
> struct regulator *vbus;
> struct work_struct work;
> bool extcon_host;
> - bool has_otg;
> + bool has_otg; /* has dedicated pins (ID, VBUS) */
Not: has_otg_pins might make for slightly easier reading of the code.
> + bool can_role_swap;
> };
...
next prev parent reply other threads:[~2017-10-06 9:15 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-01 2:41 [PATCH v3 0/4] phy: rcar-gen3-usb2: add support for r8a77995 Yoshihiro Shimoda
2017-09-01 2:41 ` [PATCH v3 1/4] phy: rcar-gen3-usb2: check dr_mode for otg mode Yoshihiro Shimoda
2017-10-06 9:15 ` Simon Horman
2017-09-01 2:41 ` [PATCH v3 2/4] phy: rcar-gen3-usb2: split the two meaning of "has_otg" Yoshihiro Shimoda
2017-10-06 9:15 ` Simon Horman [this message]
2017-10-09 10:06 ` Kishon Vijay Abraham I
2017-10-10 5:59 ` Yoshihiro Shimoda
2017-09-01 2:41 ` [PATCH v3 3/4] phy: rcar-gen3-usb2: add SoC-specific parameter for dedicated pins Yoshihiro Shimoda
2017-10-06 9:14 ` Simon Horman
2017-09-01 2:41 ` [PATCH v3 4/4] phy: rcar-gen3-usb2: add binding for r8a77995 Yoshihiro Shimoda
2017-10-06 9:14 ` Simon Horman
2017-10-06 2:13 ` [PATCH v3 0/4] phy: rcar-gen3-usb2: add support " Yoshihiro Shimoda
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171006091521.GD7734@verge.net.au \
--to=horms@verge.net.au \
--cc=kishon@ti.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=yoshihiro.shimoda.uh@renesas.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox