From: Anatolij Gustschin <agust-ynQEQJNshbs@public.gmane.org>
To: Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
Cc: linuxppc-dev-mnsaURCQ41sdnm+yROfE0A@public.gmane.org,
dzu-ynQEQJNshbs@public.gmane.org,
wd-ynQEQJNshbs@public.gmane.org,
linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
devicetree-discuss
<devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org>
Subject: Re: [PATCH 08/11] powerpc/mpc5121: add USB host support
Date: Mon, 25 Jan 2010 18:00:24 +0100 [thread overview]
Message-ID: <20100125180024.1a850578@wker> (raw)
In-Reply-To: <fa686aa41001210943i3739f693uecf0c05ef0a81c1-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On Thu, 21 Jan 2010 10:43:34 -0700
Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org> wrote:
> > diff --git a/Documentation/powerpc/dts-bindings/fsl/usb.txt b/Documentation/powerpc/dts-bindings/fsl/usb.txt
> > index b001524..9050154 100644
> > --- a/Documentation/powerpc/dts-bindings/fsl/usb.txt
> > +++ b/Documentation/powerpc/dts-bindings/fsl/usb.txt
> > @@ -33,6 +33,14 @@ Recommended properties :
> > - interrupt-parent : the phandle for the interrupt controller that
> > services interrupts for this device.
> >
> > +Optional properties :
>
> > + - big-endian-regs : boolean; if defined, indicates the USB host
> > + controller registers format is big endian.
>
> Rather than testing for this explicitly, add fsl,mpc5121-usb2-dr to
> the match table and use the .data pointer for setting device specific
> quirks.
There is no match table. fsl_usb_of_init() is an arch_initcall and
tests other properties using the same approach.
> > + - invert-drvvbus : boolean; for MPC5121 only. Indicates the port
> > + power polarity of internal PHY signal DRVVBUS is inverted.
> > + - invert-pwr-fault : boolean; for MPC5121 only. Indicates the
> > + PWR_FAULT signal polarity is inverted.
>
> These are also characteristics of the chip, not the board, right? If
> so then these also can be determined implicitly by the compatible
> value.
No, these are characteristics of the board. The internal USB PHY doesn't
provide supply voltage. Some boards use MIC2025 switches which require active
high DRVVBUS and active low PWR_FAULT. Some boards could use MIC2026 or
MAX1838 which require other polarities.
> Finally, these are all freescale specific properties. If you still
> need them, then prefix the property names with 'fsl,'
OK.
> > ...
> > +
> > +config USB_FSL_BIG_ENDIAN_MMIO
> > + bool
>
> What's this for?
This is currently unused (will be used later), I will remove it for now.
> > ...
> > @@ -77,14 +77,13 @@ static int usb_hcd_fsl_probe(const struct hc_driver *driver,
> > return -ENODEV;
> > }
> >
> > - res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
> > - if (!res) {
> > + irq = platform_get_irq(pdev, 0);
> > + if (irq < 0) {
> > dev_err(&pdev->dev,
> > "Found HC with no IRQ. Check %s setup!\n",
> > dev_name(&pdev->dev));
> > return -ENODEV;
> > }
> > - irq = res->start;
>
> Put this hunk in a separate patch.
OK.
> > ...
> > + if (pdata->have_sysif_regs) {
> > #ifdef CONFIG_PPC_85xx
> > - out_be32(non_ehci + FSL_SOC_USB_PRICTRL, 0x00000008);
> > - out_be32(non_ehci + FSL_SOC_USB_AGECNTTHRSH, 0x00000080);
> > + out_be32(non_ehci + FSL_SOC_USB_PRICTRL, 0x00000008);
> > + out_be32(non_ehci + FSL_SOC_USB_AGECNTTHRSH, 0x00000080);
> > #else
> > - out_be32(non_ehci + FSL_SOC_USB_PRICTRL, 0x0000000c);
> > - out_be32(non_ehci + FSL_SOC_USB_AGECNTTHRSH, 0x00000040);
> > + out_be32(non_ehci + FSL_SOC_USB_PRICTRL, 0x0000000c);
> > + out_be32(non_ehci + FSL_SOC_USB_AGECNTTHRSH, 0x00000040);
> > #endif
> > - out_be32(non_ehci + FSL_SOC_USB_SICTRL, 0x00000001);
> > + out_be32(non_ehci + FSL_SOC_USB_SICTRL, 0x00000001);
> > + }
> > }
>
> Unrelated whitespace changes. Put in separate patch.
OK.
Thanks,
Anatolij
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2010-01-25 17:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1263932653-3634-1-git-send-email-agust@denx.de>
[not found] ` <1263932653-3634-9-git-send-email-agust@denx.de>
[not found] ` <1263932653-3634-9-git-send-email-agust-ynQEQJNshbs@public.gmane.org>
2010-01-21 17:43 ` [PATCH 08/11] powerpc/mpc5121: add USB host support Grant Likely
[not found] ` <fa686aa41001210943i3739f693uecf0c05ef0a81c1-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-01-25 17:00 ` Anatolij Gustschin [this message]
2010-01-27 16:52 ` Grant Likely
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=20100125180024.1a850578@wker \
--to=agust-ynqeqjnshbs@public.gmane.org \
--cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
--cc=dzu-ynQEQJNshbs@public.gmane.org \
--cc=grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org \
--cc=linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linuxppc-dev-mnsaURCQ41sdnm+yROfE0A@public.gmane.org \
--cc=wd-ynQEQJNshbs@public.gmane.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