Re: UAS crash with Apricorn USB3 SATA bridge

2014-12-11 Thread Darrick J. Wong
On Wed, Dec 10, 2014 at 05:41:54PM -0800, Darrick J. Wong wrote: > On Wed, Dec 10, 2014 at 02:29:29AM -0800, Darrick J. Wong wrote: > > On Wed, Dec 10, 2014 at 02:15:14AM -0800, Darrick J. Wong wrote: > > > On Wed, Dec 10, 2014 at 01:04:58AM -0800, Darrick J. Wong wrote: > > > > On Wed, Dec 10, 201

Re: [PATCH] extcon: add MAX3355 driver

2014-12-11 Thread Geert Uytterhoeven
On Thu, Dec 11, 2014 at 2:46 AM, Chanwoo Choi wrote: > Could you send the datasheet of MAX3355E to me? First Google hit: http://datasheets.maximintegrated.com/en/ds/MAX3355E.pdf Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...

Re: Re: [PATCH] USB: serial: add nt124 usb to serial driver

2014-12-11 Thread Karl Palsson
Johan Hovold wrote: > On Mon, Dec 08, 2014 at 05:24:17PM -0600, George McCollister wrote: > > + newline.bParityType = termios->c_cflag & PARENB ? > > + (termios->c_cflag & PARODD ? 1 : 2) + > > + (termios->c_cflag & CMSPAR ? 2 : 0) : 0; > >

[PATCH v6 0/5] Patches to add support for Rockchip usb PHYs.

2014-12-11 Thread Yunzhi Li
Patches to add support for Rockchip usb phys.Add a new Rockchip usb phy driver and modify dwc2 controller driver to make dwc2 platform devices support a generic PHY framework driver. This patch set has been tested on my rk3288-evb and power off the usb phys would reduce about 60mW power budget in

[PATCH v6 3/5] usb: dwc2: add generic PHY framework support for dwc2 usb controler platform driver.

2014-12-11 Thread Yunzhi Li
Get PHY parameters from devicetree and power off usb PHY during system suspend. Signed-off-by: Yunzhi Li Acked-by: Paul Zimmerman --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: - Fix coding style: both branches of the if() which only one branch of the conditio

RE: Learning USB Programming on Linux

2014-12-11 Thread Krzysztof Opasiak
> -Original Message- > From: linux-usb-ow...@vger.kernel.org [mailto:linux-usb- > ow...@vger.kernel.org] On Behalf Of Peter Chen > Sent: Thursday, December 11, 2014 4:25 AM > To: Greg KH; ivo welch > Cc: linux-usb; sgowdy+usb...@gmail.com > Subject: RE: Learning USB Programming on Linux >

RE: Learning USB Programming on Linux

2014-12-11 Thread Krzysztof Opasiak
> -Original Message- > From: linux-usb-ow...@vger.kernel.org [mailto:linux-usb- > ow...@vger.kernel.org] On Behalf Of Greg KH > Sent: Thursday, December 11, 2014 4:18 AM > To: ivo welch > Cc: linux-usb; sgowdy+usb...@gmail.com > Subject: Re: Learning USB Programming on Linux > > On Thu,

Query regarding USB gadget driver

2014-12-11 Thread Sanchayan Maity
Hello, I am working on a Freescale Cortex-A5 Vybrid Processor. The chip core is clocked at 500MHz and the USB IP core for this is by Chip-idea. I am running a 3.18-rc5 kernel on it and trying to use the USB gadget functionality. To be more specific the CDC ECM class. Currently, I cannot use thi

RE: [PATCH] phy: phy-samsung-usb2: Don't use same name for driver name and global structure

2014-12-11 Thread Kamil Debski
Hi, > From: Vivek Gautam [mailto:gautamvivek1...@gmail.com] > Sent: Thursday, December 11, 2014 7:30 AM > To: Kishon Vijay Abraham I; Kamil Debski > Cc: linux-ker...@vger.kernel.org; Linux USB Mailing List; Vivek Gautam > Subject: Re: [PATCH] phy: phy-samsung-usb2: Don't use same name for > driver

Re: [PATCH] phy: phy-samsung-usb2: Don't use same name for driver name and global structure

