Re: [PATCH v1 1/3] usb: dwc2: reset AHB hclk domain before init

2015-08-13 Thread Yunzhi Li
在 2015/8/14 8:09, John Youn 写道: On 8/11/2015 12:57 AM, Yunzhi Li wrote: We initiate dwc2 usb controller in BIOS, when kernel driver start-up we should reset AHB hclk domain to reset all AHB interface registers to default. Without this the FIFO value setting might be incorrect because calculati

[GIT PULL] USB: chipidea updates for v4.3-rc3

2015-08-13 Thread Peter Chen
The following changes since commit e6bbe1d05353a29628a4ca72d88bac0bdcec5f38: Merge 4.2-rc6 into usb-next (2015-08-10 10:01:33 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/peter.chen/usb.git/ tags/usb-ci-v4.3-rc1 for you to fetch changes up t

RE: [PATCH v3 00/10] USB: chipidea misc patches

2015-08-13 Thread Peter Chen
> > In this series, I add several new interfaces for chipidea driver, they are > mainly > for system configuration adjustment. The USB performance may be improved > with these configuration changing, but each vendor driver owner needs to > consult with your IC owner which configuration paramet

Re: [PATCH 1/3] Honor ACPI _CCA attribute setting

2015-08-13 Thread Suravee Suthikulpanit
Hi Jeremy, On 8/13/15 04:51, Jeremy Linton wrote: ACPI configurations can now mark devices as noncoherent, support that choice. Signed-off-by: Jeremy Linton --- include/acpi/acpi_bus.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/acpi/acpi_bus.h b/include

Re: [PATCH] usb: phy: phy-generic: Fix reset behaviour on legacy boot

2015-08-13 Thread Fabio Estevam
On Thu, Aug 13, 2015 at 7:28 AM, Roger Quadros wrote: > The gpio-desc migration done in v4.0 caused a regression > with legacy boots due to reversed reset logic. > e.g. omap3-beagle USB host breaks on legacy boot. > > Request the reset GPIO with GPIOF_ACTIVE_LOW flag so that > it matches the drive

Re: [PATCH v1 1/3] usb: dwc2: reset AHB hclk domain before init

2015-08-13 Thread John Youn
On 8/11/2015 12:57 AM, Yunzhi Li wrote: > We initiate dwc2 usb controller in BIOS, when kernel driver > start-up we should reset AHB hclk domain to reset all AHB > interface registers to default. Without this the FIFO value > setting might be incorrect because calculating FIFO size need the > power

Re: [RFC][PATCH 2/2] usb: gadget: configfs: notify userspace of usb state changes

2015-08-13 Thread Felipe Balbi
Hi, On Thu, Aug 13, 2015 at 09:42:17PM +0200, Krzysztof Opasiak wrote: > Hello, > > On 08/13/2015 09:12 PM, Amit Pundir wrote: > >This is more of an RFC than an actual submission. There are few > >scattered #ifdefs..#endifs here and there which still need to be > >taken care of before going for a

Re: [RFC][PATCH 1/2] usb: gadget: configfs: add MTP function

2015-08-13 Thread Krzysztof Opasiak
On 08/13/2015 09:57 PM, Greg Kroah-Hartman wrote: On Thu, Aug 13, 2015 at 09:34:46PM +0200, Krzysztof Opasiak wrote: Hello, On 08/13/2015 09:12 PM, Amit Pundir wrote: his MTP function is based on years of work originally done in the Android kernel tree by: Mike Lockwood Benoit Goby

Re: [RFC][PATCH 1/2] usb: gadget: configfs: add MTP function

2015-08-13 Thread Krzysztof Opasiak
On 08/13/2015 09:57 PM, Greg Kroah-Hartman wrote: On Thu, Aug 13, 2015 at 09:34:46PM +0200, Krzysztof Opasiak wrote: Hello, On 08/13/2015 09:12 PM, Amit Pundir wrote: his MTP function is based on years of work originally done in the Android kernel tree by: Mike Lockwood Benoit Goby

Re: [RFC][PATCH 1/2] usb: gadget: configfs: add MTP function

2015-08-13 Thread Greg Kroah-Hartman
On Thu, Aug 13, 2015 at 09:34:46PM +0200, Krzysztof Opasiak wrote: > Hello, > > On 08/13/2015 09:12 PM, Amit Pundir wrote: > >his MTP function is based on years of work originally done in the > >Android kernel tree by: > > Mike Lockwood > > Benoit Goby > > Colin Cross > > Arve Hjøn

Re: [RFC][PATCH 2/2] usb: gadget: configfs: notify userspace of usb state changes

2015-08-13 Thread Krzysztof Opasiak
Hello, On 08/13/2015 09:12 PM, Amit Pundir wrote: This is more of an RFC than an actual submission. There are few scattered #ifdefs..#endifs here and there which still need to be taken care of before going for actual submission. Currently there is no way with the upstream ConfigFS gadget to com

Re: [RFC][PATCH 1/2] usb: gadget: configfs: add MTP function

2015-08-13 Thread Krzysztof Opasiak
Hello, On 08/13/2015 09:12 PM, Amit Pundir wrote: his MTP function is based on years of work originally done in the Android kernel tree by: Mike Lockwood Benoit Goby Colin Cross Arve Hjønnevåg Peter Oh Greg Hackmann Badhri Jagan Sridharan I've folded the series

[RFC][PATCH 0/2] usb: gadget: add MTP function and Uevent userspace notifications

2015-08-13 Thread Amit Pundir
RFC on Android's ConfigFS based MTP function implementation and usage of Uevents to notify the userspace about the USB state changes. The MTP function is based on years of work originally done in the Android kernel tree by: Mike Lockwood Benoit Goby Colin Cross Arve Hjønnevåg

[RFC][PATCH 2/2] usb: gadget: configfs: notify userspace of usb state changes

2015-08-13 Thread Amit Pundir
This is more of an RFC than an actual submission. There are few scattered #ifdefs..#endifs here and there which still need to be taken care of before going for actual submission. Currently there is no way with the upstream ConfigFS gadget to communicate state changes (connected, disconnected, conf

[RFC][PATCH 1/2] usb: gadget: configfs: add MTP function

2015-08-13 Thread Amit Pundir
This MTP function is based on years of work originally done in the Android kernel tree by: Mike Lockwood Benoit Goby Colin Cross Arve Hjønnevåg Peter Oh Greg Hackmann Badhri Jagan Sridharan I've folded the series up to make it easier to review, and to provide a co

Re: CP2108 write failure

2015-08-13 Thread Felipe Balbi
On Thu, Aug 13, 2015 at 11:55:07AM -0700, Greg KH wrote: > On Thu, Aug 13, 2015 at 01:44:24PM -0500, Felipe Balbi wrote: > > Hi, > > > > On Thu, Aug 13, 2015 at 01:37:19PM -0500, Felipe Balbi wrote: > > > Hi, > > > > > > I have reproduced this write failure very reliably with two different > > >

Re: CP2108 write failure

2015-08-13 Thread Greg KH
On Thu, Aug 13, 2015 at 01:44:24PM -0500, Felipe Balbi wrote: > Hi, > > On Thu, Aug 13, 2015 at 01:37:19PM -0500, Felipe Balbi wrote: > > Hi, > > > > I have reproduced this write failure very reliably with two different > > hosts (my xHCI Desktop and AM335x with MUSB). > > > > It's very simple t

Re: [PATCH 3/8][v3]usb:fsl:otg: Add support to add/remove usb host driver

2015-08-13 Thread Alan Stern
On Thu, 13 Aug 2015, Ramneek Mehresh wrote: > Add workqueue to add/remove host driver (outside > interrupt context) upon each id change. > > Signed-off-by: Li Yang > Signed-off-by: Ramneek Mehresh > --- > Changes for v3: > - removed CONFIG_FSL_USB2_OTG and CONFIG_FSL_USB2_OTG_MODULE >

Re: CP2108 write failure

2015-08-13 Thread Felipe Balbi
Hi, On Thu, Aug 13, 2015 at 01:37:19PM -0500, Felipe Balbi wrote: > Hi, > > I have reproduced this write failure very reliably with two different > hosts (my xHCI Desktop and AM335x with MUSB). > > It's very simple to reproduce with the ruby script below: > > #!/usr/bin/env ruby > > 100.ti

Re: [PATCH 7/8][v3]usb:fsl:otg: Remove host drv upon otg bring-up

2015-08-13 Thread Alan Stern
On Thu, 13 Aug 2015, Ramneek Mehresh wrote: > Change have_hcd variable to remove/suspend host driver on > completion of otg initialization for otg auto detect. > > Signed-off-by: Ramneek Mehresh > Reviewed-by: Li Yang-R58472 > Reviewed-by: Fleming Andrew-AFLEMING > Tested-by: Fleming Andrew-AF

[PATCH 0/8][v2]Add OTG support for FSL socs

2015-08-13 Thread Ramneek Mehresh
Add support for otg for all freescale socs having internal usb phy. Ramneek Mehresh (8): 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

[PATCH 7/8][v3]usb:fsl:otg: Remove host drv upon otg bring-up

2015-08-13 Thread Ramneek Mehresh
Change have_hcd variable to remove/suspend host driver on completion of otg initialization for otg auto detect. Signed-off-by: Ramneek Mehresh Reviewed-by: Li Yang-R58472 Reviewed-by: Fleming Andrew-AFLEMING Tested-by: Fleming Andrew-AFLEMING --- drivers/usb/host/ehci-fsl.c | 2 ++ 1 file cha

[PATCH 3/8][v3]usb:fsl:otg: Add support to add/remove usb host driver

2015-08-13 Thread Ramneek Mehresh
Add workqueue to add/remove host driver (outside interrupt context) upon each id change. Signed-off-by: Li Yang Signed-off-by: Ramneek Mehresh --- Changes for v3: - removed CONFIG_FSL_USB2_OTG and CONFIG_FSL_USB2_OTG_MODULE macros - removed call to usb_hcd_resume_root_h

[PATCH 2/8][v3]usb:fsl:otg: Add controller version based ULPI and UTMI phy

2015-08-13 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/8][v3]usb:fsl:otg: Signal host drv when host is otg

