[PATCH v2 2/5] usb: dwc3: add revision number DWC3_REVISION_300A

2015-01-19 Thread Sneeker Yeh
Add the contstant for v3.00a dwc3 IP detection Signed-off-by: Sneeker Yeh --- drivers/usb/dwc3/core.h |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h index 4bb9aa6..8090249 100644 --- a/drivers/usb/dwc3/core.h +++ b/drivers/usb/dwc3/core.h

[PATCH v2 3/5] usb: dwc3: Add quirk for Synopsis device disconnection errata

2015-01-19 Thread Sneeker Yeh
Synopsis Designware USB3 IP earlier than v3.00a which is configured in silicon with DWC_USB3_SUSPEND_ON_DISCONNECT_EN=1, would need a specific quirk to prevent xhci host controller from dying when device is disconnected. Since DWC_USB3_SUSPEND_ON_DISCONNECT_EN is an IP configuration whose state ca

[PATCH v2 1/5] usb: dwc3: add Fujitsu Specific Glue layer

2015-01-19 Thread Sneeker Yeh
This patch adds support for Synopsis DesignWare USB3 IP Core found on Fujitsu Socs. Signed-off-by: Sneeker Yeh --- .../devicetree/bindings/usb/fujitsu-dwc3.txt | 33 drivers/usb/dwc3/Kconfig | 11 ++ drivers/usb/dwc3/Makefile |

[PATCH v2 0/5] Add support for Fujitsu USB host controller

2015-01-19 Thread Sneeker Yeh
These patches add support for XHCI compliant Host controller found on Fujitsu Socs, and are based on http://lwn.net/Articles/629162/ The first patch is to add Fujitsu glue layer of Synopsis DesignWare USB3 driver and last four patch is about quirk implementation of errata in Synopsis DesignWare USB

Re: [PATCH net-next 1/7] r8152: adjust rx_bottom

2015-01-19 Thread Scott Feldman
On Sun, Jan 18, 2015 at 11:13 PM, Hayes Wang wrote: > If a error occurs when submitting rx, skip the remaining submissions > and try to submit them again next time. > > Signed-off-by: Hayes Wang > --- > drivers/net/usb/r8152.c | 15 +-- > 1 file changed, 13 insertions(+), 2 deletions

Re: [PATCH 01/12] mfd: syscon: Add atmel-matrix registers definition

2015-01-19 Thread Lee Jones
On Sun, 18 Jan 2015, Boris Brezillon wrote: > Hi Lee, > > On Sun, 18 Jan 2015 12:52:59 + > Lee Jones wrote: > > > On Wed, 14 Jan 2015, Alexandre Belloni wrote: > > > > > From: Boris Brezillon > > > > > > AT91 SoCs have a memory range reserved for internal bus configuration. > > > Expose

[PATCH net 2/2] r8152: remove sram_read

2015-01-19 Thread Hayes Wang
Read OCP register 0xa43a~0xa43b would clear some flags which the hw would use, and it may let the device lost. However, the unit of reading is 4 bytes. That is, it would read 0xa438~0xa43b when calling sram_read() to read OCP_SRAM_DATA. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 24

[PATCH net 1/2] r8152: remove generic_ocp_read before writing

2015-01-19 Thread Hayes Wang
For ocp_write_word() and ocp_write_byte(), there is a generic_ocp_read() which is used to read the whole 4 byte data, keep the unchanged bytes, and modify the expected bytes. However, the "byen" could be used to determine which bytes of the 4 bytes to write, so the action could be removed. Signed-

[PATCH net 0/2] r8152: couldn't read OCP_SRAM_DATA

2015-01-19 Thread Hayes Wang
Read OCP_SRAM_DATA would read additional bytes and may let the hw abnormal. Hayes Wang (2): r8152: remove generic_ocp_read before writing r8152: remove sram_read drivers/net/usb/r8152.c | 30 ++ 1 file changed, 6 insertions(+), 24 deletions(-) -- 2.1.0 -- To un

Re: Issues with commit 34b48db6 ("block: remove artifical max_hw_sectors cap")

