From: "Ondřej Jirman" <megous@megous.com>
To: Icenowy Zheng <icenowy@aosc.io>,
Rikard Falkeborn <rikard.falkeborn@gmail.com>,
arnd@arndb.de, devicetree@vger.kernel.org,
gregkh@linuxfoundation.org, kishon@ti.com,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com,
mark.rutland@arm.com, mripard@kernel.org,
paul.kocialkowski@bootlin.com, robh+dt@kernel.org,
tglx@linutronix.de, wens@csie.org
Subject: Re: [PATCH] phy: allwinner: Fix GENMASK misuse
Date: Fri, 8 Nov 2019 12:43:01 +0100 [thread overview]
Message-ID: <20191108114301.v3663hs5ftjsoec3@core.my.home> (raw)
In-Reply-To: <20191108114138.snghk5n7kwuw7zz3@core.my.home>
On Fri, Nov 08, 2019 at 12:41:39PM +0100, megous hlavni wrote:
> On Fri, Nov 08, 2019 at 07:29:21PM +0800, Icenowy Zheng wrote:
> >
> >
> > 于 2019年11月8日 GMT+08:00 上午5:45:14, "Ondřej Jirman" <megous@megous.com> 写到:
> > >Hello Rikard,
> > >
> > >On Thu, Nov 07, 2019 at 09:46:45PM +0100, Rikard Falkeborn wrote:
> > >> Arguments are supposed to be ordered high then low.
> > >>
> > >> Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
> > >> ---
> > >> Spotted while trying to add compile time checks of GENMASK arguments.
> > >> Patch has only been compile tested.
> > >
> > >thank you!
> > >
> > >Tested-by: Ondrej Jirman <megous@megous.com>
> >
> > Does it affect or fix the performance?
>
> See here: https://forum.armbian.com/topic/10131-orange-pi-lite2-usb3-now-working/?do=findComment&comment=88904
>
> Quote:
>
> > It may or may not help. On Opi3 I see no change, probably because HUB is
> > really close to the SoC, but on boards without a HUB, SoC's USB3 phy will
> > have to drive the signal over the longer cable and this patch might benefit
> > those boards.
>
> Maybe someone with boards without PHY will test it more.
Eh, on boards without a USB3 HUB.
> regards,
> o.
>
> > >
> > >regards,
> > > o.
> > >
> > >> drivers/phy/allwinner/phy-sun50i-usb3.c | 2 +-
> > >> 1 file changed, 1 insertion(+), 1 deletion(-)
> > >>
> > >> diff --git a/drivers/phy/allwinner/phy-sun50i-usb3.c
> > >b/drivers/phy/allwinner/phy-sun50i-usb3.c
> > >> index 1169f3e83a6f..b1c04f71a31d 100644
> > >> --- a/drivers/phy/allwinner/phy-sun50i-usb3.c
> > >> +++ b/drivers/phy/allwinner/phy-sun50i-usb3.c
> > >> @@ -49,7 +49,7 @@
> > >> #define SUNXI_LOS_BIAS(n) ((n) << 3)
> > >> #define SUNXI_LOS_BIAS_MASK GENMASK(5, 3)
> > >> #define SUNXI_TXVBOOSTLVL(n) ((n) << 0)
> > >> -#define SUNXI_TXVBOOSTLVL_MASK GENMASK(0, 2)
> > >> +#define SUNXI_TXVBOOSTLVL_MASK GENMASK(2, 0)
> > >>
> > >> struct sun50i_usb3_phy {
> > >> struct phy *phy;
> > >> --
> > >> 2.24.0
> > >>
next prev parent reply other threads:[~2019-11-08 12:02 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-20 13:42 [PATCH 0/4] Add USB 3 support for H6 and Orange Pi 3 megous
2019-10-20 13:42 ` [PATCH 1/4] dt-bindings: Add bindings for USB3 phy on Allwinner H6 megous
2019-10-21 11:06 ` Maxime Ripard
2019-10-20 13:42 ` [PATCH 2/4] phy: allwinner: add phy driver for USB3 PHY on Allwinner H6 SoC megous
2019-10-21 11:08 ` Maxime Ripard
2019-11-07 20:46 ` [PATCH] phy: allwinner: Fix GENMASK misuse Rikard Falkeborn
2019-11-07 21:45 ` Ondřej Jirman
2019-11-08 11:29 ` Icenowy Zheng
2019-11-08 11:41 ` Ondřej Jirman
2019-11-08 11:43 ` Ondřej Jirman [this message]
2019-11-07 23:39 ` Russell King - ARM Linux admin
2019-11-08 1:46 ` Joe Perches
2019-11-08 8:29 ` Paul Kocialkowski
2019-11-10 12:43 ` [PATCH v2] " Rikard Falkeborn
2019-11-24 22:10 ` Rikard Falkeborn
2019-12-09 20:18 ` Rikard Falkeborn
2020-02-23 3:23 ` [linux-sunxi] [PATCH v2 RESEND] " Chen-Yu Tsai
2020-02-24 9:18 ` Maxime Ripard
2019-10-20 13:42 ` [PATCH 3/4] arm64: dts: allwinner: h6: add USB3 device nodes megous
2019-10-20 13:42 ` [PATCH 4/4] arm64: dts: allwinner: orange-pi-3: Enable USB 3.0 host support megous
2019-10-21 11:09 ` Maxime Ripard
2019-11-04 12:16 ` Ondřej Jirman
2019-11-05 10:45 ` Maxime Ripard
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=20191108114301.v3663hs5ftjsoec3@core.my.home \
--to=megous@megous.com \
--cc=arnd@arndb.de \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=icenowy@aosc.io \
--cc=kishon@ti.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sunxi@googlegroups.com \
--cc=mark.rutland@arm.com \
--cc=mripard@kernel.org \
--cc=paul.kocialkowski@bootlin.com \
--cc=rikard.falkeborn@gmail.com \
--cc=robh+dt@kernel.org \
--cc=tglx@linutronix.de \
--cc=wens@csie.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).