From: Maxime Ripard <maxime.ripard@bootlin.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 5/8] phy: sun4i-usb: Update PHY#3 rst_mask only for H3_H5
Date: Wed, 11 Jul 2018 09:14:16 +0200 [thread overview]
Message-ID: <20180711071416.ptg5hfxbecv7ecqd@flea> (raw)
In-Reply-To: <CAD6G_RRusP5JY4YZCK=MCiTKbbnsreVp+bJwAdtJ2dgstaOGSA@mail.gmail.com>
On Wed, Jul 11, 2018 at 12:37:04PM +0530, Jagan Teki wrote:
> On Wed, Jul 11, 2018 at 12:23 PM, Vasily Khoruzhick <anarsoul@gmail.com> wrote:
> > On Mon, Jul 9, 2018 at 12:17 PM, Jagan Teki <jagan@amarulasolutions.com> wrote:
> >> Only H3 and H5 have 4 PHYS so restrict rst_mask only for them.
> >>
> >> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
> >> ---
> >> drivers/phy/allwinner/phy-sun4i-usb.c | 2 +-
> >> 1 file changed, 1 insertion(+), 1 deletion(-)
> >>
> >> diff --git a/drivers/phy/allwinner/phy-sun4i-usb.c b/drivers/phy/allwinner/phy-sun4i-usb.c
> >> index 3096f12c1c..81fcd1f910 100644
> >> --- a/drivers/phy/allwinner/phy-sun4i-usb.c
> >> +++ b/drivers/phy/allwinner/phy-sun4i-usb.c
> >> @@ -117,7 +117,7 @@ struct sun4i_usb_phy_info {
> >> .gpio_vbus = CONFIG_USB3_VBUS_PIN,
> >> .gpio_vbus_det = NULL,
> >> .gpio_id_det = NULL,
> >> -#ifdef CONFIG_MACH_SUN6I
> >> +#ifdef CONFIG_MACH_SUNXI_H3_H5
> >
> > It should be handled by compatibles, not ifdefs. Phy driver is proper
> > DM driver, so you can use .data in device ids array.
>
> True, but since it' already have ifdef and more over this code will
> drop very soon, we are planning to support CLK and RST[1] (max of
> v2018.11).
Says who?
I'd really prefer to have something when it's ready, rather than
trying to push to meet a deadline that we enforced on ourselves, and
end up with a tons of bugs to fix. The latest PHY patches should be a
pretty good example on why we *shouldn't* do that.
Maxime
--
Maxime Ripard, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180711/05fbe719/attachment.sig>
next prev parent reply other threads:[~2018-07-11 7:14 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-09 19:17 [U-Boot] [PATCH 0/8] musb: sunxi: Few fixes/improvements Jagan Teki
2018-07-09 19:17 ` [U-Boot] [PATCH 1/8] usb: musb-new: Fix improper musb host pointer Jagan Teki
2018-07-17 12:45 ` [U-Boot] [linux-sunxi] " Julian Calaby
2018-07-17 12:48 ` Julian Calaby
2018-07-09 19:17 ` [U-Boot] [PATCH 2/8] usb: musb-new: sunxi: Allocate struct phy in private Jagan Teki
2018-07-09 19:17 ` [U-Boot] [PATCH 3/8] phy: sun4i-usb: Call phy_passby even for PHY#0 Jagan Teki
2018-07-10 2:30 ` Chen-Yu Tsai
2018-07-09 19:17 ` [U-Boot] [PATCH 4/8] phy: sun4i-usb: Remove usb_clk_cfg set in probe Jagan Teki
2018-07-09 19:17 ` [U-Boot] [PATCH 5/8] phy: sun4i-usb: Update PHY#3 rst_mask only for H3_H5 Jagan Teki
2018-07-11 6:53 ` Vasily Khoruzhick
2018-07-11 7:07 ` Jagan Teki
2018-07-11 7:14 ` Maxime Ripard [this message]
2018-07-11 7:22 ` Jagan Teki
2018-07-11 9:59 ` Maxime Ripard
2018-07-09 19:17 ` [U-Boot] [PATCH RFC 6/8] dm: usb: Add UCLASS_USB_DEV_GENERIC shutdown Jagan Teki
2018-07-09 19:17 ` [U-Boot] [PATCH 7/8] usb: musb-new: sunxi: Add proper musb exit support Jagan Teki
2018-07-11 6:57 ` Vasily Khoruzhick
2018-07-09 19:17 ` [U-Boot] [PATCH 8/8] usb: musb-new: core: Call musb_platform_exit from musb_stop Jagan Teki
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=20180711071416.ptg5hfxbecv7ecqd@flea \
--to=maxime.ripard@bootlin.com \
--cc=u-boot@lists.denx.de \
/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