2015-08-13 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

RE: [PATCH 0/8][v2]Add OTG support for FSL socs

2015-08-13 Thread Ramneek Mehresh
Please ignore v2 ... sent by mistake...please consider v3 patch-set > -Original Message- > From: Ramneek Mehresh [mailto:ramneek.mehr...@freescale.com] > Sent: Thursday, August 13, 2015 11:55 PM > To: linux-ker...@vger.kernel.org > Cc: ba...@ti.com; st...@rowland.harvard.edu; gre...@linuxf

[PATCH 1/8][v2]usb:fsl:otg: Make fsl otg driver as tristate

2015-08-13 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 869c0cfcad..8a09267 100644 --- a/drivers/usb/phy/Kconfi

[PATCH 6/8][v3]usb:fsl:otg: Combine host/gadget start/resume for ID change

2015-08-13 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/8][v3]usb:fsl:otg: Make fsl otg driver as tristate

2015-08-13 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 869c0cfcad..8a09267 100644 --- a/drivers/usb/phy/Kconfi

[PATCH 5/8][v3]usb:fsl:otg: Modify otg_event to start host drv

2015-08-13 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

[PATCH 8/8][v3]usb:fsl:otg: Add host-gadget drv sync delay

2015-08-13 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 4/8][v2]usb:fsl:otg: Signal host drv when host is otg

