Re: 3.7 kernel hangs when doing scp

2012-12-17 Thread Greg KH
On Tue, Dec 18, 2012 at 12:01:35AM -0200, Fabio Estevam wrote: > Hi, > > Booting a 3.7 kernel on a mx6qsabrelite board via NFS and using an > asix USB/Ethernet adapter and then I try to transfer a 10MB file from > the target to the host: Has this ever worked before on any older kernel? thanks,

Re: 3.7 kernel hangs when doing scp

2012-12-18 Thread Sebastian Andrzej Siewior
On Tue, Dec 18, 2012 at 12:01:35AM -0200, Fabio Estevam wrote: > Booting a 3.7 kernel on a mx6qsabrelite board via NFS and using an > asix USB/Ethernet adapter and then I try to transfer a 10MB file from > the target to the host: That backtrace shows only that nothing is going on. Can you attach t

Re: 3.7 kernel hangs when doing scp

2012-12-19 Thread Fabio Estevam
Hi Greg, On Tue, Dec 18, 2012 at 12:43 AM, Greg KH wrote: > On Tue, Dec 18, 2012 at 12:01:35AM -0200, Fabio Estevam wrote: >> Hi, >> >> Booting a 3.7 kernel on a mx6qsabrelite board via NFS and using an >> asix USB/Ethernet adapter and then I try to transfer a 10MB file from >> the target to the

Re: 3.7 kernel hangs when doing scp

2012-12-19 Thread Peter Chen
On Wed, Dec 19, 2012 at 12:56:12PM -0200, Fabio Estevam wrote: > Hi Greg, > > On Tue, Dec 18, 2012 at 12:43 AM, Greg KH wrote: > > On Tue, Dec 18, 2012 at 12:01:35AM -0200, Fabio Estevam wrote: > >> Hi, > >> > >> Booting a 3.7 kernel on a mx6qsabrelite board via NFS and using an > >> asix USB/Eth

Re: 3.7 kernel hangs when doing scp

2012-12-20 Thread Fabio Estevam
Hi Peter, On Thu, Dec 20, 2012 at 2:39 AM, Peter Chen wrote: > Please to see if the Stream mode disable (bit4, usbmode) is set or not? > If it is not, please try below patch > > diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c > index c97503b..258bc02 100644 > --- a/drivers

Re: 3.7 kernel hangs when doing scp

2012-12-20 Thread Fabio Estevam
On Thu, Dec 20, 2012 at 8:20 AM, Fabio Estevam wrote: > Hi Peter, > > On Thu, Dec 20, 2012 at 2:39 AM, Peter Chen wrote: > >> Please to see if the Stream mode disable (bit4, usbmode) is set or not? >> If it is not, please try below patch >> >> diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/us

Re: 3.7 kernel hangs when doing scp

2012-12-20 Thread Fabio Estevam
On Thu, Dec 20, 2012 at 8:20 AM, Fabio Estevam wrote: > Excellent! Your suggestion made scp work with mx6 on 3.7. > > I assume that this "fix" or workaround would need a better place, right? > > Should this fix go into the chipidea host driver instead? Also, we are already passing the CI13XXX_DI

Re: 3.7 kernel hangs when doing scp

2012-12-20 Thread Fabio Estevam
On Thu, Dec 20, 2012 at 8:45 AM, Fabio Estevam wrote: > Would this be the correct fix? > > --- a/include/linux/usb/chipidea.h > +++ b/include/linux/usb/chipidea.h > @@ -18,7 +18,7 @@ struct ci13xxx_platform_data { > #define CI13XXX_REGS_SHAREDBIT(0) > #define CI13XXX_REQUIRE_TRANSCE

Re: 3.7 kernel hangs when doing scp

2012-12-20 Thread Peter Chen
On Thu, Dec 20, 2012 at 09:18:43AM -0200, Fabio Estevam wrote: > On Thu, Dec 20, 2012 at 8:45 AM, Fabio Estevam wrote: > > > Would this be the correct fix? > > > > --- a/include/linux/usb/chipidea.h > > +++ b/include/linux/usb/chipidea.h > > @@ -18,7 +18,7 @@ struct ci13xxx_platform_data { > > #

Re: 3.7 kernel hangs when doing scp

2012-12-21 Thread Fabio Estevam
Hi Peter, On Fri, Dec 21, 2012 at 12:22 AM, Peter Chen wrote: > Current chipidea driver only considers disable stream mode at device > mode, in fact, it may be related to below chipidea bug, and needs > to consider all usb modes. > > STAR 9000378958 > Title: Non-Double Word Aligned Buffer Addres

Re: 3.7 kernel hangs when doing scp

2012-12-21 Thread Wolfram Sang
On Fri, Dec 21, 2012 at 07:24:14AM -0200, Fabio Estevam wrote: > Hi Peter, > > On Fri, Dec 21, 2012 at 12:22 AM, Peter Chen wrote: > > > Current chipidea driver only considers disable stream mode at device > > mode, in fact, it may be related to below chipidea bug, and needs > > to consider all

Re: 3.7 kernel hangs when doing scp

2012-12-21 Thread Fabio Estevam
On Fri, Dec 21, 2012 at 9:49 AM, Wolfram Sang wrote: >> Yes, setting CI13XXX_DISABLE_STREAMING inside ci_role_start does work. >> >> If you think the patch below is fine I can properly submit it. > > Why did you need to move this function? Only to make the compiler happy. hw_write() is now used

Re: 3.7 kernel hangs when doing scp

2012-12-21 Thread Wolfram Sang
> Only to make the compiler happy. hw_write() is now used by > ci_role_start(), so I re-ordered so that hw_write comes first in the > code and compiler does not complain. Yup, spotted this on second glance. If you submit the patch, might be helpful to mention this. -- Pengutronix e.K.