From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: Phil Edworthy <phil.edworthy@renesas.com>,
Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Felipe Balbi <balbi@ti.com>,
Ulrich Hecht <ulrich.hecht@gmail.com>,
Kishon Vijay Abraham I <kishon@ti.com>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org,
linux-sh@vger.kernel.org
Subject: Re: [PATCH v2] usb: renesas_usbhs: Allow an OTG PHY driver to provide VBUS
Date: Thu, 2 Jul 2015 14:16:40 +0300 [thread overview]
Message-ID: <55951D98.7050003@cogentembedded.com> (raw)
In-Reply-To: <1435822602-22685-1-git-send-email-phil.edworthy@renesas.com>
Hello.
On 7/2/2015 10:36 AM, Phil Edworthy wrote:
> These changes allow a PHY driver to trigger a VBUS interrupt and
> to provide the value of VBUS.
> Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
[...]
> diff --git a/drivers/usb/renesas_usbhs/mod_gadget.c b/drivers/usb/renesas_usbhs/mod_gadget.c
> index dc2aa32..51b63f9 100644
> --- a/drivers/usb/renesas_usbhs/mod_gadget.c
> +++ b/drivers/usb/renesas_usbhs/mod_gadget.c
[...]
> @@ -947,12 +966,27 @@ static int usbhsg_set_selfpowered(struct usb_gadget *gadget, int is_self)
> return 0;
> }
>
> +static int usbhsg_vbus_session(struct usb_gadget *gadget, int is_active)
> +{
> + struct usbhsg_gpriv *gpriv = usbhsg_gadget_to_gpriv(gadget);
> + struct usbhs_priv *priv = usbhsg_gpriv_to_priv(gpriv);
> + struct platform_device *pdev = usbhs_priv_to_pdev(priv);
> +
> + priv->vbus_is_indirect = 1;
s/1/true/.
> + priv->vbus_indirect_value = !!is_active;
> +
> + renesas_usbhs_call_notify_hotplug(pdev);
> +
> + return 0;
> +}
> +
[...]
> @@ -994,6 +1028,10 @@ int usbhs_mod_gadget_probe(struct usbhs_priv *priv)
> goto usbhs_mod_gadget_probe_err_gpriv;
> }
>
> + gpriv->transceiver = usb_get_phy(USB_PHY_TYPE_UNDEFINED);
> + dev_info(dev, "%s transceiver found\n",
> + gpriv->transceiver ? "" : "No");
Hm, I told you to make this message cleaner, and you haven't. :-(
[...]
WBR, Sergei
next prev parent reply other threads:[~2015-07-02 11:16 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-02 7:36 Phil Edworthy
2015-07-02 8:15 ` Laurent Pinchart
2015-07-02 8:35 ` Phil Edworthy
2015-07-02 10:26 ` [PATCH v3] " Phil Edworthy
2015-07-06 7:27 ` Yoshihiro Shimoda
2015-07-07 8:59 ` Phil Edworthy
2015-07-06 8:20 ` Laurent Pinchart
2015-07-07 9:12 ` Phil Edworthy
2015-07-07 11:52 ` [PATCH v5] " Phil Edworthy
2015-07-07 23:08 ` Laurent Pinchart
2015-07-08 8:08 ` Phil Edworthy
2015-07-09 1:03 ` Laurent Pinchart
2015-07-13 15:22 ` Phil Edworthy
2015-07-13 15:30 ` [PATCH v6] " Phil Edworthy
2015-07-13 15:50 ` Laurent Pinchart
2015-07-13 16:15 ` Phil Edworthy
2015-07-02 11:16 ` Sergei Shtylyov [this message]
2015-07-02 12:01 ` [PATCH v2] " Phil Edworthy
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=55951D98.7050003@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--cc=balbi@ti.com \
--cc=gregkh@linuxfoundation.org \
--cc=kishon@ti.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=phil.edworthy@renesas.com \
--cc=ulrich.hecht@gmail.com \
--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
Powered by JetHome