2015-08-13 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/8][v2]usb:fsl:otg: Modify otg_event to start host drv

2015-08-13 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

[PATCH 2/8][v2]usb:fsl:otg: Add controller version based ULPI and UTMI phy

2015-08-13 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 3/8][v2]usb:fsl:otg: Add support to add/remove usb host driver

2015-08-13 Thread Ramneek Mehresh
Add workqueue to add/remove host driver (outside interrupt context) upon each id change. Signed-off-by: Li Yang Signed-off-by: Ramneek Mehresh --- drivers/usb/host/ehci-fsl.c | 83 ++--- drivers/usb/host/ehci-fsl.h | 20 +++ 2 files changed, 84 in

[PATCH 6/8][v2]usb:fsl:otg: Combine host/gadget start/resume for ID change

2015-08-13 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 7/8][v2]usb:fsl:otg: Remove host drv upon otg bring-up

2015-08-13 Thread Ramneek Mehresh
Change have_hcd variable to remove/suspend host driver on completion of otg initialization for otg auto detect. Signed-off-by: Ramneek Mehresh Reviewed-by: Li Yang-R58472 Reviewed-by: Fleming Andrew-AFLEMING Tested-by: Fleming Andrew-AFLEMING --- drivers/usb/host/ehci-fsl.c | 2 ++ 1 file cha

