* [PATCH 1/1] usb: ehci-fsl: set INCR8 mode only on MPC512x
@ 2013-04-24 2:55 Tiejun Chen
2013-04-24 3:13 ` tiejun.chen
2013-04-24 5:55 ` Anatolij Gustschin
0 siblings, 2 replies; 4+ messages in thread
From: Tiejun Chen @ 2013-04-24 2:55 UTC (permalink / raw)
To: galak; +Cc: linuxppc-dev, linux-kernel
commit 761bbcb7, "usb: ehci-fsl: set INCR8 mode for system bus interface
on MPC512x", introduced to fix one MPC5121e (M36P) Errata by setting
INCR8 mode for system bus interface on MPC512x, but we should make sure
this is only valid for MPC512x like other parts of this commit. Otherwise
this would issue other platforms as abnormal without this similar Errata.
Signed-off-by: Tiejun Chen <tiejun.chen@windriver.com>
---
drivers/usb/host/ehci-fsl.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c
index d81d2fc..f4f2a7b 100644
--- a/drivers/usb/host/ehci-fsl.c
+++ b/drivers/usb/host/ehci-fsl.c
@@ -509,7 +509,15 @@ static int ehci_fsl_mpc512x_drv_resume(struct device *dev)
ehci_writel(ehci, ISIPHYCTRL_PXE | ISIPHYCTRL_PHYE,
hcd->regs + FSL_SOC_USB_ISIPHYCTRL);
- ehci_writel(ehci, SBUSCFG_INCR8, hcd->regs + FSL_SOC_USB_SBUSCFG);
+ if (of_device_is_compatible(dev->parent->of_node,
+ "fsl,mpc5121-usb2-dr")) {
+ /*
+ * set SBUSCFG:AHBBRST so that control msgs don't
+ * fail when doing heavy PATA writes.
+ */
+ ehci_writel(ehci, SBUSCFG_INCR8,
+ hcd->regs + FSL_SOC_USB_SBUSCFG);
+ }
/* restore EHCI registers */
ehci_writel(ehci, pdata->pm_command, &ehci->regs->command);
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] usb: ehci-fsl: set INCR8 mode only on MPC512x
2013-04-24 2:55 [PATCH 1/1] usb: ehci-fsl: set INCR8 mode only on MPC512x Tiejun Chen
@ 2013-04-24 3:13 ` tiejun.chen
2013-04-24 5:55 ` Anatolij Gustschin
1 sibling, 0 replies; 4+ messages in thread
From: tiejun.chen @ 2013-04-24 3:13 UTC (permalink / raw)
To: galak; +Cc: linuxppc-dev, linux-kernel
Sorry, please ignore this temporarily since looks this is already covered in tree.
I will look further into this to send another version.
Tiejun
On 04/24/2013 10:55 AM, Tiejun Chen wrote:
> commit 761bbcb7, "usb: ehci-fsl: set INCR8 mode for system bus interface
> on MPC512x", introduced to fix one MPC5121e (M36P) Errata by setting
> INCR8 mode for system bus interface on MPC512x, but we should make sure
> this is only valid for MPC512x like other parts of this commit. Otherwise
> this would issue other platforms as abnormal without this similar Errata.
>
> Signed-off-by: Tiejun Chen <tiejun.chen@windriver.com>
> ---
> drivers/usb/host/ehci-fsl.c | 10 +++++++++-
> 1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c
> index d81d2fc..f4f2a7b 100644
> --- a/drivers/usb/host/ehci-fsl.c
> +++ b/drivers/usb/host/ehci-fsl.c
> @@ -509,7 +509,15 @@ static int ehci_fsl_mpc512x_drv_resume(struct device *dev)
> ehci_writel(ehci, ISIPHYCTRL_PXE | ISIPHYCTRL_PHYE,
> hcd->regs + FSL_SOC_USB_ISIPHYCTRL);
>
> - ehci_writel(ehci, SBUSCFG_INCR8, hcd->regs + FSL_SOC_USB_SBUSCFG);
> + if (of_device_is_compatible(dev->parent->of_node,
> + "fsl,mpc5121-usb2-dr")) {
> + /*
> + * set SBUSCFG:AHBBRST so that control msgs don't
> + * fail when doing heavy PATA writes.
> + */
> + ehci_writel(ehci, SBUSCFG_INCR8,
> + hcd->regs + FSL_SOC_USB_SBUSCFG);
> + }
>
> /* restore EHCI registers */
> ehci_writel(ehci, pdata->pm_command, &ehci->regs->command);
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] usb: ehci-fsl: set INCR8 mode only on MPC512x
2013-04-24 2:55 [PATCH 1/1] usb: ehci-fsl: set INCR8 mode only on MPC512x Tiejun Chen
2013-04-24 3:13 ` tiejun.chen
@ 2013-04-24 5:55 ` Anatolij Gustschin
2013-04-24 6:40 ` tiejun.chen
1 sibling, 1 reply; 4+ messages in thread
From: Anatolij Gustschin @ 2013-04-24 5:55 UTC (permalink / raw)
To: Tiejun Chen; +Cc: linuxppc-dev, linux-kernel
On Wed, 24 Apr 2013 10:55:10 +0800
Tiejun Chen <tiejun.chen@windriver.com> wrote:
> commit 761bbcb7, "usb: ehci-fsl: set INCR8 mode for system bus interface
> on MPC512x", introduced to fix one MPC5121e (M36P) Errata by setting
> INCR8 mode for system bus interface on MPC512x, but we should make sure
> this is only valid for MPC512x like other parts of this commit. Otherwise
NAK. It is already only valid for MPC512x.
> this would issue other platforms as abnormal without this similar Errata.
This setting is in the ehci_fsl_mpc512x_drv_resume() function which is
not called on other platforms.
Thanks,
Anatolij
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] usb: ehci-fsl: set INCR8 mode only on MPC512x
2013-04-24 5:55 ` Anatolij Gustschin
@ 2013-04-24 6:40 ` tiejun.chen
0 siblings, 0 replies; 4+ messages in thread
From: tiejun.chen @ 2013-04-24 6:40 UTC (permalink / raw)
To: Anatolij Gustschin; +Cc: linuxppc-dev, linux-kernel
On 04/24/2013 01:55 PM, Anatolij Gustschin wrote:
> On Wed, 24 Apr 2013 10:55:10 +0800
> Tiejun Chen <tiejun.chen@windriver.com> wrote:
>
>> commit 761bbcb7, "usb: ehci-fsl: set INCR8 mode for system bus interface
>> on MPC512x", introduced to fix one MPC5121e (M36P) Errata by setting
>> INCR8 mode for system bus interface on MPC512x, but we should make sure
>> this is only valid for MPC512x like other parts of this commit. Otherwise
>
> NAK. It is already only valid for MPC512x.
>
>> this would issue other platforms as abnormal without this similar Errata.
>
> This setting is in the ehci_fsl_mpc512x_drv_resume() function which is
> not called on other platforms.
Yes, I already notice this and also send a notification to ignore this improper
patch immediately ;-)
Thanks,
Tiejun
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-04-24 6:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-24 2:55 [PATCH 1/1] usb: ehci-fsl: set INCR8 mode only on MPC512x Tiejun Chen
2013-04-24 3:13 ` tiejun.chen
2013-04-24 5:55 ` Anatolij Gustschin
2013-04-24 6:40 ` tiejun.chen
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).