Re: [PATCH v3 1/2] usb: doc: udc-xilinx: Add devicetree bindings

2014-07-07 Thread sundeep subbaraya
Hi, On Fri, Jul 4, 2014 at 10:10 PM, Mark Rutland mark.rutl...@arm.com wrote: On Tue, Jun 24, 2014 at 07:44:10AM +0100, sundeep subbaraya wrote: Ping Thanks, Sundeep.B.S. On Tue, Jun 10, 2014 at 5:34 PM, subbaraya.sundeep.bha...@xilinx.com wrote: From: Subbaraya Sundeep Bhatta

Re: [PATCH v2 2/2] usb: gadget: Add xilinx axi usb2 device support

2014-07-07 Thread sundeep subbaraya
Hi Felipe, On Wed, Jul 2, 2014 at 10:16 PM, Felipe Balbi ba...@ti.com wrote: Hi, On Sun, May 25, 2014 at 11:10:30PM +0530, sundeep subbaraya wrote: Hi Felipe, Please take a look at below about how this IP works: IN: req.buf --- DMA (transfers from ddr to IP buffer, raise DMA done

Re: [PATCH] mach-omap1: Fix call to omap_cfg_reg

2014-07-07 Thread Tony Lindgren
* Nicholas Krause xerofo...@gmail.com [140704 10:03]: This patch fixes the call to ompa_cfg_reg(USB2_SPEED) in the case that the cpu is a omap16xx and the nwires are not equal to 3. This is most likely unsafe to do as the pin is probably shared with some other device and we have to rely for the

Re: [PATCH 1/1] drivers/usb/serial/mos7840.c: remove unnecessary null test before kfree

2014-07-07 Thread Johan Hovold
On Sat, Jun 28, 2014 at 02:44:09PM +0200, Fabian Frederick wrote: Cc: Johan Hovold jhov...@gmail.com Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Cc: linux-usb@vger.kernel.org Signed-off-by: Fabian Frederick f...@skynet.be Applied, thanks. Johan --- drivers/usb/serial/mos7840.c | 5

Re: [PATCH v2 1/6] ARM: dts: dra7-evm: Make VDDA_1V8_PHY supply always on

2014-07-07 Thread Tony Lindgren
* Roger Quadros rog...@ti.com [140704 02:57]: After clarification from the hardware team it was found that this 1.8V PHY supply can't be switched OFF when SoC is Active. Since the PHY IPs don't contain isolation logic built in the design to allow the power rail to be switched off, there is a

Re: [PATCH 1/1] Add support for Corsair usb dongle

2014-07-07 Thread Johan Hovold
On Fri, Jun 27, 2014 at 02:50:11PM +0200, and...@mail.sth.sze.hu wrote: From: Andras Kovacs and...@sth.sze.hu Corsair USB Dongles are shipped with Corsair AXi series PSUs. These are cp210x serial usb devices, so make driver detect these. I have a program, that can get information from these

Re: [PATCH v2 6/6] ARM: dts: dra7-evm: Add regulator information to USB2 PHYs

2014-07-07 Thread Tony Lindgren
* Roger Quadros rog...@ti.com [140704 02:58]: The ldousb_reg regulator provides power to the USB1 and USB2 High Speed PHYs. Signed-off-by: Roger Quadros rog...@ti.com This too: Acked-by: Tony Lindgren t...@atomide.com --- arch/arm/boot/dts/dra7-evm.dts | 8 1 file changed, 8

Re: [PATCH] usb: option: Add ID for Telewell TW-LTE 4G v2

2014-07-07 Thread Johan Hovold
On Wed, Jul 02, 2014 at 12:36:48PM +0300, Bernd Wachter wrote: Add ID of the Telewell 4G v2 hardware to option driver to get legacy serial interface working Signed-off-by: Bernd Wachter bernd.wach...@jolla.com Applied, thanks. Johan --- ---

Re: [PATCH v2 1/6] ARM: dts: dra7-evm: Make VDDA_1V8_PHY supply always on

2014-07-07 Thread Roger Quadros
Hi Tony, On 07/07/2014 11:29 AM, Tony Lindgren wrote: * Roger Quadros rog...@ti.com [140704 02:57]: After clarification from the hardware team it was found that this 1.8V PHY supply can't be switched OFF when SoC is Active. Since the PHY IPs don't contain isolation logic built in the design

Re: [PATCH v2 1/6] ARM: dts: dra7-evm: Make VDDA_1V8_PHY supply always on

2014-07-07 Thread Tony Lindgren
* Roger Quadros rog...@ti.com [140707 01:36]: Hi Tony, On 07/07/2014 11:29 AM, Tony Lindgren wrote: * Roger Quadros rog...@ti.com [140704 02:57]: After clarification from the hardware team it was found that this 1.8V PHY supply can't be switched OFF when SoC is Active. Since the PHY

Re: [PATCH 1/11 V2] USB: kl5kusb105: Remove klsi_105_tiocmset function

2014-07-07 Thread Johan Hovold
On Sun, Jun 01, 2014 at 11:31:17AM +0200, Johan Hovold wrote: On Sat, May 31, 2014 at 01:03:00PM -0300, Peter Senna Tschudin wrote: This patch remove the function klsi_105_tiocmset which was only returning -EINVAL. It also removes the function prototype and the .tiocmset entry in the struct

[PATCH 1/2] hso: remove unused workqueue

2014-07-07 Thread Olivier Sobrie
The workqueue retry_unthrottle_workqueue is not scheduled anywhere in the code. So, remove it. Signed-off-by: Olivier Sobrie oliv...@sobrie.be --- drivers/net/usb/hso.c | 12 1 file changed, 12 deletions(-) diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c index

[PATCH 2/2] hso: fix deadlock when receiving bursts of data

2014-07-07 Thread Olivier Sobrie
When the module sends bursts of data, sometimes a deadlock happens in the hso driver when the tty buffer doesn't get the chance to be flushed quickly enough. To avoid this, first, we remove the endless while loop in put_rx_bufdata() which is the root cause of the deadlock. Secondly, when there is

RE: [PATCH 2/2] hso: fix deadlock when receiving bursts of data

2014-07-07 Thread David Laight
From: Olivier Sobrie When the module sends bursts of data, sometimes a deadlock happens in the hso driver when the tty buffer doesn't get the chance to be flushed quickly enough. To avoid this, first, we remove the endless while loop in put_rx_bufdata() which is the root cause of the

Re: dummy scsi read or scsi command periodically for external USB Hard Disk

2014-07-07 Thread Bryn M. Reeves
On Sun, Jul 06, 2014 at 01:18:03AM +0800, loody wrote: hi all: we met a USB Hard Disk that will go to suspend if host stop sending scsi command over 5mins. To save the IO, kernel will keep the file in page cache as much as he can and under this circumstances, the scsi command may

Re: USB reset xhci_hcd for ELAN touchscreen

2014-07-07 Thread Johan Hovold
On Sun, Jun 01, 2014 at 10:43:21AM -0700, Greg Kroah-Hartman wrote: On Sun, Jun 01, 2014 at 12:21:55PM -0400, Alan Stern wrote: On Sun, 1 Jun 2014, Bjørn Mork wrote: Greg KH gre...@linuxfoundation.org writes: Ok, here's the dump for when the device keeps disconnecting itself from

Re: [PATCH] usb: chipidea: udc: Disable auto ZLP generation on ep0

2014-07-07 Thread Michael Grzeschik
On Sun, Jul 06, 2014 at 11:47:50PM +0500, Abbas Raza wrote: On 07/06/2014 11:01 PM, Greg KH wrote: On Sun, Jul 06, 2014 at 07:52:41PM +0200, Michael Grzeschik wrote: Hi, On Sun, Jul 06, 2014 at 09:26:02PM +0500, Abbas Raza wrote: From: Abbas Raza abbas_r...@mentor.com There are 2 methods

[PATCH v2] drivers: phy: exynos-usb2: add support for Exynos 3250

2014-07-07 Thread Marek Szyprowski
This patch adds support for Exynos3250 SoC to Exynos2USB PHY driver. Although Exynos3250 has only one device phy interface, the register layout and all operations that are required to get it enabled are almost same as on Exynos4x12. The only different is one more register (REFCLKSEL) which need to

Re: Chipidea gadget unplug/disconnect event

2014-07-07 Thread Michael Grzeschik
On Sun, Jul 06, 2014 at 01:31:37PM +0800, Peter Chen wrote: On Fri, Jul 04, 2014 at 11:54:57AM +0200, Michael Grzeschik wrote: On Fri, Jul 04, 2014 at 01:39:08AM +, Peter Chen wrote: Yes, it has already implemented at ci_usc_vbus_session. I see the code path

Re: [PATCH 2/2] hso: fix deadlock when receiving bursts of data

2014-07-07 Thread Olivier Sobrie
Hi David, On Mon, Jul 07, 2014 at 09:13:53AM +, David Laight wrote: From: Olivier Sobrie When the module sends bursts of data, sometimes a deadlock happens in the hso driver when the tty buffer doesn't get the chance to be flushed quickly enough. To avoid this, first, we remove

Re: [PATCH] USB: ftdi_sio: add GPIO support

2014-07-07 Thread Linus Walleij
On Fri, Jun 13, 2014 at 8:31 PM, Greg Kroah-Hartman gre...@linuxfoundation.org wrote: On Fri, Jun 13, 2014 at 09:25:07AM +0200, Linus Walleij wrote: But I also want to bring the device model into question: normally when a mother device spawns children across different subsystems we model them

Re: [PATCH v2 3/3] MAINTAINERS: Add dwc3-st.c file to ARCH/STI architecture

2014-07-07 Thread Lee Jones
On Sat, 05 Jul 2014, Peter Griffin wrote: Signed-off-by: Peter Griffin peter.grif...@linaro.org --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) Acked-by: Lee Jones lee.jo...@linaro.org diff --git a/MAINTAINERS b/MAINTAINERS index 702ca10..269ad3b 100644 --- a/MAINTAINERS +++