[PATCH 8/8][v2]usb:fsl:otg: Add host-gadget drv sync delay

2015-08-13 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 0/8][v3] Add OTG support for FSL socs

2015-08-13 Thread Ramneek Mehresh
Add support for otg for all freescale socs having internal usb phy. Ramneek Mehresh (8): 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

Re: 4.2 kernel trace when hot unplug a mounted USB/SATA/MMC devices with ext2/ext3/ext4 file system

2015-08-13 Thread Darrick J. Wong
On Wed, Aug 12, 2015 at 08:17:28PM -0700, Duc Dang wrote: > Hi Theodore, Andreas, Jan, Andrew and All, > > We are seeing kernel trace when we disconnect an USB/SATA/MMC devices > that has its ext2/ext3/ext4 partition currently mounted. These traces > are seen with kernel 4.2-rc5 on APM Arm64 X-Gen

Re: [PATCH 3/3] Add ACPI bindings for the EHCI platform driver.

2015-08-13 Thread Jeremy Linton
Alan, On 08/13/2015 09:53 AM, Alan Stern wrote: With these changes: Applied.. Acked-by: Alan Stern Thanks, -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger

Re: [PATCH] usb: chipidea: reuse the platform_data to store the ci info

2015-08-13 Thread Alan Stern
On Thu, 13 Aug 2015, Peter Chen wrote: > > > Alan, do you have any suggestions? Currently, IP core driver and ehci > > > core both takes its internal structure as driver data. Thanks. > > > > It's not just ehci-hcd: The USB core stores the hcd address as driver > > data. usb_create_shared_hcd()

Re: [PATCH 3/3] Add ACPI bindings for the EHCI platform driver.

2015-08-13 Thread Alan Stern
On Wed, 12 Aug 2015, Jeremy Linton wrote: > This enables USB on the ARM juno board when booted with > an ACPI kernel. The PNP id comes from the PNP/ACPI registry > and describes a EHCI controller without debug. > > Signed-off-by: Jeremy Linton Looks okay, but... > --- > drivers/usb/host/ehci-

Re: [PATCH 2/3] Display a DMA error message

2015-08-13 Thread Alan Stern
On Wed, 12 Aug 2015, Jeremy Linton wrote: > If the ehci driver fails to configure the dma settings then display > a dev error instead of simply failing. This is triggered in an > ACPI world if the user fails to set the _CCA on the device. > > Signed-off-by: Jeremy Linton > --- > drivers/usb/hos

Re: [PATCH 3/3] Add ACPI bindings for the EHCI platform driver.

