From: maxime.ripard@free-electrons.com (Maxime Ripard)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/5] phy: sun4i: add support for USB phy0
Date: Thu, 30 Oct 2014 17:40:15 +0100 [thread overview]
Message-ID: <20141030164015.GN21251@lukather> (raw)
In-Reply-To: <CAGb2v65gSq+kMnVZMAvXkF6+ARiFE1qRpQ9SFDThfXCg_kERsQ@mail.gmail.com>
Hi,
On Wed, Oct 29, 2014 at 10:24:12AM +0800, Chen-Yu Tsai wrote:
> On Wed, Oct 29, 2014 at 5:47 AM, Maxime Ripard
> <maxime.ripard@free-electrons.com> wrote:
> > Hi Roman,
> >
> > Thanks for your patches
> >
> > On Mon, Oct 27, 2014 at 10:43:01PM +0100, Roman Byshko wrote:
> >> The driver for sun4i USB phys currently supports
> >> only phy1 and phy2 which are used for USB host
> >> controllers. This patch adds support for USB phy0,
> >> which is used by the musb hdrc USB controller.
> >
> > Like Andreas already pointed out, your signed-off-by is missing from
> > all your patches.
> >
> >> ---
> >> drivers/phy/phy-sun4i-usb.c | 9 ++++++---
> >> 1 file changed, 6 insertions(+), 3 deletions(-)
> >>
> >> diff --git a/drivers/phy/phy-sun4i-usb.c b/drivers/phy/phy-sun4i-usb.c
> >> index 0baf5ef..a24728b 100644
> >> --- a/drivers/phy/phy-sun4i-usb.c
> >> +++ b/drivers/phy/phy-sun4i-usb.c
> >> @@ -157,6 +157,10 @@ static int sun4i_usb_phy_init(struct phy *_phy)
> >> return ret;
> >> }
> >>
> >> + /* Regulation 45 ohms */
> >> + if (phy->index == 0)
> >> + sun4i_usb_phy_write(phy, PHY_RES45_CAL_EN, 0x01, 1);
> >
> > What is this code supposed to do?
> >
> > Some define for this bit and/or a better comment would be nice.
>
> From Allwinner's sources: "Enable/Disable USB res45 Calibration"
>
> which I think refers to the internal 45 ohm termination resistors
> for the USB data lines. But I'm not an expert on USB hardware.
That would make a great comment ;)
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20141030/1f9e45b7/attachment.sig>
WARNING: multiple messages have this Message-ID (diff)
From: Maxime Ripard <maxime.ripard@free-electrons.com>
To: Chen-Yu Tsai <wens@csie.org>
Cc: Roman Byshko <rbyshko@gmail.com>,
Mark Rutland <mark.rutland@arm.com>,
devicetree <devicetree@vger.kernel.org>,
Russell King <linux@arm.linux.org.uk>,
Pawel Moll <pawel.moll@arm.com>,
Ian Campbell <ijc+devicetree@hellion.org.uk>,
linux-kernel <linux-kernel@vger.kernel.org>,
Kishon Vijay Abraham I <kishon@ti.com>,
Rob Herring <robh+dt@kernel.org>,
Kumar Gala <galak@codeaurora.org>,
linux-arm-kernel <linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH 1/5] phy: sun4i: add support for USB phy0
Date: Thu, 30 Oct 2014 17:40:15 +0100 [thread overview]
Message-ID: <20141030164015.GN21251@lukather> (raw)
In-Reply-To: <CAGb2v65gSq+kMnVZMAvXkF6+ARiFE1qRpQ9SFDThfXCg_kERsQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1684 bytes --]
Hi,
On Wed, Oct 29, 2014 at 10:24:12AM +0800, Chen-Yu Tsai wrote:
> On Wed, Oct 29, 2014 at 5:47 AM, Maxime Ripard
> <maxime.ripard@free-electrons.com> wrote:
> > Hi Roman,
> >
> > Thanks for your patches
> >
> > On Mon, Oct 27, 2014 at 10:43:01PM +0100, Roman Byshko wrote:
> >> The driver for sun4i USB phys currently supports
> >> only phy1 and phy2 which are used for USB host
> >> controllers. This patch adds support for USB phy0,
> >> which is used by the musb hdrc USB controller.
> >
> > Like Andreas already pointed out, your signed-off-by is missing from
> > all your patches.
> >
> >> ---
> >> drivers/phy/phy-sun4i-usb.c | 9 ++++++---
> >> 1 file changed, 6 insertions(+), 3 deletions(-)
> >>
> >> diff --git a/drivers/phy/phy-sun4i-usb.c b/drivers/phy/phy-sun4i-usb.c
> >> index 0baf5ef..a24728b 100644
> >> --- a/drivers/phy/phy-sun4i-usb.c
> >> +++ b/drivers/phy/phy-sun4i-usb.c
> >> @@ -157,6 +157,10 @@ static int sun4i_usb_phy_init(struct phy *_phy)
> >> return ret;
> >> }
> >>
> >> + /* Regulation 45 ohms */
> >> + if (phy->index == 0)
> >> + sun4i_usb_phy_write(phy, PHY_RES45_CAL_EN, 0x01, 1);
> >
> > What is this code supposed to do?
> >
> > Some define for this bit and/or a better comment would be nice.
>
> From Allwinner's sources: "Enable/Disable USB res45 Calibration"
>
> which I think refers to the internal 45 ohm termination resistors
> for the USB data lines. But I'm not an expert on USB hardware.
That would make a great comment ;)
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2014-10-30 16:40 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-27 21:43 [PATCH 0/5] ARM: sunxi: Add support for USB OTG PHY Roman Byshko
2014-10-27 21:43 ` Roman Byshko
2014-10-27 21:43 ` [PATCH 1/5] phy: sun4i: add support for USB phy0 Roman Byshko
2014-10-27 21:43 ` Roman Byshko
2014-10-28 21:47 ` Maxime Ripard
2014-10-28 21:47 ` Maxime Ripard
2014-10-28 21:47 ` Maxime Ripard
2014-10-29 2:24 ` Chen-Yu Tsai
2014-10-29 2:24 ` Chen-Yu Tsai
2014-10-29 13:46 ` Roman Byshko
2014-10-29 13:46 ` Roman Byshko
2014-10-30 16:40 ` Maxime Ripard [this message]
2014-10-30 16:40 ` Maxime Ripard
2014-10-27 21:43 ` [PATCH 2/5] ARM: dtsi: sunxi: add common VBUS regulator Roman Byshko
2014-10-27 21:43 ` Roman Byshko
2014-10-28 21:51 ` Maxime Ripard
2014-10-28 21:51 ` Maxime Ripard
2014-10-28 21:51 ` Maxime Ripard
2014-10-29 20:13 ` Roman Byshko
2014-10-29 20:13 ` Roman Byshko
2014-10-30 16:41 ` Maxime Ripard
2014-10-30 16:41 ` Maxime Ripard
2014-10-27 21:43 ` [PATCH 3/5] ARM: sun7i: dtsi: add support for usbphy0 Roman Byshko
2014-10-27 21:43 ` Roman Byshko
2014-10-27 21:43 ` [PATCH 4/5] ARM: dts: sun7i: Cubietruck: override regulator pin Roman Byshko
2014-10-27 21:43 ` Roman Byshko
2014-10-27 21:43 ` [PATCH 5/5] ARM: dts: sun7i: Cubietruck: add power supply regulator for USB OTG VBUS Roman Byshko
2014-10-27 21:43 ` Roman Byshko
2014-10-27 22:27 ` [PATCH 0/5] ARM: sunxi: Add support for USB OTG PHY Andreas Färber
2014-10-27 22:27 ` Andreas Färber
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=20141030164015.GN21251@lukather \
--to=maxime.ripard@free-electrons.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.