2015-01-19 Thread Kenneth R. Crudup
Sorry for taking so long to get back to you guys about this (the 3.19-rc series has been problematic for me in a couple of areas, so I'd let it go for a while): On Mon, 5 Jan 2015, Alan Stern wrote: > The patch I posted sets a general limit of 32 MB for USB drives that > don't have a quirk flag

Re: [PATCH] drivers/usb/serial/mos7840.c: remove unused code

2015-01-19 Thread Johan Hovold
On Tue, Jan 13, 2015 at 05:41:45PM +, Colin King wrote: > From: Colin Ian King > > There is old, unused code that is #defined out by the > use of NOTMOS7840 - this is not defined anywhere. If > NOTMOS7840 is defined then the code will break on null > pointer dereferences on mos7840_port. So

Re: Fatal Exception on device when Hotsyncing Palm in linux

2015-01-19 Thread Johan Hovold
On Fri, Jan 16, 2015 at 10:10:52AM +0100, Oliver Neukum wrote: > On Thu, 2015-01-15 at 18:34 +0100, Henri Manson wrote: > > Hello Greg, > > > > Nothing goes wrong at the linux host, my Palm m505 shows as dialog box > > 'Fatal Exception' and hangs when the visor.ko module is loaded and > > hotsync

Re: hard lockup with USB3380

2015-01-19 Thread Ricardo Ribalda Delgado
Hello Paul Check an old topic on the list "net2280: tracing", where Jorge Ramirez-Ortiz and Felipe Balbi are working on tracing the chip Regards! On Sun, Jan 18, 2015 at 4:49 PM, Paul Jones wrote: > Ricardo, > > I think I figured out the problem: my 3380 was running in legacy adapter mode. > I

Re: Fatal Exception on device when Hotsyncing Palm in linux

2015-01-19 Thread Johan Hovold
On Sat, Jan 17, 2015 at 12:06:59AM +0100, Henri Manson wrote: > I figured out how to get debug output, enclosed the results. How can I > get usbserial debug output on Ubuntu 9.04? It appears it wasn't a > module yet back then. Try passing usbserial.debug=1 as a kernel parameter from the bootloader

[PATCHv6 2/6] USB: host: ohci-at91: Use struct dev_pm_ops instead of struct platform_driver

2015-01-19 Thread Sylvain Rochet
This patch replace struct platform_driver.{resume,suspend} PM bindings to a new struct dev_pm_ops. Signed-off-by: Sylvain Rochet --- drivers/usb/host/ohci-at91.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb

[PATCHv6 1/6] USB: host: ehci-atmel: Add suspend/resume support

2015-01-19 Thread Sylvain Rochet
This patch add suspend/resume support for Atmel EHCI, mostly about disabling and unpreparing clocks so USB PLL is stopped before entering sleep state. Signed-off-by: Sylvain Rochet --- drivers/usb/host/ehci-atmel.c | 31 +++ 1 file changed, 31 insertions(+) diff --gi

[PATCHv6 6/6] USB: host: ohci-at91: Fix wake-up support

2015-01-19 Thread Sylvain Rochet
This device needs to be continuously clocked to provide wake up support, previously, if STANDBY target were chosen the device were enable_irq_wake()-prepared and clock still active and if MEM target were chosen the device were also enable_irq_wake()-prepared but not clocked anymore, which is wrong.

[PATCHv6 5/6] USB: host: ohci-at91: usb_hcd_at91_probe(), remove useless stack initialisation

2015-01-19 Thread Sylvain Rochet
struct usb_hcd *hcd = NULL; ... hcd = usb_create_hcd(driver, dev, "at91"); This patch remove *hcd useless initialisation Signed-off-by: Sylvain Rochet --- drivers/usb/host/ohci-at91.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/

[PATCHv6 4/6] USB: host: ohci-at91: Move global variables to private struct

2015-01-19 Thread Sylvain Rochet
This patch move AT91 OHCI global variables (clocks ptr and clocked boolean) to private struct ohci_at91_priv, stored in ohci->priv. Signed-off-by: Sylvain Rochet --- drivers/usb/host/ohci-at91.c | 84 +++- 1 file changed, 51 insertions(+), 33 deletions(-)

[PATCHv6 0/6] USB: host: Atmel OHCI and EHCI drivers improvements

2015-01-19 Thread Sylvain Rochet
USB: host: Atmel OHCI and EHCI drivers improvements Suspend/resume support for EHCI. struct dev_pm_ops for OHCI. Removed global variables from both. Fixed OHCI wake up support for STANDBY(wake-up enabled) and MEM(wake-up disabled) sleep targets. Changes since v5: * Don't overwrite device wakeup

[PATCHv6 3/6] USB: host: ehci-atmel: Move global variables to private struct

2015-01-19 Thread Sylvain Rochet
This patch move Atmel EHCI global variables (clocks ptr and clocked boolean) to private struct atmel_ehci_priv, stored in ehci->priv. Signed-off-by: Sylvain Rochet --- drivers/usb/host/ehci-atmel.c | 79 +++ 1 file changed, 50 insertions(+), 29 deletions(-

Re: [PATCH 1/1] usb: serial: Fintek F81232 driver improvement

2015-01-19 Thread Johan Hovold
On Mon, Jan 19, 2015 at 09:54:55AM +0800, Peter Hung wrote: > The original driver completed with TX function, but RX/MSR/MCR/LSR is not > workable with this driver. So we rewrite it to make this device workable. > > This patch is tested with PassMark BurnInTest with Cycle-to-115200 + > MCR/MSR che

Re: [PATCH 1/3] Revert "usb: gadget: uvc: cleanup __uvcg_fill_strm()"

2015-01-19 Thread Andrzej Pietrasiewicz
W dniu 19.01.2015 o 01:05, Laurent Pinchart pisze: Hi Andrzej, Thank you for the patch. On Friday 16 January 2015 15:14:26 Andrzej Pietrasiewicz wrote: This reverts commit c0b53cb16250 ("usb: gadget: uvc: cleanup __uvcg_fill_strm()"). I can't find that commit in Linus' master, next/master or

Re: Fatal Exception on device when Hotsyncing Palm in linux

2015-01-19 Thread Henri Manson
Dear Johan, Enclosed the dmesg outputs from 9.04 and 10.04.4. I booted both kernels with usbserial.debug=1 and loaded module visor.ko with parameter debug=1 Kind regards, Henri On Mon, Jan 19, 2015 at 11:56 AM, Johan Hovold wrote: > On Sat, Jan 17, 2015 at 12:06:59AM +0100, Henri Manson wrote:

Re: [PATCH 1/3] Revert "usb: gadget: uvc: cleanup __uvcg_fill_strm()"

2015-01-19 Thread Laurent Pinchart
Hi Andrzej, On Monday 19 January 2015 12:23:38 Andrzej Pietrasiewicz wrote: > W dniu 19.01.2015 o 01:05, Laurent Pinchart pisze: > > Hi Andrzej, > > > > Thank you for the patch. > > > > On Friday 16 January 2015 15:14:26 Andrzej Pietrasiewicz wrote: > >> This reverts commit c0b53cb16250 ("usb: g

[PATCH v3 2/2] mfd: dln2: add suspend/resume functionality

2015-01-19 Thread Octavian Purdila
Without suspend/resume functionality in the USB driver the USB core will disconnect and reconnect the DLN2 port and because the GPIO framework does not yet support removal of an in-use controller a suspend/resume operation will result in a crash. This patch provides suspend and resume functions fo

[PATCH v3 1/2] mfd: dln2: add start/stop RX URBs helpers

2015-01-19 Thread Octavian Purdila
This is in preparation for adding suspend / resume support. Signed-off-by: Octavian Purdila Reviewed-by: Johan Hovold --- drivers/mfd/dln2.c | 51 +-- 1 file changed, 41 insertions(+), 10 deletions(-) diff --git a/drivers/mfd/dln2.c b/drivers/mfd

[PATCH v3 0/2] DLN2 fixes related to suspend/resume

2015-01-19 Thread Octavian Purdila
Hi Lee, Here is the 3rd version of the patch-set against for-mfd-next branch with the Reviewed-by tags from Johan. Note that I dropped the two GPIO patches as they were already merged by Linus W in the GPIO tree. Thanks, Tavi Changes since v2: * Dropped the GPIO fixes from this series as they

Re: Difference between run time and normal suspend

2015-01-19 Thread vichy
hi Alan: 2015-01-19 0:49 GMT+08:00 Alan Stern : > On Sun, 18 Jan 2015, vichy wrote: > >> after tracing the source, I only can find the ehci_suspend is called >> when system hibernate/suspend. >> rpm_suspend use below method to find out suspend callback >> if (dev->pm_domain) >> callbac

Re: [PATCH 2/2] Add HCS_PPC when getting root hub status

2015-01-19 Thread vichy
hi alan 2015-01-19 1:06 GMT+08:00 Alan Stern : > On Sun, 18 Jan 2015, Chechun Kuo wrote: > >> for some platform ehci controller, it is possible there is no port power >> control capability in the root hub. >> And we add port power control determination when getting root hub port >> status. > > W

Re: [PATCH 1/2] Add hub port switchable when checking port power

2015-01-19 Thread vichy
2015-01-19 1:04 GMT+08:00 Alan Stern : > On Sun, 18 Jan 2015, Chechun Kuo wrote: > >> In check_port_resume_type, we will check port power status to determine >> whether the status should change to -ENODEV. >> If all ports power control of the hub are handled at once, the port power >> status may

[PATCHv2 4/4] usb: gadget: uvc: comments for iterating over streaming hierarchy

2015-01-19 Thread Andrzej Pietrasiewicz
The purpose of the functions and their parametrs might not be obvious to the reader, so explain it. Signed-off-by: Andrzej Pietrasiewicz --- drivers/usb/gadget/function/uvc_configfs.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/drivers/usb/gadget/function/

[PATCHv2 1/4] Revert "usb: gadget: uvc: cleanup __uvcg_fill_strm()"

2015-01-19 Thread Andrzej Pietrasiewicz
This reverts commit c8dba1896595 ("usb: gadget: uvc: cleanup __uvcg_fill_strm()"). __uvcg_fill_stream() during its execution uses priv2 as a pointer to a pointer, because it advances the current position by the amount of data taken by each processed descriptor and the advanced position should be v

[PATCHv2 0/4] Fixes for configfs support in uvc

2015-01-19 Thread Andrzej Pietrasiewicz
This short series reverts a commit which, at a first glance, simplifies the code but in fact makes it not work correctly. The series applies small fixes and adds some comments to functions. This is an updated series after Laurent's comments - thank you, Laurent. @Felipe: The first patch of the ser

[PATCHv2 2/4] usb: gadget: uvc: preserve the address passed to kfree()

2015-01-19 Thread Andrzej Pietrasiewicz
__uvcg_fill_strm() called from __uvcg_iter_stream_cls() might have advanced the "data" even if __uvcg_iter_stream_cls() returns an error, so use a backup copy as an argument to kfree(). Signed-off-by: Andrzej Pietrasiewicz Acked-by: Laurent Pinchart --- drivers/usb/gadget/function/uvc_configfs.

[PATCHv2 3/4] usb: gadget: uvc: use explicit type instead of void *

2015-01-19 Thread Andrzej Pietrasiewicz
The first parameter of __uvcg_iter_strm_cls() is always used in the context of struct uvcg_streaming_header, so change the function prototype accordingly. Signed-off-by: Andrzej Pietrasiewicz --- drivers/usb/gadget/function/uvc_configfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[PATCH v2 1/3] usb: XHCI: platform: Move the Marvell quirks after the enabling the clocks

2015-01-19 Thread Maxime Ripard
The commit 973747928514 ("usb: host: xhci-plat: add support for the Armada 375/38x XHCI controllers") extended the xhci-plat driver to support the Armada 375/38x SoCs, mostly by adding a quirk configuring the MBUS window. However, that quirk was run before the clock the controllers needs has been

[PATCH v2 0/3] ARM: mvebu: Enable XHCI on the Armada 385 AP

2015-01-19 Thread Maxime Ripard
Hi all, This serie enables the Armada 385 AP XHCI controller. Since the controller uses a GPIO-controlled VBUS, we used the phy-generic driver, and made the needed additions to the xhci-plat driver to retrieve a USB phy. Unfortunately, some glitches were also found along the way, mostly because

[PATCH v2 2/3] usb: xhci: plat: Add USB phy support

2015-01-19 Thread Maxime Ripard
The Marvell Armada 385 AP needs a dumb phy in order to enable the USB3 VBUS. Add a call to retrieve a USB PHY to XHCI plat in order to support this. Signed-off-by: Maxime Ripard --- drivers/usb/host/xhci-plat.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --gi

[PATCH v2 3/3] ARM: mvebu: armada-385-ap: Enable USB3 port

2015-01-19 Thread Maxime Ripard
The Armada 385 AP board has a USB3 port exposed that uses a GPIO to drive the VBUS line. Enable the needed drivers to support this. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/armada-385-db-ap.dts | 28 1 file changed, 28 insertions(+) diff --git a/arch/arm/b

Re: Control message failures kill entire XHCI stack

2015-01-19 Thread Mathias Nyman
Hi On 18.01.2015 22:55, Devin Heitmueller wrote: > Hello, > > I'm debugging some issues on a couple of different USB TV tuners which > boil down to the following error: > > xhci_hcd :00:14.0: xHCI host not responding to stop endpoint command. > > This is followed by the XHCI driver disconne

[PATCH] usb: gadget: composite: Provide list of registered functions

2015-01-19 Thread Krzysztof Opasiak
This is a respin of previously discussed RFC patch[1]. *Why?* USB gadget can be composed from userspace using ConfigFS. During gadget composition user has to create at least one instance of function. Instance is being created using cd /usb-gadget/ mkdir functions/. Where: instance - unique name

[PATCH] usb: gadget: composite: Provide list of registered functions

2015-01-19 Thread Krzysztof Opasiak
Driver which provides implementation of some USB functions registers usb_function_driver structure in composite framework. Function drivers are identifed using registered name. When gadget is composed using configfs user must know what names has been registered. If function is compiled as a module

Re: 3.18 regression: Error while assigning device slot ID, USB3 devices not detected

2015-01-19 Thread Josh Boyer
On Sun, Jan 18, 2015 at 1:25 AM, Greg KH wrote: > On Sun, Jan 18, 2015 at 12:08:18AM -0600, Robert Hancock wrote: >> I've got an Intel Haswell-based system with a Gigabyte Z87X-D3H motherboard >> under Fedora 21. After updating to the 3.18.2-200 Fedora kernel, I noticed >> some errors in dmesg and

[PATCH][V2] drivers/usb/serial/mos7840.c: remove unused code

2015-01-19 Thread Colin King
From: Colin Ian King There is old, unused code that is #defined out by the use of NOTMOS7840 and NOTMCS7840 - these are not defined anywhere. If NOTMOS7840 is defined then the code will break on null pointer dereferences on mos7840_port. So the code is currently unused, and broken anyway, so wh

Re: [PATCHv5 0/6] USB: host: Atmel OHCI and EHCI drivers improvements

2015-01-19 Thread Nicolas Ferre
Le 18/01/2015 23:25, Sylvain Rochet a écrit : > USB: host: Atmel OHCI and EHCI drivers improvements > > Suspend/resume support for EHCI. > struct dev_pm_ops for OHCI. > Removed global variables from both. > Fixed OHCI wake up support for STANDBY(wake-up enabled) and MEM(wake-up > disabled) sleep

Re: 3.18 regression: Error while assigning device slot ID, USB3 devices not detected

2015-01-19 Thread Greg KH
On Mon, Jan 19, 2015 at 08:28:19AM -0500, Josh Boyer wrote: > On Sun, Jan 18, 2015 at 1:25 AM, Greg KH wrote: > > On Sun, Jan 18, 2015 at 12:08:18AM -0600, Robert Hancock wrote: > >> I've got an Intel Haswell-based system with a Gigabyte Z87X-D3H motherboard > >> under Fedora 21. After updating to

Re: [PATCHv5 0/6] USB: host: Atmel OHCI and EHCI drivers improvements

2015-01-19 Thread Sylvain Rochet
Hello Nicolas, On Mon, Jan 19, 2015 at 02:34:20PM +0100, Nicolas Ferre wrote: > Le 18/01/2015 23:25, Sylvain Rochet a écrit : > > USB: host: Atmel OHCI and EHCI drivers improvements > > > > Suspend/resume support for EHCI. > > struct dev_pm_ops for OHCI. > > Removed global variables from both. >

Re: 3.18 regression: Error while assigning device slot ID, USB3 devices not detected

2015-01-19 Thread Josh Boyer
On Mon, Jan 19, 2015 at 8:33 AM, Greg KH wrote: > On Mon, Jan 19, 2015 at 08:28:19AM -0500, Josh Boyer wrote: >> On Sun, Jan 18, 2015 at 1:25 AM, Greg KH wrote: >> > On Sun, Jan 18, 2015 at 12:08:18AM -0600, Robert Hancock wrote: >> >> I've got an Intel Haswell-based system with a Gigabyte Z87X-D

Re: [PATCHv3 1/2] USB: gadget: atmel_usba_udc: Fixed vbus_prev initial state

2015-01-19 Thread Nicolas Ferre
Le 18/01/2015 18:24, Sylvain Rochet a écrit : > If vbus gpio is high at init, we should set vbus_prev to true > accordingly to the current vbus state. Without that, we skip the first > vbus interrupt because the saved vbus state is not consistent. > > Signed-off-by: Sylvain Rochet Indeed: Acked-

Re: [PATCH v4 00/11] scsi: fix module reference mismatch for scsi host

2015-01-19 Thread Tejun Heo
On Mon, Jan 19, 2015 at 12:05:58AM +0900, Akinobu Mita wrote: > While accessing a scsi_device, the use count of the underlying LLDD > module is incremented. The module reference is retrieved through > .module field of struct scsi_host_template. > > This mapping between scsi_device and underlying

[PATCH] ARM: DTS: Exynos: add 'dr_mode' property to hsotg devices

2015-01-19 Thread Marek Szyprowski
All currently supported boards use hsotg/dwc2 controller in device ('peripheral') mode, so add property which sets correct operation mode. This patch fixes support in recent changes in dwc2 driver, which added support for dual-role devices. Suggested-by: Paul Zimmerman Signed-off-by: Marek Szypro

[PATCH] usb: dwc2: rework initialization of host and gadget in dual-role mode

2015-01-19 Thread Marek Szyprowski
If device is configured to work only in HOST or DEVICE mode, there is no point in initializing both subdrivers. This patch also fixes resource leakage if host subdriver fails to initialize. Signed-off-by: Marek Szyprowski --- drivers/usb/dwc2/core.h | 2 ++ drivers/usb/dwc2/platform.c | 29

Re: [PATCH v2 2/5] usb: dwc3: add revision number DWC3_REVISION_300A

2015-01-19 Thread Felipe Balbi
Hi, On Mon, Jan 19, 2015 at 03:56:46PM +0800, Sneeker Yeh wrote: > Add the contstant for v3.00a dwc3 IP detection > > Signed-off-by: Sneeker Yeh > --- > drivers/usb/dwc3/core.h |1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h > index

Re: XHCI, "brain-dead scanner", and microframe rounding

2015-01-19 Thread Mathias Nyman
> > Any progress on this one? > > Quite a bunch of people, that try to use a scanner on a xhci port gets > bitten by this issue. Given, that modern haswell mainboards tend to only > support xhci ports anymore, this is a real showstopper and kind of > regression from users POV. > > https://bugzi

Re: [PATCH v2 1/5] usb: dwc3: add Fujitsu Specific Glue layer

2015-01-19 Thread Felipe Balbi
On Mon, Jan 19, 2015 at 03:56:45PM +0800, Sneeker Yeh wrote: > This patch adds support for Synopsis DesignWare USB3 IP Core found > on Fujitsu Socs. > > Signed-off-by: Sneeker Yeh if this is moved after patch 3, you don't need to patch it again to add the quirk ;-) -- balbi signature.asc Des

Re: [PATCH v2 3/5] usb: dwc3: Add quirk for Synopsis device disconnection errata

2015-01-19 Thread Felipe Balbi
Hi, On Mon, Jan 19, 2015 at 03:56:47PM +0800, Sneeker Yeh wrote: > Synopsis Designware USB3 IP earlier than v3.00a which is configured in silicon > with DWC_USB3_SUSPEND_ON_DISCONNECT_EN=1, would need a specific quirk to > prevent > xhci host controller from dying when device is disconnected. >

Re: [PATCH v2 4/5] xhci: Platform: Set Synopsis device disconnection quirk based on platform data

2015-01-19 Thread Felipe Balbi
On Mon, Jan 19, 2015 at 03:56:48PM +0800, Sneeker Yeh wrote: > If an xhci platform has Synopsis device disconnection errata then enable > XHCI_DISCONNECT_QUIRK quirk flag. > > Signed-off-by: Sneeker Yeh > --- > drivers/usb/host/xhci-plat.c |3 +++ > include/linux/usb/xhci_pdriver.h |

Re: 3.18 regression: Error while assigning device slot ID, USB3 devices not detected

2015-01-19 Thread Mathias Nyman
On 19.01.2015 15:47, Josh Boyer wrote: > On Mon, Jan 19, 2015 at 8:33 AM, Greg KH wrote: >> On Mon, Jan 19, 2015 at 08:28:19AM -0500, Josh Boyer wrote: >>> On Sun, Jan 18, 2015 at 1:25 AM, Greg KH wrote: On Sun, Jan 18, 2015 at 12:08:18AM -0600, Robert Hancock wrote: > I've got an Intel

Re: [PATCH][V2] drivers/usb/serial/mos7840.c: remove unused code

2015-01-19 Thread Johan Hovold
On Mon, Jan 19, 2015 at 01:32:58PM +, Colin King wrote: > From: Colin Ian King > > There is old, unused code that is #defined out by the > use of NOTMOS7840 and NOTMCS7840 - these are not > defined anywhere. > > If NOTMOS7840 is defined then the code will break on null > pointer dereferences

ohci: sporadic crash/lockup in ohci-hcd io_watchdog_func()

2015-01-19 Thread Heiko Przybyl
Hi all, been redirected here from bug #91511 [1]. I'm getting sporadic crashes in io_watchdog_func() in drivers/usb/host/ohci- hcd.c:761: " list_for_each_entry(ed, &ohci->eds_in_use, in_use_list) { if (ed->pending_td) { " with the in_use list getting corrupted: from ohci_urb_enqu

Re: [PATCH] Added PIDs for Actisense USB Devices

2015-01-19 Thread Johan Hovold
On Thu, Jan 15, 2015 at 08:34:34AM +, Mark Glover wrote: > From: Mark Glover > > Signed-off-by: Mark Glover Thanks for the patch and for addressing Peter's comments. A couple of minor nits: Please use a subsystem prefix for your patch summary, for example: "USB: ftdi_sio: add PIDs

Re: [PATCH v3 0/2] DLN2 fixes related to suspend/resume

2015-01-19 Thread Johan Hovold
On Mon, Jan 19, 2015 at 01:51:34PM +0200, Octavian Purdila wrote: > Hi Lee, > > Here is the 3rd version of the patch-set against for-mfd-next branch > with the Reviewed-by tags from Johan. Note that I dropped the two GPIO > patches as they were already merged by Linus W in the GPIO tree. > > Than

Re: Fatal Exception on device when Hotsyncing Palm in linux

2015-01-19 Thread Johan Hovold
[ Please try not to top-post. ] On Mon, Jan 19, 2015 at 12:37:00PM +0100, Henri Manson wrote: > Enclosed the dmesg outputs from 9.04 and 10.04.4. I booted both > kernels with usbserial.debug=1 and loaded module visor.ko with > parameter debug=1 > >> out-crash: debug output form Ubuntu 14.04.1 whi

Re: 3.18 regression: Error while assigning device slot ID, USB3 devices not detected

2015-01-19 Thread Josh Boyer
On Mon, Jan 19, 2015 at 9:57 AM, Mathias Nyman wrote: > On 19.01.2015 15:47, Josh Boyer wrote: >> On Mon, Jan 19, 2015 at 8:33 AM, Greg KH wrote: >>> On Mon, Jan 19, 2015 at 08:28:19AM -0500, Josh Boyer wrote: On Sun, Jan 18, 2015 at 1:25 AM, Greg KH wrote: > On Sun, Jan 18, 2015

Re: Difference between run time and normal suspend

2015-01-19 Thread Alan Stern
On Mon, 19 Jan 2015, vichy wrote: > I have several questions: > a. > in ehci-pci driver, the runtime suspend is register in the driver > structure, driver->pm, like below. > static struct pci_driver ehci_pci_driver = { > ... > .probe =usb_hcd_pci_probe, > .remove =

Re: [PATCHv5 0/6] USB: host: Atmel OHCI and EHCI drivers improvements

2015-01-19 Thread Alan Stern
On Mon, 19 Jan 2015, Nicolas Ferre wrote: > Alan, > It seems that Boris and Alexandre also add their tag to the series > already. Do you want us to collect them in a new series sent to you? Sylvain has already sent a new series, v6. I suppose it would make life a little easier for Greg KH (who

Re: Issues with commit 34b48db6 ("block: remove artifical max_hw_sectors cap")

2015-01-19 Thread Alan Stern
On Mon, 19 Jan 2015, Kenneth R. Crudup wrote: > Sorry for taking so long to get back to you guys about this (the 3.19-rc > series has been > problematic for me in a couple of areas, so I'd let it go for a while): > > On Mon, 5 Jan 2015, Alan Stern wrote: > > > The patch I posted sets a general

Re: XHCI, "brain-dead scanner", and microframe rounding

2015-01-19 Thread steve
Any progress on this one? Quite a bunch of people, that try to use a scanner on a xhci port gets bitten by this issue. Given, that modern haswell mainboards tend to only support xhci ports anymore, this is a real showstopper and kind of regression from users POV. https://bugzilla.novell.com/sh

Re: [patch 2/6] usb: gadget: uvc: cleanup __uvcg_fill_strm()

2015-01-19 Thread Felipe Balbi
On Fri, Jan 16, 2015 at 01:44:44PM +0100, Andrzej Pietrasiewicz wrote: > W dniu 16.01.2015 o 13:12, Dan Carpenter pisze: > >Oh, yeah. You're right. I should have been more careful and I should > >have seen that. Sorry. But the problem is the original code is still a > >bit buggy. > > > >We call

Re: ohci: sporadic crash/lockup in ohci-hcd io_watchdog_func()

2015-01-19 Thread Alan Stern
On Mon, 19 Jan 2015, Heiko Przybyl wrote: > Hi all, > > been redirected here from bug #91511 [1]. > > I'm getting sporadic crashes in io_watchdog_func() in drivers/usb/host/ohci- > hcd.c:761: > " > list_for_each_entry(ed, &ohci->eds_in_use, in_use_list) { > if (ed->pending_td) {

Re: [PATCH v3 3/3] usb: udc: add usb_udc_activation_handler

2015-01-19 Thread Alan Stern
On Mon, 19 Jan 2015, Peter Chen wrote: > On Fri, Jan 16, 2015 at 11:11:56AM -0500, Alan Stern wrote: > > On Fri, 16 Jan 2015, Peter Chen wrote: > > > > > During this API, the deactivation count will be update, and it > > > will try to connect or disconnect gadget. It can be used to > > > enable f

Re: [PATCH v3 1/3] usb: udc: add usb_gadget_find_udc

2015-01-19 Thread Alan Stern
On Mon, 19 Jan 2015, Peter Chen wrote: > > > An idea just struck me... Instead of looping through all the udc's to > > > find the right one, why not simply store a pointer to the udc in struct > > > usb_gadget? > > > > > We still have code to find usb_gadget_driver to iterate udc_list, it > is

Re: [PATCH] usb: phy: never defer probe in non-OF case

2015-01-19 Thread Felipe Balbi
On Fri, Jan 16, 2015 at 04:10:31PM +0300, Sergei Shtylyov wrote: > Hello. > > On 1/16/2015 11:30 AM, Heikki Krogerus wrote: > > >In practice failure to find phy when requested in non-OF > >case means it will never become available, so > >__usb_find_phy() must return -ENODEV and not -EPROBE_DEFER.

Re: [PATCH 17/23] uhci-hub: use HUB_CHAR_*

2015-01-19 Thread Alan Stern
On Mon, 19 Jan 2015, Sergei Shtylyov wrote: > Fix using the bare number to set the 'wHubCharacteristics' field of the Hub > Descriptor while the values are #define'd in . > > Signed-off-by: Sergei Shtylyov > > --- > drivers/usb/host/uhci-hub.c |5 +++-- > 1 file changed, 3 insertions(+)

Re: [PATCH 00/23] Use USB_CHAR_* in the host drivers

2015-01-19 Thread Alan Stern
On Mon, 19 Jan 2015, Sergei Shtylyov wrote: > Hello. > >Here's a set of 23 patches against the 'usb-next' branch of Greg KH's > 'usb.git' repo plus 2 FHCI patches I posted a week ago. It's to replace the > use of the hex numbers where the USB_CHAR_* #define's should have been used. > > [01/2

Re: XHCI,

2015-01-19 Thread Hans-Peter Jansen
Mathias Nyman writes: > > To me it looked like the issue was fixes for several people by updating the system, > and I didn't follow up on this issue that much. Not to my knowledge. Those, that suffered from this still do! > I'm stating to abandon the microframe interval theory and think this

[discuss] [cdc_ncm] Refactoring cdc_ncm

2015-01-19 Thread Enrico Mioso
Hi guys. I am noticing that in kernel 3.19rc4, the driver from huawei, hw_cdc_driver is not able to perform the call to netif_msg_ifup anymore (receives error -13). This to say that it would be very important to continue the work on refactoring cdc_ncm.c driver to let it work with newer huawei de

Re: [PATCHv6 0/6] USB: host: Atmel OHCI and EHCI drivers improvements

2015-01-19 Thread Alan Stern
On Mon, 19 Jan 2015, Sylvain Rochet wrote: > USB: host: Atmel OHCI and EHCI drivers improvements > > Suspend/resume support for EHCI. > struct dev_pm_ops for OHCI. > Removed global variables from both. > Fixed OHCI wake up support for STANDBY(wake-up enabled) and MEM(wake-up > disabled) sleep tar

Re: [PATCHv3 2/2] USB: gadget: atmel_usba_udc: Enable/disable USB PLL on Vbus change

2015-01-19 Thread Nicolas Ferre
Le 18/01/2015 18:24, Sylvain Rochet a écrit : > Prepare_enable on rising edge, disable_unprepare on falling edge. Reduce Please re-write which "edge" we are talking about: "... falling edge of the Vbus signal" for example. > power consumption if USB PLL is not already necessary for OHCI or EHCI.

Re: [patch 2/6] usb: gadget: uvc: cleanup __uvcg_fill_strm()

2015-01-19 Thread Dan Carpenter
On Mon, Jan 19, 2015 at 10:09:44AM -0600, Felipe Balbi wrote: > On Fri, Jan 16, 2015 at 01:44:44PM +0100, Andrzej Pietrasiewicz wrote: > > W dniu 16.01.2015 o 13:12, Dan Carpenter pisze: > > >Oh, yeah. You're right. I should have been more careful and I should > > >have seen that. Sorry. But th

Re: [PATCHv3 2/2] USB: gadget: atmel_usba_udc: Enable/disable USB PLL on Vbus change

2015-01-19 Thread Sylvain Rochet
Hello Nicolas, On Mon, Jan 19, 2015 at 05:55:18PM +0100, Nicolas Ferre wrote: > Le 18/01/2015 18:24, Sylvain Rochet a écrit : > > Prepare_enable on rising edge, disable_unprepare on falling edge. Reduce > > Please re-write which "edge" we are talking about: "... falling edge of > the Vbus signal"

[PATCH 4/5] ARM: dts: dra72-evm: Add extcon nodes for USB

2015-01-19 Thread Roger Quadros
On this EVM, the USB cable state has to be determined via the ID pin tied to a GPIO line. We use the gpio-usb-extcon driver to read the ID pin and the extcon framework to forward the USB cable state information to the USB driver so the controller can be configured in the right mode (host/peripheral

[PATCH 0/5] extcon: usb: Introduce USB GPIO extcon driver. Fix DRA7 USB.

2015-01-19 Thread Roger Quadros
Hi, On DRA7 EVMs the USB ID pin is connected to a GPIO line. The USB drivers (dwc3 + dwc3-omap) depend on extcon framework to get the USB cable state (USB or USB-Host) to put the controller in the right mode. There were earlier attempts [1] to get this working by trying to patch up the existing G

[PATCH 5/5] ARM: omap2plus_defconfig: Enable PCF857X and EXTCON_GPIO_USB

2015-01-19 Thread Roger Quadros
Both are needed for USB cable type detection on dra7-evm. Signed-off-by: Roger Quadros --- arch/arm/configs/omap2plus_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/omap2plus_defconfig b/arch/arm/configs/omap2plus_defconfig index c2c3a85..bc23b90 100644 --- a/a

[PATCH 3/5] ARM: dts: dra7-evm: Add extcon nodes for USB

2015-01-19 Thread Roger Quadros
On this EVM, the USB cable state has to be determined via the ID pin tied to a GPIO line. We use the gpio-usb-extcon driver to read the ID pin and the extcon framework to forward the USB cable state information to the USB driver so the controller can be configured in the right mode (host/peripheral

[PATCH 2/5] usb: extcon: Fix USB-Host cable name

2015-01-19 Thread Roger Quadros
The recommended name for USB-Host cable state is "USB-Host" and not "USB-HOST" as per drivers/extcon/extcon-class.c extcon_cable_name. Change all instances of "USB-HOST" to "USB-Host". Signed-off-by: Roger Quadros --- drivers/extcon/extcon-palmas.c | 18 +- drivers/usb/dwc3/dwc3

[PATCH 1/5] extcon: gpio-usb: Introduce gpio usb extcon driver

2015-01-19 Thread Roger Quadros
This driver observes the USB ID pin connected over a GPIO and updates the USB cable extcon states accordingly. The existing GPIO extcon driver is not suitable for this purpose as it needs to be taught to understand USB cable states and it can't handle more than one cable per instance. For the USB

[PATCH][RESEND] storage: Revise/fix quirk for 04E6:000F SCM USB-SCSI converter

2015-01-19 Thread Mark Knibbs
I recently posted a patch ("storage: Add quirk for another SCM-based USB-SCSI converter") to add a quirk for the converter with ID 04E6:000F, which is listed along with 04E6:000B in the Windows INF file for the Startech ICUSBSCSI2 as "eUSB SCSI Adapter (Bus Powered)". The already-present quirk fo

Re: ohci: sporadic crash/lockup in ohci-hcd io_watchdog_func()

2015-01-19 Thread Heiko Przybyl
On Monday 19 January 2015 11:17:59 Alan Stern wrote: > On Mon, 19 Jan 2015, Heiko Przybyl wrote: > > It seems to be related to keyboard input (at least it happens when using > > the keyboard), without relation to system load. Can happen within a day > > after boot or after several days of hibernate

Re: [PATCH 5/5] ARM: omap2plus_defconfig: Enable PCF857X and EXTCON_GPIO_USB

2015-01-19 Thread Tony Lindgren
* Roger Quadros [150119 09:55]: > Both are needed for USB cable type detection on dra7-evm. > > Signed-off-by: Roger Quadros > --- > arch/arm/configs/omap2plus_defconfig | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/arm/configs/omap2plus_defconfig > b/arch/arm/configs/omap2p

Re: [PATCH 1/3] Revert "usb: gadget: uvc: cleanup __uvcg_fill_strm()"

2015-01-19 Thread Felipe Balbi
On Mon, Jan 19, 2015 at 01:42:24PM +0200, Laurent Pinchart wrote: > Hi Andrzej, > > On Monday 19 January 2015 12:23:38 Andrzej Pietrasiewicz wrote: > > W dniu 19.01.2015 o 01:05, Laurent Pinchart pisze: > > > Hi Andrzej, > > > > > > Thank you for the patch. > > > > > > On Friday 16 January 2015

Re: [PATCHv3 1/2] USB: gadget: atmel_usba_udc: Fixed vbus_prev initial state

2015-01-19 Thread Felipe Balbi
On Mon, Jan 19, 2015 at 03:09:44PM +0100, Nicolas Ferre wrote: > Le 18/01/2015 18:24, Sylvain Rochet a écrit : > > If vbus gpio is high at init, we should set vbus_prev to true > > accordingly to the current vbus state. Without that, we skip the first > > vbus interrupt because the saved vbus state

Re: [PATCHv2 1/4] Revert "usb: gadget: uvc: cleanup __uvcg_fill_strm()"

2015-01-19 Thread Felipe Balbi
On Mon, Jan 19, 2015 at 01:52:55PM +0100, Andrzej Pietrasiewicz wrote: > This reverts commit c8dba1896595 ("usb: gadget: uvc: cleanup > __uvcg_fill_strm()"). > __uvcg_fill_stream() during its execution uses priv2 as a pointer > to a pointer, because it advances the current position by the amount >

Re: [PATCH] usb: gadget: composite: Provide list of registered functions

2015-01-19 Thread Felipe Balbi
On Mon, Jan 19, 2015 at 02:17:19PM +0100, Krzysztof Opasiak wrote: > Driver which provides implementation of some USB functions > registers usb_function_driver structure in composite framework. > Function drivers are identifed using registered name. > > When gadget is composed using configfs user

[PATCH] usb: misc: Driver for Yepkit YKUSH switchable hub

2015-01-19 Thread Kristian Evensen
The Yepkit YKUSH is a three-port switchable USB hub. In addition the to actual hub device, an HID device is exported (VID 0x04D8 PID 0x0042). By sending specific commands to the HID device, it is possible to power up/down the three ports separately or all por

Re: [PATCH 5/5] ARM: omap2plus_defconfig: Enable PCF857X and EXTCON_GPIO_USB

2015-01-19 Thread Tony Lindgren
* Tony Lindgren [150119 10:52]: > * Roger Quadros [150119 09:55]: > > Both are needed for USB cable type detection on dra7-evm. > > > > Signed-off-by: Roger Quadros > > --- > > arch/arm/configs/omap2plus_defconfig | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/arch/arm/confi

RE: [PATCH v2 2/5] usb: dwc3: add revision number DWC3_REVISION_300A

2015-01-19 Thread John Youn
> -Original Message- > From: Felipe Balbi [mailto:ba...@ti.com] > Sent: Monday, January 19, 2015 6:47 AM > > looking at Synopsys Solvnet for this IP, it shows that current version > is 2.90a. There's no 3.00a. Paul, John, is there a 3.00a version of the > DWC USB3 IP ? Yes there is,

Re: [PATCH v2 2/5] usb: dwc3: add revision number DWC3_REVISION_300A

2015-01-19 Thread Felipe Balbi
On Mon, Jan 19, 2015 at 07:45:31PM +, John Youn wrote: > > -Original Message- > > From: Felipe Balbi [mailto:ba...@ti.com] > > Sent: Monday, January 19, 2015 6:47 AM > > > > looking at Synopsys Solvnet for this IP, it shows that current version > > is 2.90a. There's no 3.00a. Paul,

Re: Control message failures kill entire XHCI stack

2015-01-19 Thread Devin Heitmueller
Hi Mathias, Thanks for getting back to me. > There are a couple of xhci bugs triggered by dvb devices: > https://bugzilla.kernel.org/show_bug.cgi?id=75521 > https://bugzilla.kernel.org/show_bug.cgi?id=65021 > > The first one (75521) I believe is mostly fixed by patches in 3.18 and early > 3.19-rc

  1   2   >