Re: MX28 with hub cannot reset

2015-12-24 Thread Stefan Wahren
Hi, > Peter Chen hat am 23. Dezember 2015 um 10:49 > geschrieben: > > > On Wed, Dec 23, 2015 at 6:54 AM, Fabio Estevam wrote: > > Hi, > > > > On a mx28 custom board with a USB hub I can get a USB stick to get > > detected after applying this change: > > http://marc.info/?l=linux-usb&m=145079935

[PATCH 3/7][v4][RESEND]usb:fsl:otg: Add support to add/remove usb host driver

2015-12-24 Thread Ramneek Mehresh
Add workqueue to add/remove host driver (outside interrupt context) upon each id change, and to remove host driver upon otg initialization by changing have_hcd variable. Signed-off-by: Li Yang Signed-off-by: Ramneek Mehresh Reviewed-by: Alan Stern --- drivers/usb/host/ehci-fsl.c | 73 +

[PATCH 7/7][v4][RESEND]usb:fsl:otg: Add host-gadget drv sync delay

2015-12-24 Thread Ramneek Mehresh
Resolve synchronization issue between host and gadget drivers upon role-reversal. Signed-off-by: Ramneek Mehresh Reviewed-by: Li Yang-R58472 Reviewed-by: Fleming Andrew-AFLEMING Tested-by: Fleming Andrew-AFLEMING --- drivers/usb/phy/phy-fsl-usb.c | 12 +++- 1 file changed, 11 insertio

[PATCH 6/7][v4][RESEND]usb:fsl:otg: Combine host/gadget start/resume for ID change

2015-12-24 Thread Ramneek Mehresh
Make call to fsl_otg_event for each id change even. Signed-off-by: Ramneek Mehresh Reviewed-by: Fleming Andrew-AFLEMING Tested-by: Fleming Andrew-AFLEMING --- drivers/usb/phy/phy-fsl-usb.c | 15 +++ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/drivers/usb/phy/phy-

[PATCH 1/7][v4][RESEND]usb:fsl:otg: Make fsl otg driver as tristate

2015-12-24 Thread Ramneek Mehresh
Provide option to load fsl otg driver as loadable module. Signed-off-by: Ramneek Mehresh --- drivers/usb/phy/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/phy/Kconfig b/drivers/usb/phy/Kconfig index 22e8ecb..b6de4a7 100644 --- a/drivers/usb/phy/Kconfig +

[PATCH 0/7][v4][RESEND]Add OTG support for FSL socs

2015-12-24 Thread Ramneek Mehresh
Add support for otg for all freescale socs having internal usb phy. Ramneek Mehresh (7): usb:fsl:otg: Make fsl otg driver as tristate usb:fsl:otg: Add controller version based ULPI and UTMI phy usb:fsl:otg: Add support to add/remove usb host driver usb:fsl:otg: Signal host drv when host is

[PATCH 2/7][v4][RESEND]usb:fsl:otg: Add controller version based ULPI and UTMI phy

2015-12-24 Thread Ramneek Mehresh
Add controller version based ULPI and UTMI phy initialization for otg driver. Signed-off-by: Shengzhou Liu Signed-off-by: Ramneek Mehresh Reviewed-by: Fleming Andrew-AFLEMING Tested-by: Fleming Andrew-AFLEMING --- drivers/usb/phy/phy-fsl-usb.c | 20 drivers/usb/phy/phy-fs

[PATCH 4/7][v4][RESEND]usb:fsl:otg: Signal host drv when host is otg

2015-12-24 Thread Ramneek Mehresh
Set is_otg boolean flag to signal host driver when host is running in context of otg host suspend/resume. Signed-off-by: Ramneek Mehresh --- drivers/usb/phy/phy-fsl-usb.c | 7 ++- include/linux/usb.h | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/usb/p

[PATCH 5/7][v4][RESEND]usb:fsl:otg: Modify otg_event to start host drv

2015-12-24 Thread Ramneek Mehresh
Add mechanism to start host driver from inside fsl_otg_even upon each id change interrupt. Signed-off-by: Ramneek Mehresh Reviewed-by: Fleming Andrew-AFLEMING Tested-by: Fleming Andrew-AFLEMING --- drivers/usb/phy/phy-fsl-usb.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/us

Re: [PATCH v2] r8152: fix lockup when runtime PM is enabled

2015-12-24 Thread Alan Stern
On Thu, 24 Dec 2015, Oliver Neukum wrote: > On Wed, 2015-12-23 at 20:32 -0500, Alan Stern wrote: > > > I don't understand why the wakeup conditions are different. It seems > > to me that the choice of which packets will generate a wakeup ought to > > depend on the user's selection, not on the ki

Re: [PATCH v2] r8152: fix lockup when runtime PM is enabled

2015-12-24 Thread Oliver Neukum
On Thu, 2015-12-24 at 10:14 -0500, Alan Stern wrote: > On Thu, 24 Dec 2015, Oliver Neukum wrote: > > > On Wed, 2015-12-23 at 20:32 -0500, Alan Stern wrote: > > But you cannot keep that setting if the system goes down > > or any broadcast packet would resume the whole system. > > Yet you cannot ju