2015-08-13 Thread Jeremy Linton
Hello Hanjun, On 08/13/2015 06:50 AM, Hanjun Guo wrote: With that minor fixes, Reviewed-by: Hanjun Guo Fixes applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo

Re: [PATCH v1] usb: dwc2: reset AHB hclk domain before init

2015-08-13 Thread Felipe Balbi
On Thu, Aug 13, 2015 at 08:37:36AM +, John Youn wrote: > On 8/12/2015 12:33 PM, Felipe Balbi wrote: > > On Wed, Aug 12, 2015 at 07:06:09PM +0800, Yunzhi Li wrote: > >> Hi , > >> 在 2015/8/11 22:12, Felipe Balbi 写道: > >>> Hi, > >>> > >>> On Tue, Aug 11, 2015 at 10:27:42AM +0800, Yunzhi Li wrote:

[GIT PULL] USB patches for v4.3 merge window

2015-08-13 Thread Felipe Balbi
Hi Greg, here's the big Gadget pull request. It contains 146 non-merge commits this time around. All patches have been soaking in next for quite a while and have also been tested with the platforms I have around. Let me know if you want anything to be changed. cheers The following changes sinc

Re: [PATCH 3/3] Add ACPI bindings for the EHCI platform driver.

2015-08-13 Thread Hanjun Guo
Hi Jeremy, Just minor comments below. (resend as it's blocked by mailist) On 2015/8/13 5:51, Jeremy Linton wrote: > This enables USB on the ARM juno board when booted with > an ACPI kernel. The PNP id comes from the PNP/ACPI registry > and describes a EHCI controller without debug. > > Signed-off

Re: [PATCH 2/3] Display a DMA error message

2015-08-13 Thread Hanjun Guo
On 2015/8/13 5:51, Jeremy Linton wrote: > If the ehci driver fails to configure the dma settings then display > a dev error instead of simply failing. This is triggered in an > ACPI world if the user fails to set the _CCA on the device. > > Signed-off-by: Jeremy Linton > --- > drivers/usb/host/eh

[PATCH] usb: phy: phy-generic: Fix reset behaviour on legacy boot

2015-08-13 Thread Roger Quadros
The gpio-desc migration done in v4.0 caused a regression with legacy boots due to reversed reset logic. e.g. omap3-beagle USB host breaks on legacy boot. Request the reset GPIO with GPIOF_ACTIVE_LOW flag so that it matches the driver logic and pin behaviour. Fixes: e9f2cefb0cdc ("usb: phy: generi

Re: [PATCH 0/3] Enable EHCI-platform driver for use with ACPI

2015-08-13 Thread Graeme Gregory
On Wed, Aug 12, 2015 at 04:51:27PM -0500, Jeremy Linton wrote: > This patch set enables the USB on the ARM Juno development platform > when using an ACPI kernel. This patch is in two primary parts. First > It tweaks the code in acpi_check_dma() to support the recently added > CCA attribute which de

Re: [PATCH v1] usb: dwc2: reset AHB hclk domain before init

2015-08-13 Thread John Youn
On 8/12/2015 12:33 PM, Felipe Balbi wrote: > On Wed, Aug 12, 2015 at 07:06:09PM +0800, Yunzhi Li wrote: >> Hi , >> 在 2015/8/11 22:12, Felipe Balbi 写道: >>> Hi, >>> >>> On Tue, Aug 11, 2015 at 10:27:42AM +0800, Yunzhi Li wrote: We initiate dwc2 usb controller in BIOS, when kernel driver sta

Re: Huawei E3131

2015-08-13 Thread Martin Mokrejs
Hi Dan and Bjorn, thank you both for your detailed answers on this thread. Bjørn Mork wrote: Martin Mokrejs writes: Hi Bjorn, my have a new USB 3G modem sold in Czech Republic by T-Mobile. So far it works for me only using the option driver and pppd. The 'qmi-network /dev/cdc