* [PATCH] arm64: defconfig: Add Renesas R-Car USB 3.0 driver support
@ 2016-04-20 8:47 Yoshihiro Shimoda
2016-04-21 3:15 ` Simon Horman
0 siblings, 1 reply; 5+ messages in thread
From: Yoshihiro Shimoda @ 2016-04-20 8:47 UTC (permalink / raw)
To: horms, magnus.damm, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak
Cc: devicetree, linux-renesas-soc, Yoshihiro Shimoda
If we doesn't enable this configuration and runs on R-Car Gen3,
xhci host driver will cause timeout in xhci_reset() because
the R-Car Gen3 xHCI controller needs specific initialization.
[ 1.565605] xhci-hcd ee000000.usb: xHCI Host Controller
[ 1.570636] xhci-hcd ee000000.usb: new USB bus registered, assigned bus number 5
[ 22.270160] xhci-hcd ee000000.usb: can't setup: -110
[ 22.274931] xhci-hcd ee000000.usb: USB bus 5 deregistered
[ 22.280158] xhci-hcd: probe of ee000000.usb failed with error -110
Remarks:
The timestamp doesn't work correctly on R-Car H3 ES1.0. It should be
10 seconds.
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
---
arch/arm64/configs/defconfig | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index a44ef99..a95751d 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -1,7 +1,6 @@
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_SYSVIPC=y
CONFIG_POSIX_MQUEUE=y
-CONFIG_FHANDLE=y
CONFIG_AUDIT=y
CONFIG_NO_HZ_IDLE=y
CONFIG_HIGH_RES_TIMERS=y
@@ -192,7 +191,7 @@ CONFIG_SND_SOC_AK4613=y
CONFIG_USB=y
CONFIG_USB_OTG=y
CONFIG_USB_XHCI_HCD=y
-CONFIG_USB_XHCI_PLATFORM=y
+CONFIG_USB_XHCI_RCAR=y
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_EHCI_MSM=y
CONFIG_USB_EHCI_HCD_PLATFORM=y
--
1.9.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] arm64: defconfig: Add Renesas R-Car USB 3.0 driver support
2016-04-20 8:47 [PATCH] arm64: defconfig: Add Renesas R-Car USB 3.0 driver support Yoshihiro Shimoda
@ 2016-04-21 3:15 ` Simon Horman
2016-04-21 3:41 ` Yoshihiro Shimoda
0 siblings, 1 reply; 5+ messages in thread
From: Simon Horman @ 2016-04-21 3:15 UTC (permalink / raw)
To: Yoshihiro Shimoda
Cc: magnus.damm, robh+dt, pawel.moll, mark.rutland, ijc+devicetree,
galak, devicetree, linux-renesas-soc
Hi Shimoda-san,
On Wed, Apr 20, 2016 at 05:47:14PM +0900, Yoshihiro Shimoda wrote:
> If we doesn't enable this configuration and runs on R-Car Gen3,
> xhci host driver will cause timeout in xhci_reset() because
> the R-Car Gen3 xHCI controller needs specific initialization.
>
> [ 1.565605] xhci-hcd ee000000.usb: xHCI Host Controller
> [ 1.570636] xhci-hcd ee000000.usb: new USB bus registered, assigned bus number 5
> [ 22.270160] xhci-hcd ee000000.usb: can't setup: -110
> [ 22.274931] xhci-hcd ee000000.usb: USB bus 5 deregistered
> [ 22.280158] xhci-hcd: probe of ee000000.usb failed with error -110
>
> Remarks:
> The timestamp doesn't work correctly on R-Car H3 ES1.0. It should be
> 10 seconds.
>
> Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
> ---
> arch/arm64/configs/defconfig | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
> index a44ef99..a95751d 100644
> --- a/arch/arm64/configs/defconfig
> +++ b/arch/arm64/configs/defconfig
> @@ -1,7 +1,6 @@
> # CONFIG_LOCALVERSION_AUTO is not set
> CONFIG_SYSVIPC=y
> CONFIG_POSIX_MQUEUE=y
> -CONFIG_FHANDLE=y
> CONFIG_AUDIT=y
> CONFIG_NO_HZ_IDLE=y
> CONFIG_HIGH_RES_TIMERS=y
Is the hunk above intended?
It does not seem to match my reading of the changelog.
> @@ -192,7 +191,7 @@ CONFIG_SND_SOC_AK4613=y
> CONFIG_USB=y
> CONFIG_USB_OTG=y
> CONFIG_USB_XHCI_HCD=y
> -CONFIG_USB_XHCI_PLATFORM=y
> +CONFIG_USB_XHCI_RCAR=y
> CONFIG_USB_EHCI_HCD=y
> CONFIG_USB_EHCI_MSM=y
> CONFIG_USB_EHCI_HCD_PLATFORM=y
> --
> 1.9.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH] arm64: defconfig: Add Renesas R-Car USB 3.0 driver support
2016-04-21 3:15 ` Simon Horman
@ 2016-04-21 3:41 ` Yoshihiro Shimoda
[not found] ` <SG2PR06MB0919C567798F775F2685811ED86E0-ESzmfEwOt/zNQ8RBPPB5A20DtJ1/0DrXvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Yoshihiro Shimoda @ 2016-04-21 3:41 UTC (permalink / raw)
To: Simon Horman
Cc: magnus.damm@gmail.com, robh+dt@kernel.org, pawel.moll@arm.com,
mark.rutland@arm.com, ijc+devicetree@hellion.org.uk,
galak@codeaurora.org, devicetree@vger.kernel.org,
linux-renesas-soc@vger.kernel.org
Hi Simon-san,
> From: Simon Horman
> Sent: Thursday, April 21, 2016 12:15 PM
>
> Hi Shimoda-san,
>
> On Wed, Apr 20, 2016 at 05:47:14PM +0900, Yoshihiro Shimoda wrote:
> > If we doesn't enable this configuration and runs on R-Car Gen3,
> > xhci host driver will cause timeout in xhci_reset() because
> > the R-Car Gen3 xHCI controller needs specific initialization.
> >
> > [ 1.565605] xhci-hcd ee000000.usb: xHCI Host Controller
> > [ 1.570636] xhci-hcd ee000000.usb: new USB bus registered, assigned bus number 5
> > [ 22.270160] xhci-hcd ee000000.usb: can't setup: -110
> > [ 22.274931] xhci-hcd ee000000.usb: USB bus 5 deregistered
> > [ 22.280158] xhci-hcd: probe of ee000000.usb failed with error -110
I'm afraid but this issue can be fixed if we apply the following patch into xhci-rcar.h.
So, I will submit such a patch to USB ML later.
==============================================================================
diff --git a/drivers/usb/host/xhci-rcar.h b/drivers/usb/host/xhci-rcar.h
index 2941a25..0681235 100644
--- a/drivers/usb/host/xhci-rcar.h
+++ b/drivers/usb/host/xhci-rcar.h
@@ -24,7 +24,7 @@ static inline void xhci_rcar_start(struct usb_hcd *hcd)
static inline int xhci_rcar_init_quirk(struct usb_hcd *hcd)
{
- return 0;
+ return -ENODEV;
}
#endif
#endif /* _XHCI_RCAR_H */
==============================================================================
Also I will remove this commit log from in this patch.
> > Remarks:
> > The timestamp doesn't work correctly on R-Car H3 ES1.0. It should be
> > 10 seconds.
> >
> > Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
> > ---
> > arch/arm64/configs/defconfig | 3 +--
> > 1 file changed, 1 insertion(+), 2 deletions(-)
> >
> > diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
> > index a44ef99..a95751d 100644
> > --- a/arch/arm64/configs/defconfig
> > +++ b/arch/arm64/configs/defconfig
> > @@ -1,7 +1,6 @@
> > # CONFIG_LOCALVERSION_AUTO is not set
> > CONFIG_SYSVIPC=y
> > CONFIG_POSIX_MQUEUE=y
> > -CONFIG_FHANDLE=y
> > CONFIG_AUDIT=y
> > CONFIG_NO_HZ_IDLE=y
> > CONFIG_HIGH_RES_TIMERS=y
>
> Is the hunk above intended?
> It does not seem to match my reading of the changelog.
Perhaps I should make a patch for this change because
if I did the following commands, this change appeared.
on renesas-devel-20160420-v4.6-rc4
$ make defconfig
$ cp defconfig arch/arm64/config
$ git diff
Best regards,
Yoshihiro Shimoda
> > @@ -192,7 +191,7 @@ CONFIG_SND_SOC_AK4613=y
> > CONFIG_USB=y
> > CONFIG_USB_OTG=y
> > CONFIG_USB_XHCI_HCD=y
> > -CONFIG_USB_XHCI_PLATFORM=y
> > +CONFIG_USB_XHCI_RCAR=y
> > CONFIG_USB_EHCI_HCD=y
> > CONFIG_USB_EHCI_MSM=y
> > CONFIG_USB_EHCI_HCD_PLATFORM=y
> > --
> > 1.9.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] arm64: defconfig: Add Renesas R-Car USB 3.0 driver support
[not found] ` <SG2PR06MB0919C567798F775F2685811ED86E0-ESzmfEwOt/zNQ8RBPPB5A20DtJ1/0DrXvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
@ 2016-04-21 3:56 ` Simon Horman
[not found] ` <20160421035623.GB28575-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Simon Horman @ 2016-04-21 3:56 UTC (permalink / raw)
To: Yoshihiro Shimoda
Cc: magnus.damm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
pawel.moll-5wv7dgnIgG8@public.gmane.org,
mark.rutland-5wv7dgnIgG8@public.gmane.org,
ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org,
galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-renesas-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
On Thu, Apr 21, 2016 at 03:41:14AM +0000, Yoshihiro Shimoda wrote:
> Hi Simon-san,
>
> > From: Simon Horman
> > Sent: Thursday, April 21, 2016 12:15 PM
> >
> > Hi Shimoda-san,
> >
> > On Wed, Apr 20, 2016 at 05:47:14PM +0900, Yoshihiro Shimoda wrote:
> > > If we doesn't enable this configuration and runs on R-Car Gen3,
> > > xhci host driver will cause timeout in xhci_reset() because
> > > the R-Car Gen3 xHCI controller needs specific initialization.
> > >
> > > [ 1.565605] xhci-hcd ee000000.usb: xHCI Host Controller
> > > [ 1.570636] xhci-hcd ee000000.usb: new USB bus registered, assigned bus number 5
> > > [ 22.270160] xhci-hcd ee000000.usb: can't setup: -110
> > > [ 22.274931] xhci-hcd ee000000.usb: USB bus 5 deregistered
> > > [ 22.280158] xhci-hcd: probe of ee000000.usb failed with error -110
>
> I'm afraid but this issue can be fixed if we apply the following patch into xhci-rcar.h.
> So, I will submit such a patch to USB ML later.
>
> ==============================================================================
> diff --git a/drivers/usb/host/xhci-rcar.h b/drivers/usb/host/xhci-rcar.h
> index 2941a25..0681235 100644
> --- a/drivers/usb/host/xhci-rcar.h
> +++ b/drivers/usb/host/xhci-rcar.h
> @@ -24,7 +24,7 @@ static inline void xhci_rcar_start(struct usb_hcd *hcd)
>
> static inline int xhci_rcar_init_quirk(struct usb_hcd *hcd)
> {
> - return 0;
> + return -ENODEV;
> }
> #endif
> #endif /* _XHCI_RCAR_H */
> ==============================================================================
>
> Also I will remove this commit log from in this patch.
>
> > > Remarks:
> > > The timestamp doesn't work correctly on R-Car H3 ES1.0. It should be
> > > 10 seconds.
> > >
> > > Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
> > > ---
> > > arch/arm64/configs/defconfig | 3 +--
> > > 1 file changed, 1 insertion(+), 2 deletions(-)
> > >
> > > diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
> > > index a44ef99..a95751d 100644
> > > --- a/arch/arm64/configs/defconfig
> > > +++ b/arch/arm64/configs/defconfig
> > > @@ -1,7 +1,6 @@
> > > # CONFIG_LOCALVERSION_AUTO is not set
> > > CONFIG_SYSVIPC=y
> > > CONFIG_POSIX_MQUEUE=y
> > > -CONFIG_FHANDLE=y
> > > CONFIG_AUDIT=y
> > > CONFIG_NO_HZ_IDLE=y
> > > CONFIG_HIGH_RES_TIMERS=y
> >
> > Is the hunk above intended?
> > It does not seem to match my reading of the changelog.
>
> Perhaps I should make a patch for this change because
> if I did the following commands, this change appeared.
I'm not sure how the ARM-SoC maintainers feel about such cleanups
these days. I suggest just dropping that part of the change for now.
> on renesas-devel-20160420-v4.6-rc4
> $ make defconfig
> $ cp defconfig arch/arm64/config
> $ git diff
>
> Best regards,
> Yoshihiro Shimoda
>
> > > @@ -192,7 +191,7 @@ CONFIG_SND_SOC_AK4613=y
> > > CONFIG_USB=y
> > > CONFIG_USB_OTG=y
> > > CONFIG_USB_XHCI_HCD=y
> > > -CONFIG_USB_XHCI_PLATFORM=y
> > > +CONFIG_USB_XHCI_RCAR=y
> > > CONFIG_USB_EHCI_HCD=y
> > > CONFIG_USB_EHCI_MSM=y
> > > CONFIG_USB_EHCI_HCD_PLATFORM=y
> > > --
> > > 1.9.1
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH] arm64: defconfig: Add Renesas R-Car USB 3.0 driver support
[not found] ` <20160421035623.GB28575-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org>
@ 2016-04-21 9:44 ` Yoshihiro Shimoda
0 siblings, 0 replies; 5+ messages in thread
From: Yoshihiro Shimoda @ 2016-04-21 9:44 UTC (permalink / raw)
To: Simon Horman
Cc: magnus.damm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
pawel.moll-5wv7dgnIgG8@public.gmane.org,
mark.rutland-5wv7dgnIgG8@public.gmane.org,
ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org,
galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-renesas-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Hi Simon-san,
> From: Simon Horman
> Sent: Thursday, April 21, 2016 12:56 PM
>
< snip >
> > > > diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
> > > > index a44ef99..a95751d 100644
> > > > --- a/arch/arm64/configs/defconfig
> > > > +++ b/arch/arm64/configs/defconfig
> > > > @@ -1,7 +1,6 @@
> > > > # CONFIG_LOCALVERSION_AUTO is not set
> > > > CONFIG_SYSVIPC=y
> > > > CONFIG_POSIX_MQUEUE=y
> > > > -CONFIG_FHANDLE=y
> > > > CONFIG_AUDIT=y
> > > > CONFIG_NO_HZ_IDLE=y
> > > > CONFIG_HIGH_RES_TIMERS=y
> > >
> > > Is the hunk above intended?
> > > It does not seem to match my reading of the changelog.
> >
> > Perhaps I should make a patch for this change because
> > if I did the following commands, this change appeared.
>
> I'm not sure how the ARM-SoC maintainers feel about such cleanups
> these days. I suggest just dropping that part of the change for now.
Thank you for the suggestion!
I agree with you. So, I will submit v2 patch today.
Best regards,
Yoshihiro Shimoda
> > on renesas-devel-20160420-v4.6-rc4
> > $ make defconfig
> > $ cp defconfig arch/arm64/config
> > $ git diff
> >
> > Best regards,
> > Yoshihiro Shimoda
> >
> > > > @@ -192,7 +191,7 @@ CONFIG_SND_SOC_AK4613=y
> > > > CONFIG_USB=y
> > > > CONFIG_USB_OTG=y
> > > > CONFIG_USB_XHCI_HCD=y
> > > > -CONFIG_USB_XHCI_PLATFORM=y
> > > > +CONFIG_USB_XHCI_RCAR=y
> > > > CONFIG_USB_EHCI_HCD=y
> > > > CONFIG_USB_EHCI_MSM=y
> > > > CONFIG_USB_EHCI_HCD_PLATFORM=y
> > > > --
> > > > 1.9.1
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-04-21 9:44 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-20 8:47 [PATCH] arm64: defconfig: Add Renesas R-Car USB 3.0 driver support Yoshihiro Shimoda
2016-04-21 3:15 ` Simon Horman
2016-04-21 3:41 ` Yoshihiro Shimoda
[not found] ` <SG2PR06MB0919C567798F775F2685811ED86E0-ESzmfEwOt/zNQ8RBPPB5A20DtJ1/0DrXvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2016-04-21 3:56 ` Simon Horman
[not found] ` <20160421035623.GB28575-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org>
2016-04-21 9:44 ` Yoshihiro Shimoda
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).