Re: [PATCH v3 00/10] usb: host: ehci-sched: cleanup

2015-12-24 Thread Geyslan G. Bem
2015-12-13 13:59 GMT-03:00 Geyslan G. Bem : > > Cleanup done with the help of coccinelle, checkpatch and cppcheck tools. > > Geyslan G. Bem (10): > usb: host: ehci-sched: refactor scan_isoc function > usb: host: ehci-sched: move constants to right > usb: host: ehci-sched: remove useless initi

Re: [PATCH v2] r8152: fix lockup when runtime PM is enabled

2015-12-24 Thread Alan Stern
On Thu, 24 Dec 2015, Oliver Neukum wrote: > On Thu, 2015-12-24 at 10:14 -0500, Alan Stern wrote: > > On Thu, 24 Dec 2015, Oliver Neukum wrote: > > > > > On Wed, 2015-12-23 at 20:32 -0500, Alan Stern wrote: > > > > But you cannot keep that setting if the system goes down > > > or any broadcast pa

Re: [PATCH resend 0/9] usb: host: ehci.h cleanup

2015-12-24 Thread Greg Kroah-Hartman
On Thu, Dec 24, 2015 at 01:01:36PM -0300, Geyslan G. Bem wrote: > > 2015-12-11 18:24 GMT-03:00 Geyslan G. Bem : > > This cleanup was done with the help of checkpatch and coccinelle tools. > > Geyslan G. Bem (9): >   usb: host: ehci.h: remove space before comma >   usb: host: ehci

Re: [PATCH resend 0/9] usb: host: ehci.h cleanup

2015-12-24 Thread Geyslan G. Bem
2015-12-24 13:27 GMT-03:00 Greg Kroah-Hartman : > On Thu, Dec 24, 2015 at 01:01:36PM -0300, Geyslan G. Bem wrote: >> >> 2015-12-11 18:24 GMT-03:00 Geyslan G. Bem : >> >> This cleanup was done with the help of checkpatch and coccinelle tools. >> >> Geyslan G. Bem (9): >> usb: host: ehc

Re: MX28 with hub cannot reset

2015-12-24 Thread Fabio Estevam
Hi Stefan, On Thu, Dec 24, 2015 at 6:42 AM, Stefan Wahren wrote: > i want to know more about this issue: > > Are there any unaffected Mainline Kernel versions? It affects all kernel versions. > Are there special hardware requirements to reproduce this issue? I can only see this problem on a m

Re: [PATCH] Add support for usbfs zerocopy.

2015-12-24 Thread Steinar H. Gunderson
On Tue, Dec 22, 2015 at 10:38:57AM -0500, Alan Stern wrote: > Steinar, you can look at those if you want to. But I really don't > think anything more is needed other than the try_module_get and > module_put calls. At least, the Linux Device Drivers book doesn't > mention anything else. OK. I'

[PATCH] Add support for usbfs zerocopy.

2015-12-24 Thread Steinar H. Gunderson
Add a new interface for userspace to preallocate memory that can be used with usbfs. This gives two primary benefits: - Zerocopy; data no longer needs to be copied between the userspace and the kernel, but can instead be read directly by the driver from userspace's buffers. This works for a

Re: [PATCH 3/7][v4][RESEND]usb:fsl:otg: Add support to add/remove usb host driver

2015-12-24 Thread kbuild test robot
-socs/20151224-192624 base: https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git next config: powerpc-mpc837x_rdb_defconfig (attached as .config) reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod

[GIT PULL] USB Chipidea changes for v4.5-rc1

2015-12-24 Thread Peter Chen
The following changes since commit bfccd95e7aba73d0d3154912b17b855cb9938c50: Merge 4.4-rc6 into usb-next (2015-12-21 11:11:12 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/peter.chen/usb.git/ tags/usb-ci-v4.5-rc1 for you to fetch changes up t

Re: MX28 with hub cannot reset

2015-12-24 Thread Peter Chen
On Thu, Dec 24, 2015 at 09:42:58AM +0100, Stefan Wahren wrote: > Hi, > > > Peter Chen hat am 23. Dezember 2015 um 10:49 > > geschrieben: > > > > > > On Wed, Dec 23, 2015 at 6:54 AM, Fabio Estevam wrote: > > > Hi, > > > > > > On a mx28 custom board with a USB hub I can get a USB stick to get > >

Re: [PATCH 6/9] usb: chipidea: debug: use list_for_each_entry

2015-12-24 Thread Peter Chen
On Sat, Dec 19, 2015 at 12:34:31AM +0800, Geliang Tang wrote: > Use list_for_each_entry() instead of list_for_each() to simplify > the code. > > Signed-off-by: Geliang Tang > --- > drivers/usb/chipidea/debug.c | 5 + > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/drivers/