2014-12-11 Thread Vivek Gautam
On Thu, Dec 11, 2014 at 4:13 PM, Kamil Debski wrote: > Hi, > >> From: Vivek Gautam [mailto:gautamvivek1...@gmail.com] >> Sent: Thursday, December 11, 2014 7:30 AM >> To: Kishon Vijay Abraham I; Kamil Debski >> Cc: linux-ker...@vger.kernel.org; Linux USB Mailing List; Vivek Gautam >> Subject: Re: [

Re: Query regarding USB gadget driver

2014-12-11 Thread Andrzej Pietrasiewicz
Hello, W dniu 11.12.2014 o 11:38, Sanchayan Maity pisze: Hello, I am working on a Freescale Cortex-A5 Vybrid Processor. The chip core is clocked at 500MHz and the USB IP core for this is by Chip-idea. I am running a 3.18-rc5 kernel on it and trying to use the USB gadget functionality. To be mo

RE: [PATCHv2 18/18] Documentation: usb: UAC2 function testing

2014-12-11 Thread Peter Chen
> > Signed-off-by: Andrzej Pietrasiewicz > --- > Documentation/usb/gadget-testing.txt | 27 > +++ > 1 file changed, 27 insertions(+) > > diff --git a/Documentation/usb/gadget-testing.txt > b/Documentation/usb/gadget-testing.txt > index 40d22d8..b946f79 100644 > --- a/D

[PATCH 0/4] phy: samsung-usb2: Add support for Vbus regulator

2014-12-11 Thread Vivek Gautam
This has been on my to-do list for sometime. Until now the host controller (specifically ehci-exynos) is responsible for enabling VBUS supply. This opens up one more issue which is, when only ohci-exynos is enabled and ehci-exynosis disabled then VBUS was never enabled (since ohci did not have the

[PATCH 1/4] Doc/devicetree: bindings: Update bindings information for USB3.0 DRD PHY

2014-12-11 Thread Vivek Gautam
Add missing VBUS-supply information and consumer usage information for USB 3.0 DRD PHY. Signed-off-by: Vivek Gautam --- Documentation/devicetree/bindings/phy/samsung-phy.txt |9 + 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/phy/samsung-phy.txt b/D

[PATCH 2/4] phy: samsung-usb2: Add facility for VBUS supply

2014-12-11 Thread Vivek Gautam
Adding support to enable/disable VBUS controlled by a regulator on USB 2.0 port. This is a part of moving vbus setting out of ehci-exynos. Since vbus can be handled by USB 2.0 phy itself, so the host need not care about it. Moreover, setting VBUS in USB 2.0 phy helps both ehci as well as ohci. This

[PATCH 3/4] arm: dts: exynos5250: Use regulator for USB 2.0 VBUS supply

2014-12-11 Thread Vivek Gautam
Start using VBUS regulator for USB 2.0 phy, so that we can remove the gpio property from host's node later. Signed-off-by: Vivek Gautam --- arch/arm/boot/dts/exynos5250-smdk5250.dts | 22 ++ arch/arm/boot/dts/exynos5250-snow.dts | 22 ++ 2 files ch

[PATCH 4/4] arm: dts: exynos5250: Remove vbus gpio property from usb 2.0 host

2014-12-11 Thread Vivek Gautam
Now that we can use the VBUS regulator for USB 2.0 phy, we can remove the vbus-gpio property from usb 2.0 host to avoid duplicate gpio settings. Signed-off-by: Vivek Gautam --- arch/arm/boot/dts/exynos5250-smdk5250.dts |4 arch/arm/boot/dts/exynos5250-snow.dts |4 2 files c

Re: Query regarding USB gadget driver

2014-12-11 Thread Sanchayan Maity
Hello Andrzej, Thanks for the input. On 12/11/2014 04:34 PM, Andrzej Pietrasiewicz wrote: > Hello, > > W dniu 11.12.2014 o 11:38, Sanchayan Maity pisze: >> Hello, >> >> I am working on a Freescale Cortex-A5 Vybrid Processor. The chip core is >> clocked at 500MHz and the USB IP core for this is

RE: [PATCH 0/4] phy: samsung-usb2: Add support for Vbus regulator

2014-12-11 Thread David Laight
From: Vivek Gautam > This has been on my to-do list for sometime. > Until now the host controller (specifically ehci-exynos) is responsible > for enabling VBUS supply. This opens up one more issue which is, when > only ohci-exynos is enabled and ehci-exynosis disabled then VBUS was > never enabled

Re: [PATCH] extcon: add MAX3355 driver

2014-12-11 Thread Sergei Shtylyov
Hello. On 12/11/2014 4:46 AM, Chanwoo Choi wrote: I reviewed this patch quickly. This driver has just two gpio without any registers for IP. Because there are no registers. I wonder whether MAX3355E is separate chip to detect external connector Yes. I thought my description has mad

Re: [PATCH] extcon: add MAX3355 driver

2014-12-11 Thread Chanwoo Choi
On 12/11/2014 09:47 PM, Sergei Shtylyov wrote: > Hello. > > On 12/11/2014 4:46 AM, Chanwoo Choi wrote: > >> I reviewed this patch quickly. This driver has just two gpio without any >> registers for IP. > >Because there are no registers. > >> I wonder whether MAX3355E is separate chip to de

Re: [PATCH 0/4] phy: samsung-usb2: Add support for Vbus regulator

2014-12-11 Thread Vivek Gautam
On Thu, Dec 11, 2014 at 5:52 PM, David Laight wrote: > From: Vivek Gautam >> This has been on my to-do list for sometime. >> Until now the host controller (specifically ehci-exynos) is responsible >> for enabling VBUS supply. This opens up one more issue which is, when >> only ohci-exynos is enabl

[PATCH 2/3] gpio: dln2: use bus_sync_unlock instead of scheduling work

2014-12-11 Thread Octavian Purdila
Use the irq_chip bus_sync_unlock method to update hardware registers instead of scheduling work from the mask/unmask methods. This simplifies a bit the driver and make it more uniform with the other GPIO IRQ drivers. Signed-off-by: Octavian Purdila --- drivers/gpio/gpio-dln2.c | 92 +

[PATCH 3/3] mfd: dln2: add suspend/resume functionality

2014-12-11 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 1/3] gpio: dln2: fix issue when an IRQ is unmasked then enabled

2014-12-11 Thread Octavian Purdila
As noticed during suspend/resume operations, the IRQ can be unmasked then disabled in suspend and eventually enabled in resume, but without being unmasked. The current implementation does not take into account interactions between mask/unmask and enable/disable interrupts, and thus in the above sc

[PATCH 0/3] DLN2 fixes related to suspend/resume

2014-12-11 Thread Octavian Purdila
First patch in the series fixes a GPIO IRQ issues found during suspend/resume testing, the next simplifies a bit the IRQ code and the last adds support for suspend/resume to DLN2 to avoid a crash during suspend caused by the fact that we cant unplug a GPIO controller while it is in use. As suggest

Re: Query regarding USB gadget driver

2014-12-11 Thread Felipe Balbi
Hi, On Thu, Dec 11, 2014 at 04:08:43PM +0530, Sanchayan Maity wrote: > Hello, > > I am working on a Freescale Cortex-A5 Vybrid Processor. The chip core > is clocked at 500MHz and the USB IP core for this is by Chip-idea. I > am running a 3.18-rc5 kernel on it and trying to use the USB gadget > fu

[RFC PATCH] mfd: dln2: add support for ACPI

2014-12-11 Thread Octavian Purdila
This patch adds support to load a custom ACPI table that describes devices connected via the DLN2 USB to I2C/SPI/GPIO bridge. The ACPI table is loaded at runtime as firmware with the name dln2.aml, it looks for an ACPI device entry with _HID set to "DLN2" and makes it the ACPI companion for DL

[PATCH] usb: musb: stuff leak of struct usb_hcd

2014-12-11 Thread Sebastian Andrzej Siewior
since the split of host+gadget mode in commit 74c2e9360058 ("usb: musb: factor out hcd initalization") we leak the usb_hcd struct. We call now musb_host_cleanup() which does basically usb_remove_hcd() and also sets the hcd variable to NULL. Doing so makes the finall call to musb_host_free() basical

Re: [GIT PULL] USB driver fixes for 3.18-rc7

2014-12-11 Thread Greg KH
On Wed, Dec 03, 2014 at 06:02:08PM +0200, Mathias Nyman wrote: > On 02.12.2014 20:18, Greg KH wrote: > > On Sun, Nov 30, 2014 at 11:47:20AM -0800, Linus Torvalds wrote: > >> Hmm, Greg. > >> > >> I seem to get this problem possibly more commonly at boot these days: > >> > >> usb 1-6: new full-spee

[PATCH] uas: disable UAS on Apricorn SATA dongles

2014-12-11 Thread Darrick J. Wong
The Apricorn SATA dongle will occasionally return "USBSUSBSUSB" in response to SCSI commands when running in UAS mode. Therefore, disable UAS mode on this dongle. Signed-off-by: Darrick J. Wong --- drivers/usb/storage/unusual_uas.h | 10 ++ 1 file changed, 10 insertions(+) diff --git

Re: PROBLEM: [ums-realtek] media change events incorrectly implemented?

2014-12-11 Thread Alan Stern
On Tue, 9 Dec 2014, Rubén Herrero wrote: > With systemd 217, systemd-udevd complains every ~10 seconds (see below). > No error shows up on 216. The systemd people claim this is a drivers issue. > (See: https://bugs.freedesktop.org/show_bug.cgi?id=86414#c5) > > >Lennart Poettering: > >Seems to be

Re: [sur40] Videobuf2 and/or DMA?

2014-12-11 Thread Alan Stern
On Sun, 7 Dec 2014, Florian Echtler wrote: > Hello everyone, > > I'm preparing to finally add support for the raw sensor video stream to > my driver for the SUR40 touchscreen. However, after an extensive amount > of Googling, I'm still not clear on the relationship between DMA > transfers, the US

RE: [PATCH] usb: dwc2: gadget: kill requests with 'force' in s3c_hsotg_udc_stop()

2014-12-11 Thread Paul Zimmerman
> From: Robert Baldyga [mailto:r.bald...@samsung.com] > Sent: Tuesday, December 09, 2014 5:42 AM > > This makes us sure that all requests are completed before we unbind > gadget. There are assumptions in gadget API that all requests have to > be completed and leak of complete can break some usb fu

Re: [RFC PATCH] mfd: dln2: add support for ACPI

2014-12-11 Thread Rafael J. Wysocki
On Thursday, December 11, 2014 06:32:07 PM Octavian Purdila wrote: > This patch adds support to load a custom ACPI table that describes > devices connected via the DLN2 USB to I2C/SPI/GPIO bridge. > > The ACPI table is loaded at runtime as firmware with the name > dln2.aml, it looks for an ACPI dev

[PATCHv2 0/2] Added Multiple Phy support for ehci and ohci drivers

2014-12-11 Thread arun.ramamurthy
From: Arun Ramamurthy Broadcom has a chip where one ehci and ohci controller are connected to three separate phys. This patch allows each phy to be controlled separately. Changes in v2: - removed x character mistakenly introduced by manual edit of diff file Arun Ramamurthy (2): usb: ohci-pla

[PATCHv2 1/2] usb: ohci-platform: add support for multiple phys per controller

2014-12-11 Thread arun.ramamurthy
From: Arun Ramamurthy Added support for cases where one controller is connected to multiple phys Signed-off-by: Arun Ramamurthy Reviewed-by: Ray Jui Reviewed-by: Scott Branden --- drivers/usb/host/ohci-platform.c | 70 1 file changed, 49 insertions(+)

[PATCHv2 2/2] usb: ehci-platform: add support for multiple phys per controller

2014-12-11 Thread arun.ramamurthy
From: Arun Ramamurthy Added support for cases where one controller is connected to multiple phys. Signed-off-by: Arun Ramamurthy Reviewed-by: Ray Jui Reviewed-by: Scott Branden --- drivers/usb/host/ehci-platform.c | 70 1 file changed, 49 insertions(+

[PATCH 2/2] usb: serial: handle -ENODEV quietly in generic_submit_read_urb

2014-12-11 Thread Jeremiah Mahler
If a USB serial device (e.g. /dev/ttyUSB0) with an active program is unplugged, an -ENODEV (19) error will be produced after it gives up trying to resubmit a read. usb_serial_generic_submit_read_urb - usb_submit_urb failed: -19 Add -ENODEV as one of the permanent errors along with -EPERM that u

[PATCH 1/2] usb: serial: handle -EPROTO quietly in generic_read_bulk

2014-12-11 Thread Jeremiah Mahler
If a USB serial device (e.g. /dev/ttyUSB0) with an active program is unplugged, a bunch of -EPROTO (71) error messages will be produced by usb_serial_generic_read_bulk_callback() as it tries to resubmit the request. usb_serial_generic_read_bulk_callback - nonzero urb status: -71 Keep the same f

[PATCH 0/2] usb: serial: handle -ENODEV and -EPROTO quietly

2014-12-11 Thread Jeremiah Mahler
If a USB serial device (e.g. /dev/ttyUSB0) with an active program is unplugged, a bunch of -ENODEV and -EPROTO errors will be produced in the logs. This patch set quiets these messages without changing the original behavior. This change is beneficial when using daemons such as slcand, which is si

Re: Query regarding USB gadget driver

2014-12-11 Thread Peter Chen
On Thu, Dec 11, 2014 at 08:34:45AM -0600, Felipe Balbi wrote: > Hi, > > On Thu, Dec 11, 2014 at 04:08:43PM +0530, Sanchayan Maity wrote: > > Hello, > > > > I am working on a Freescale Cortex-A5 Vybrid Processor. The chip core > > is clocked at 500MHz and the USB IP core for this is by Chip-idea.

RE: [PATCH v3 1/2] make xhci platform driver use 64 bit or 32 bit DMA

2014-12-11 Thread yoshihiro shimoda
Hi Mark, > -Original Message- > From: linux-usb-ow...@vger.kernel.org > [mailto:linux-usb-ow...@vger.kernel.org] On Behalf Of Mark Langsdorf > Sent: Wednesday, November 26, 2014 6:19 AM > To: linux-usb@vger.kernel.org; mathias.ny...@intel.com > Cc: mlang...@redhat.com > Subject: [PATCH v3