usb_gadget_state_work not triggering sysfs_notify

2014-07-07 Thread Michael Grzeschik
Hi, I am currently working with an udc where the userspace should react on plugging and unplugging of the device. The layers used trigger the usb_gadget_state_work as expected, but the sysfs_notify never cross the userspace layer. static void usb_gadget_state_work(struct work_struct *work) {

Re: [PATCH v2 2/3] ARM: dts: sti: Add st-dwc3 devicetree bindings documentation

2014-07-07 Thread Lee Jones
Subject is wrong, this has nothing to do with ARM. Should be USB. On Sat, 05 Jul 2014, Peter Griffin wrote: This patch documents the device tree documentation required for the ST usb3 controller glue layer found in STiH407 devices. Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com

Re: [PATCH] usb: chipidea: udc: Disable auto ZLP generation on ep0

2014-07-07 Thread Abbas Raza
On 07/07/2014 02:37 PM, Michael Grzeschik wrote: On Sun, Jul 06, 2014 at 11:47:50PM +0500, Abbas Raza wrote: On 07/06/2014 11:01 PM, Greg KH wrote: On Sun, Jul 06, 2014 at 07:52:41PM +0200, Michael Grzeschik wrote: Hi, On Sun, Jul 06, 2014 at 09:26:02PM +0500, Abbas Raza wrote: From: Abbas

Re: [PATCH] arch: arm: mach-omap2: usb-tusb6010.c: Cleaning up variable is set more than once

2014-07-07 Thread Tony Lindgren
* Rickard Strandqvist rickard_strandqv...@spectrumdigital.se [140625 05:29]: A struct member variable is set to the same value more than once This was found using a static code analysis program called cppcheck. Applying into omap-for-v3.17/fixes-not-urgent thanks. Tony -- To unsubscribe from

Re: [PATCH] usb: gadget: f_fs: OS descriptors support

2014-07-07 Thread Andrzej Pietrasiewicz
Hi Michal, Thank you for your review. I will implement the changes in a v2 series. W dniu 02.07.2014 14:56, Michal Nazarewicz pisze: On Wed, Jul 02 2014, Andrzej Pietrasiewicz andrze...@samsung.com wrote: Add support for OS descriptors. The new format of descriptors is used, because the flags

[PATCH] usb: phy: tegra: Do not include asm/mach-types.h

2014-07-07 Thread Thierry Reding
From: Thierry Reding tred...@nvidia.com It is no longer needed and keeping it will break 64-bit ARM builds. Signed-off-by: Thierry Reding tred...@nvidia.com --- drivers/usb/phy/phy-tegra-usb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/phy/phy-tegra-usb.c

Re: [PATCH] usb: gadget: f_fs: OS descriptors support

2014-07-07 Thread Michal Nazarewicz
The name of this function has to be changed. Perhaps ffs_do_os_single_desc? It took me embarrassing amount of time to figure out that ffs_do_os_descs and ffs_do_os_desc are different functions. On Mon, Jul 07 2014, Andrzej Pietrasiewicz andrze...@samsung.com wrote: Would you like me to add

Re: [PATCH v2 1/3] usb: dwc3: add ST dwc3 glue layer to manage dwc3 HC

2014-07-07 Thread Lee Jones
On Sat, 05 Jul 2014, Peter Griffin wrote: This patch adds the ST glue logic to manage the DWC3 HC on STiH407 SoC family. It manages the powerdown signal, and configures the internal glue logic and syscfg registers. Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com Signed-off-by:

RE: [PATCH 2/2] hso: fix deadlock when receiving bursts of data

2014-07-07 Thread David Laight
From: Olivier Sobrie Hi David, On Mon, Jul 07, 2014 at 09:13:53AM +, David Laight wrote: From: Olivier Sobrie When the module sends bursts of data, sometimes a deadlock happens in the hso driver when the tty buffer doesn't get the chance to be flushed quickly enough. To

Re: [PATCH v2 1/3] usb: dwc3: add ST dwc3 glue layer to manage dwc3 HC

2014-07-07 Thread Jingoo Han
On Saturday, July 05, 2014 3:25 PM, Peter Griffin wrote: This patch adds the ST glue logic to manage the DWC3 HC on STiH407 SoC family. It manages the powerdown signal, and configures the internal glue logic and syscfg registers. Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com

Re: [PATCH 2/2] hso: fix deadlock when receiving bursts of data

2014-07-07 Thread Olivier Sobrie
On Mon, Jul 07, 2014 at 12:55:44PM +, David Laight wrote: From: Olivier Sobrie Hi David, On Mon, Jul 07, 2014 at 09:13:53AM +, David Laight wrote: From: Olivier Sobrie When the module sends bursts of data, sometimes a deadlock happens in the hso driver when the tty

Re: ath9k - bogus usb xfer on at91

2014-07-07 Thread Anders Darander
On 4 July 2014 18:54, Oleksij Rempel li...@rempel-privat.de wrote: Am 04.07.2014 18:30, schrieb Alan Stern: On Fri, 4 Jul 2014, Anders Darander wrote: ~# usb 1-1: new full-speed USB device number 3 using at91_ohci usb 1-1: ath9k_htc: Firmware htc_9271.fw requested usb 1-1: ath9k_htc:

Re: ath9k - bogus usb xfer on at91

2014-07-07 Thread Anders Darander
On 4 July 2014 18:30, Alan Stern st...@rowland.harvard.edu wrote: On Fri, 4 Jul 2014, Anders Darander wrote: -oe-linux-gnueabi/linux-yocto-ccu/3.14+gitAUTOINC+7b03bd3dfd-r0/linux/drivers/usb/core/urb.c:450 usb_submit_urb+0x2ac/0x460() usb 1-1: BOGUS urb xfer, pipe 1 != type 3 I can't tell

Re: [PATCH v2] HID: use multi input quirk for 22b9:2968

2014-07-07 Thread Jiri Kosina
On Wed, 2 Jul 2014, Wen-chien Jesse Sung wrote: This device generates ABS_Z and ABS_RX events instead of ABS_X and ABS_Y. Applied, thanks. -- Jiri Kosina SUSE Labs -- To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to majord...@vger.kernel.org More

Re: Kernel 3.15.2-1.gfb7c781 + USB3 (xhci_hcd) card throws CALL TRACE, completes boot

2014-07-07 Thread grantksupport
In the Opensuse bug I'd reported this to/at, https://bugzilla.novell.com/show_bug.cgi?id=878489#c18 It's suggested that I (re)request this fix/patch be added to stable branch Oliver Neukum oneu...@suse.com changed: What|Removed |Added

Re: [PATCH v2 3/4] USB: EHCI: tegra: Fix probe order issue leading to broken USB

2014-07-07 Thread Alan Stern
On Fri, 4 Jul 2014, Tuomas Tynkkynen wrote: The Tegra USB complex has a particularly annoying misdesign: some of the UTMI pad configuration registers are global for all the 3 USB controllers on the chip, but those registers are located in the first controller's register space and will be

[PATCHv2 1/2] usb: gadget: f_fs: rename descriptor parsing functions

2014-07-07 Thread Andrzej Pietrasiewicz
ffs_do_desc() handles one descriptor, while ffs_do_descs() handles a number of descriptors. The tho names are so similar that it causes confusion. Rename to reflect their purpose better. Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com --- drivers/usb/gadget/function/f_fs.c | 7 ---

[PATCHv2 2/2] usb: gadget: f_fs: OS descriptors support

2014-07-07 Thread Andrzej Pietrasiewicz
Add support for OS descriptors. The new format of descriptors is used, because the flags field is required for extensions. os_count gives the number of OSDesc[] elements. The format of descriptors is given in include/uapi/linux/usb/functionfs.h. For extended properties descriptor the

Re: dummy scsi read or scsi command periodically for external USB Hard Disk

2014-07-07 Thread loody
hi Bryn: 2014-07-07 17:20 GMT+08:00 Bryn M. Reeves b...@redhat.com: On Sun, Jul 06, 2014 at 01:18:03AM +0800, loody wrote: hi all: we met a USB Hard Disk that will go to suspend if host stop sending scsi command over 5mins. To save the IO, kernel will keep the file in page cache as

Re: [PATCHv2 1/2] usb: gadget: f_fs: rename descriptor parsing functions

2014-07-07 Thread Michal Nazarewicz
On Mon, Jul 07 2014, Andrzej Pietrasiewicz andrze...@samsung.com wrote: ffs_do_desc() handles one descriptor, while ffs_do_descs() handles a number of descriptors. The tho names are so similar that it causes confusion. Rename to reflect their purpose better. Signed-off-by: Andrzej

Re: dummy scsi read or scsi command periodically for external USB Hard Disk

2014-07-07 Thread Lars Melin
On 2014-07-07 21:37, loody wrote: hi Bryn: 2014-07-07 17:20 GMT+08:00 Bryn M. Reeves b...@redhat.com: On Sun, Jul 06, 2014 at 01:18:03AM +0800, loody wrote: hi all: we met a USB Hard Disk that will go to suspend if host stop sending scsi command over 5mins. To save the IO, kernel

RE: dummy scsi read or scsi command periodically for external USB Hard Disk

2014-07-07 Thread David Laight
From: Lars Melin ... sgread is not included in BusyBox but you should have touch. Create a dummy file on the disk and let cron touch it every 4 minutes. You don't need 'touch' a shell redirect eg : file will do open(..., O_CREAT|O_TRUNC). However that still might not force an actual disc

Re: ath9k - bogus usb xfer on at91

2014-07-07 Thread Oleksij Rempel
Am 07.07.2014 15:40, schrieb Anders Darander: On 4 July 2014 18:54, Oleksij Rempel li...@rempel-privat.de wrote: Am 04.07.2014 18:30, schrieb Alan Stern: On Fri, 4 Jul 2014, Anders Darander wrote: ~# usb 1-1: new full-speed USB device number 3 using at91_ohci usb 1-1: ath9k_htc: Firmware

Re: Kernel 3.15.2-1.gfb7c781 + USB3 (xhci_hcd) card throws CALL TRACE, completes boot

2014-07-07 Thread Greg KH
On Mon, Jul 07, 2014 at 06:58:29AM -0700, grantksupp...@operamail.com wrote: In the Opensuse bug I'd reported this to/at, https://bugzilla.novell.com/show_bug.cgi?id=878489#c18 It's suggested that I (re)request this fix/patch be added to stable branch Oliver Neukum

[PATCH] usb: gadget: fix eem_wrap cloned skb logic

2014-07-07 Thread Nathan Sullivan
Even if the skb is cloned, we still need a ZLP or USB will stall. Signed-off-by: Nathan Sullivan nathan.sulli...@ni.com Acked-by: Brad Mouring brad.mour...@ni.com --- drivers/usb/gadget/f_eem.c | 22 ++ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git

Re: [PATCHv2 2/2] usb: gadget: f_fs: OS descriptors support

2014-07-07 Thread Michal Nazarewicz
On Mon, Jul 07 2014, Andrzej Pietrasiewicz andrze...@samsung.com wrote: Add support for OS descriptors. The new format of descriptors is used, because the flags field is required for extensions. os_count gives the number of OSDesc[] elements. The format of descriptors is given in

Re: dummy scsi read or scsi command periodically for external USB Hard Disk

2014-07-07 Thread loody
hi David: 2014-07-07 23:06 GMT+08:00 David Laight david.lai...@aculab.com: From: Lars Melin ... sgread is not included in BusyBox but you should have touch. Create a dummy file on the disk and let cron touch it every 4 minutes. You don't need 'touch' a shell redirect eg : file will do

Re: Kernel 3.15.2-1.gfb7c781 + USB3 (xhci_hcd) card throws CALL TRACE, completes boot

2014-07-07 Thread grantksupport
Hi, Can this USB3 fix be added to Kernel's stable branch so our distro(s) can/will pick it up for packaging ? What this USB3 fix? Do you have the git commit id of the patch in Linus's tree? And what kernel version(s) do you want to see it applied to? I'm having a bit of a challenge

Re: [PATCH 4/5] dwc3: host: Enable USB3 LPM capability

2014-07-07 Thread Felipe Balbi
On Fri, Jul 04, 2014 at 05:01:26PM +0300, Mathias Nyman wrote: From: Pratyush Anand pratyush.an...@st.com All dwc3 based xhci host controller supports USB3.0 LPM functionality. Therefore enable it in platform data for all dwc3 based xhci device if DWC3_HOST_USB3_LPM_ENABLE is selected in

Re: dummy scsi read or scsi command periodically for external USB Hard Disk

2014-07-07 Thread Lars Melin
On 2014-07-07 22:39, loody wrote: hi David: 2014-07-07 23:06 GMT+08:00 David Laight david.lai...@aculab.com: From: Lars Melin ... sgread is not included in BusyBox but you should have touch. Create a dummy file on the disk and let cron touch it every 4 minutes. You don't need 'touch' a shell

Re: dummy scsi read or scsi command periodically for external USB Hard Disk

2014-07-07 Thread Bryn M. Reeves
On Mon, Jul 07, 2014 at 11:39:05PM +0800, loody wrote: hi David: 2014-07-07 23:06 GMT+08:00 David Laight david.lai...@aculab.com: From: Lars Melin ... sgread is not included in BusyBox but you should have touch. Create a dummy file on the disk and let cron touch it every 4 minutes.

Re: dummy scsi read or scsi command periodically for external USB Hard Disk

2014-07-07 Thread Alan Stern
On Mon, 7 Jul 2014, loody wrote: hi Bryn: 2014-07-07 17:20 GMT+08:00 Bryn M. Reeves b...@redhat.com: On Sun, Jul 06, 2014 at 01:18:03AM +0800, loody wrote: hi all: we met a USB Hard Disk that will go to suspend if host stop sending scsi command over 5mins. To save the IO,

Re: Kernel 3.15.2-1.gfb7c781 + USB3 (xhci_hcd) card throws CALL TRACE, completes boot

2014-07-07 Thread Jiri Slaby
On 07/07/2014 05:42 PM, grantksupp...@operamail.com wrote: Hi, Can this USB3 fix be added to Kernel's stable branch so our distro(s) can/will pick it up for packaging ? What this USB3 fix? Do you have the git commit id of the patch in Linus's tree? And what kernel version(s) do you want

Re: dummy scsi read or scsi command periodically for external USB Hard Disk

2014-07-07 Thread loody
hi Alan: E.g. issue an sg_read for one sector to the device every 4m: */4 * * * * sg_read count=1 if=/dev/disk Since my target platform arm embedded system, does that mean I should include sg_read in my Busybox or cross-compile sg_read from sg3_utils? An alternative is to write a

Re: dummy scsi read or scsi command periodically for external USB Hard Disk

2014-07-07 Thread loody
hi Bryn: 2014-07-07 23:52 GMT+08:00 Bryn M. Reeves b...@redhat.com: On Mon, Jul 07, 2014 at 11:39:05PM +0800, loody wrote: hi David: 2014-07-07 23:06 GMT+08:00 David Laight david.lai...@aculab.com: From: Lars Melin ... sgread is not included in BusyBox but you should have touch.

Re: Kernel 3.15.2-1.gfb7c781 + USB3 (xhci_hcd) card throws CALL TRACE, completes boot

2014-07-07 Thread Greg KH
On Mon, Jul 07, 2014 at 06:11:58PM +0200, Jiri Slaby wrote: On 07/07/2014 05:42 PM, grantksupp...@operamail.com wrote: Hi, Can this USB3 fix be added to Kernel's stable branch so our distro(s) can/will pick it up for packaging ? What this USB3 fix? Do you have the git commit id of

Re: dummy scsi read or scsi command periodically for external USB Hard Disk

2014-07-07 Thread Bryn M. Reeves
On Tue, Jul 08, 2014 at 12:15:54AM +0800, loody wrote: so sg_read will not hammer on the page cache like dd without iflags=direct thanks for your kind help, The sg_read program (and other programs in sg3_utils) sends a command directly to the device using an SG_IO ioctl. This bypasses all the

Re: dummy scsi read or scsi command periodically for external USB Hard Disk

2014-07-07 Thread Alan Stern
On Tue, 8 Jul 2014, loody wrote: An alternative is to write a positive value, such as 24, to /sys/block/sdX/events_poll_msecs where X is replaced with the proper drive letter. (24 ms = 240 s = 4 m.) I'm not sure this will work, but it's worth a try. I cannot find

Re: [PATCH] USB: ftdi_sio: add GPIO support

2014-07-07 Thread Greg Kroah-Hartman
On Mon, Jul 07, 2014 at 12:44:28PM +0200, Linus Walleij wrote: On Fri, Jun 13, 2014 at 8:31 PM, Greg Kroah-Hartman gre...@linuxfoundation.org wrote: On Fri, Jun 13, 2014 at 09:25:07AM +0200, Linus Walleij wrote: But I also want to bring the device model into question: normally when a

Re: [PATCH 2/2] hso: fix deadlock when receiving bursts of data

2014-07-07 Thread Dan Williams
On Mon, 2014-07-07 at 11:06 +0200, Olivier Sobrie wrote: When the module sends bursts of data, sometimes a deadlock happens in the hso driver when the tty buffer doesn't get the chance to be flushed quickly enough. To avoid this, first, we remove the endless while loop in put_rx_bufdata()

[PATCH v2 2/3] usb: gadget: NCM: Add transmit multi-frame.

2014-07-07 Thread Jim Baxter
This adds multi-frame support to the NCM NTB's for the gadget driver. This allows multiple network packets to be put inside a single USB NTB with a maximum size of 16kB. It has a time out of 300ms to ensure that smaller number of packets still maintain a normal latency. Also the .fp_index and

[PATCH v2 3/3] usb: gadget: NCM: Stop RX TCP Bursts getting dropped.

2014-07-07 Thread Jim Baxter
This fixes a problem with dropped packets over 16k CDC-NCM when the connection is being heavily used. The issue was that the extracted frames cloned from the received frame were consuming more memory than necessary resulting in the truesize being ~32KB instead of ~2KB, this meant there was a high

[PATCH v2 0/3] usb: gadget: NCM: Fixes and Multi-frame for TX.

2014-07-07 Thread Jim Baxter
This series adds the ability to support packaging multiple network packets into a single 16k CDC-NCM NTB. Patches 1 and 3 are fixes for the receive unwrap function which previously was unable to handle an NTB with multiple NDP's and a fix that switches from using skb_clone to creating a new

[PATCH v2 1/3] usb: gadget: NCM: RX function support multiple NDPs

2014-07-07 Thread Jim Baxter
The NDP was ignoring the wNextNdpIndex in the NDP which means that NTBs containing multiple NDPs would have missed frames. Signed-off-by: Jim Baxter jim_bax...@mentor.com --- This patch originally came about because I read the CDC-NCM specification Figures 3-1, 3-2 and table 3-4 which specifies

Re: [PATCH] mach-omap1: Fix call to omap_cfg_reg

2014-07-07 Thread Nick Krause
Hey Tony, This seems to be a false positive then.Please reply if it is so I can remove the Fix me message. Cheers Nick On Mon, Jul 7, 2014 at 4:14 AM, Tony Lindgren t...@atomide.com wrote: * Nicholas Krause xerofo...@gmail.com [140704 10:03]: This patch fixes the call to

Re: [PATCH 2/2] hso: fix deadlock when receiving bursts of data

2014-07-07 Thread Olivier Sobrie
Hi Dan, On Mon, Jul 07, 2014 at 11:41:20AM -0500, Dan Williams wrote: On Mon, 2014-07-07 at 11:06 +0200, Olivier Sobrie wrote: When the module sends bursts of data, sometimes a deadlock happens in the hso driver when the tty buffer doesn't get the chance to be flushed quickly enough.

Re: [PATCH v2] phy: phy-samsung-usb2: Change phy power on/power off sequence

2014-07-07 Thread Daniel Drake
On Tue, Jul 1, 2014 at 4:15 PM, Kamil Debski k.deb...@samsung.com wrote: The Exynos4412 USB 2.0 PHY hardware differs from the description provided in the documentation. Some register bits have different function. This patch fixes the defines of register bits and changes the way how phys are

Re: [PATCH] usb: chipidea: udc: avoid gadget driver insertion in host mode

2014-07-07 Thread Peter Chen
On Sun, Jul 06, 2014 at 11:31:00PM +0500, Abbas Raza wrote: On 07/06/2014 03:38 PM, Peter Chen wrote: On Fri, Jul 04, 2014 at 05:40:59PM +0500, Abbas Raza wrote: From: Abbas Raza abbas_r...@mentor.com When gadget driver is inserted and OTG is in host mode, interrupts occur which are not

Re: disable VBUS?

2014-07-07 Thread Grant
it isn't possible to disable Vbus on a USB host port and still use the port. To do what you want, you would have to physically cut the Vbus wire in the USB cable and splice the device side of that wire to the external power supply. I think I'll try that. Can anyone confirm that it should

Re: Possible bug in xhci-ring.c

2014-07-07 Thread Julius Werner
Thanks Maciej, that was exactly what I needed! Looks like the problem in your situation is that last_trb is actually (chronologically) before hw_dequeue, which the code doesn't expect. You enqueue a single-TRB-TD at 2f45e080 (so last_trb points there as well), which encounters a Stall Error. I

Re: [PATCH] usb: chipidea: udc: avoid gadget driver insertion in host mode

2014-07-07 Thread Abbas Raza
On 07/08/2014 04:46 AM, Peter Chen wrote: On Sun, Jul 06, 2014 at 11:31:00PM +0500, Abbas Raza wrote: On 07/06/2014 03:38 PM, Peter Chen wrote: On Fri, Jul 04, 2014 at 05:40:59PM +0500, Abbas Raza wrote: From: Abbas Raza abbas_r...@mentor.com When gadget driver is inserted and OTG is in host

RE: [PATCH] usb: chipidea: udc: avoid gadget driver insertion in host mode

2014-07-07 Thread Peter Chen
When gadget driver is inserted and OTG is in host mode, interrupts occur which are not handled by chipidea driver causing following problem. To avoid this problem, don't allow insertion of gadget driver in host mode. root@mx6q:~# echo -n host /sys/kernel/debug/ci_hdrc.0/role

Re: disable VBUS?

2014-07-07 Thread Steve Calfee
You are right, the device will get 5 volts. However it is still part of the spec that 2ms without a SOF will force the device into suspend mode, so it will use less than 2ma. So depending on your definition of function, there will be power, but no activity. If it uses more than 2ma, from the bus,

Re: [PATCH] net: qmi_wwan: Add ID for Telewell TW-LTE 4G v2

2014-07-07 Thread David Miller
From: Bernd Wachter bernd.wach...@jolla.com Date: Tue, 01 Jul 2014 22:01:09 +0300 There's a new version of the Telewell 4G modem working with, but not recognized by this driver. Signed-off-by: Bernd Wachter bernd.wach...@jolla.com Applied and queued up for -stable, thanks. -- To

Re: USB reset xhci_hcd for ELAN touchscreen

2014-07-07 Thread Greg KH
On Mon, Jul 07, 2014 at 11:24:42AM +0200, Johan Hovold wrote: On Sun, Jun 01, 2014 at 10:43:21AM -0700, Greg Kroah-Hartman wrote: On Sun, Jun 01, 2014 at 12:21:55PM -0400, Alan Stern wrote: On Sun, 1 Jun 2014, Bjørn Mork wrote: Greg KH gre...@linuxfoundation.org writes: Ok,

Re: ath9k - bogus usb xfer on at91

2014-07-07 Thread Oleksij Rempel
Am 07.07.2014 17:08, schrieb Oleksij Rempel: Am 07.07.2014 15:40, schrieb Anders Darander: On 4 July 2014 18:54, Oleksij Rempel li...@rempel-privat.de wrote: Am 04.07.2014 18:30, schrieb Alan Stern: On Fri, 4 Jul 2014, Anders Darander wrote: ~# usb 1-1: new full-speed USB device number 3