Re: [PATCH 1/1] usb: chipidea: Fix oops when removing the ci_hdrc module

2014-10-03 Thread Peter Chen
On Fri, Oct 03, 2014 at 11:01:20AM +0200, Torsten Fleischer wrote: > The call of 'kfree(ci->hw_bank.regmap)' in ci_hdrc_remove() sometimes causes > a kernel oops when removing the ci_hdrc module. > > Since there is no separate memory allocated for the ci->hw_bank.regmap array, > there is no need t

RE: Question about calculate trbs in xhci

2014-10-03 Thread Paul Zimmerman
> From: linux-usb-ow...@vger.kernel.org > [mailto:linux-usb-ow...@vger.kernel.org] On Behalf Of David Laight > Sent: Friday, October 03, 2014 6:08 AM > > From: Mathias Nyman > > On 10/01/2014 05:50 PM, vichy wrote: > > > hi Mathias: > > > > > >> > > >> In xhci-ring.c, static int xhci_queue_isoc_

Re: [PATCH v2 2/2] uas: Make uas work with blk-mq

2014-10-03 Thread Greg Kroah-Hartman
On Fri, Oct 03, 2014 at 12:08:57PM +0200, Hans de Goede wrote: > With uas over usb-3 the tags inside the uas iu-s must match the usb-3 stream > ids, and those go from 1 - qdepth. > > Before blk-mq calling scsi_activate_tcq(sdev, qdepth) guaranteed that we would > only get cmnd->request->tag from 0

Re: [PATCH net v2] r8152: autoresume before setting MAC address

2014-10-03 Thread David Miller
From: Hayes Wang Date: Thu, 2 Oct 2014 17:03:12 +0800 > Resume the device before setting the MAC address. > > Signed-off-by: Hayes Wang 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 net-next] r8152: nway reset after setting eee

2014-10-03 Thread David Miller
From: Hayes Wang Date: Thu, 2 Oct 2014 16:01:22 +0800 > @@ -3480,6 +3480,9 @@ rtl_ethtool_set_eee(struct net_device *net, struct > ethtool_eee *edata) > > ret = tp->rtl_ops.eee_set(tp, edata); > > + if (ret == 0) > + ret = mii_nway_restart(&tp->mii); Please test this c

Re: bugreport: huawei_cdc_ncm control device freezes for 3-5 minutes on connect with E3276 LTE modem

2014-10-03 Thread Oliver Neukum
On Fri, 2014-10-03 at 10:01 +0200, Erik Alapää wrote: > Workaround: Bring up the device with > AT^NDISDUP=1,1,"internet.telenor.se" instead. Also worth noting is > that AT+CGACT=1,1 does not freeze the control connection if using > /dev/ttyUSB0. > > If more info is needed, let me know and I will p

Re: [PATCH 2/2] arm: shmobile: lager: enable HS-USB

2014-10-03 Thread Sergei Shtylyov
On 10/02/2014 12:04 PM, Yoshihiro Shimoda wrote: Signed-off-by: Yoshihiro Shimoda --- arch/arm/boot/dts/r8a7790-lager.dts |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index 1698591..4badd0a 100644 ---

Re: [PATCH 2/3] arm: shmobile: koelsch: enable HS-USB

2014-10-03 Thread Sergei Shtylyov
Hello. On 10/02/2014 03:48 PM, Yoshihiro Shimoda wrote: Signed-off-by: Yoshihiro Shimoda --- arch/arm/boot/dts/r8a7791-koelsch.dts |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts index 3f55c16..b3

Re: [PATCH v6 1/4] mfd: add support for Diolan DLN-2 devices

2014-10-03 Thread Johan Hovold
On Thu, Sep 25, 2014 at 07:07:31PM +0300, Octavian Purdila wrote: > This patch implements the USB part of the Diolan USB-I2C/SPI/GPIO > Master Adapter DLN-2. Details about the device can be found here: > > https://www.diolan.com/i2c/i2c_interface.html. > > Information about the USB protocol can b

Re: [PATCH] USB: serial: cp210x: Add Silicon Labs 358x VID and PID.

2014-10-03 Thread Greg KH
On Fri, Oct 03, 2014 at 12:01:20PM -0400, Nathaniel Ting wrote: > From: Nathaniel Ting > > Enable Silicon Labs Ember VID chips to enumerate with the cp210x usb serial > driver. EM358x devices operating with the Ember Z-Net 5.1.2 stack may now > connect to host PCs over a USB serial link. > > Sig

[PATCH] USB: serial: cp210x: Add Silicon Labs 358x VID and PID.

2014-10-03 Thread Nathaniel Ting
From: Nathaniel Ting Enable Silicon Labs Ember VID chips to enumerate with the cp210x usb serial driver. EM358x devices operating with the Ember Z-Net 5.1.2 stack may now connect to host PCs over a USB serial link. Signed-off-by: Nathaniel Ting --- drivers/usb/serial/cp210x.c | 1 + 1 file cha

Re: [PATCH] USB: serial: cp210x: Add Silicon Labs 358x VID and PID.

2014-10-03 Thread Greg KH
On Fri, Oct 03, 2014 at 11:06:33AM -0400, Nathaniel Ting wrote: > From: Nathaniel Ting > > Enable Silicon Labs Ember VID chips to enumerate with the cp210x usb serial > driver. EM358x devices operating with the Ember Z-Net 5.1.2 stack may now > connect to host PCs over a USB serial link. > > Sig

[PATCH] USB: serial: cp210x: Add Silicon Labs 358x VID and PID.

2014-10-03 Thread Nathaniel Ting
From: Nathaniel Ting Enable Silicon Labs Ember VID chips to enumerate with the cp210x usb serial driver. EM358x devices operating with the Ember Z-Net 5.1.2 stack may now connect to host PCs over a USB serial link. Signed-off-by: Nathaniel Ting --- drivers/usb/serial/cp210x.c | 1 + 1 file cha

Re: [PATCH 1/2] arm: shimobile: r8a7790: add HS-USB device node

2014-10-03 Thread Sergei Shtylyov
Hello. On 10/02/2014 12:04 PM, Yoshihiro Shimoda wrote: Signed-off-by: Yoshihiro Shimoda The subject has "shimobile" instead of "shmobile" on both this and R8A7791 patch. And capitalize "arm:" please on all the patches. WBR, Sergei -- To unsubscribe from this list: send the line "unsu

RE: Question about calculate trbs in xhci

2014-10-03 Thread David Laight
From: Mathias Nyman > On 10/01/2014 05:50 PM, vichy wrote: > > hi Mathias: > > > >> > >> In xhci-ring.c, static int xhci_queue_isoc_tx(): > >> > >> /* Calculate TRB length */ > >> trb_buff_len = TRB_MAX_BUFF_SIZE - (addr & ((1 << TRB_MAX_BUFF_SHIFT) - > >> 1)); > >> > >> where addr = start_add

Re: Question about calculate trbs in xhci

2014-10-03 Thread Mathias Nyman
On 10/01/2014 05:50 PM, vichy wrote: > hi Mathias: > >> >> In xhci-ring.c, static int xhci_queue_isoc_tx(): >> >> /* Calculate TRB length */ >> trb_buff_len = TRB_MAX_BUFF_SIZE - (addr & ((1 << TRB_MAX_BUFF_SHIFT) - >> 1)); >> >> where addr = start_addr + urb->iso_frame_desc[i].offset; >> >>

Re: [PATCH v6 2/4] i2c: add support for Diolan DLN-2 USB-I2C adapter

2014-10-03 Thread Octavian Purdila
On Fri, Oct 3, 2014 at 4:14 AM, Wolfram Sang wrote: > Hi, > >> diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig >> index 2ac87fa..6afc17e 100644 >> --- a/drivers/i2c/busses/Kconfig >> +++ b/drivers/i2c/busses/Kconfig >> @@ -1021,4 +1021,14 @@ config SCx200_ACB >> This s

[PATCH v2 1/2] uas: Reduce number of function arguments for uas_alloc_foo functions

2014-10-03 Thread Hans de Goede
The stream_id and pipe are already present in uas_cmd_info resp uas_dev_info, so there is no need to pass a copy along. Signed-off-by: Hans de Goede Reviewed-by: Christoph Hellwig --- drivers/usb/storage/uas.c | 29 ++--- 1 file changed, 14 insertions(+), 15 deletions(-)

[PATCH v2 2/2] uas: Make uas work with blk-mq

2014-10-03 Thread Hans de Goede
With uas over usb-3 the tags inside the uas iu-s must match the usb-3 stream ids, and those go from 1 - qdepth. Before blk-mq calling scsi_activate_tcq(sdev, qdepth) guaranteed that we would only get cmnd->request->tag from 0 - (qdepth - 1), and we used those as uas-tags / stream-ids. With blk-mq

Re: [PATCH 2/2] uas: Make uas work with blk-mq

2014-10-03 Thread Hans de Goede
Hi, On 10/03/2014 10:47 AM, Christoph Hellwig wrote: > On Thu, Oct 02, 2014 at 09:25:50AM -0400, James Bottomley wrote: >> OK, so 3.17 should be on sunday giving three days or so to sort this >> out. If you're happy with blk-mq being disabled so the bug never >> triggers unless the user activates

Re: [PATCH 2/2] uas: Make uas work with blk-mq

2014-10-03 Thread Christoph Hellwig
On Thu, Oct 02, 2014 at 09:25:50AM -0400, James Bottomley wrote: > OK, so 3.17 should be on sunday giving three days or so to sort this > out. If you're happy with blk-mq being disabled so the bug never > triggers unless the user activates it, doing nothing is my preferred > outcome ... but that a

[PATCH] [next-20141003] USB: host: st: fix typo 'CONFIG_USB_EHCI_HCD_ST'

2014-10-03 Thread Paul Bolle
Signed-off-by: Paul Bolle Fixes: 905e300e1043 ("USB: host: st: fix ehci/ohci driver selection") --- drivers/usb/host/ehci-st.o actually builds (on x86_64. that is) so there's no _obvious_ reason not to fix this typo. drivers/usb/host/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 0/4] xhci features for usb-next

2014-10-03 Thread Mathias Nyman
Hi Greg Here's Andrew's patches modularizing xhci to better support non-PCI xhci hosts like the one on NVIDIA Tegra SoCs If possible, consider applying them to your usb-next branch so they still could make it to 3.18 -Mathias Andrew Bresticker (4): xhci: Introduce xhci_init_driver() xhci:

[PATCH 2/4] xhci: Check for XHCI_COMP_MODE_QUIRK when disabling D3cold

2014-10-03 Thread Mathias Nyman
From: Andrew Bresticker Instead of calling xhci_compliance_mode_recovery_timer_quirk_check() again in the PCI suspend path, just check for XHCI_COMP_MODE_QUIRK which will have been set based on xhci_compliance_mode_recovery_timer_quirk_check() in xhci_init(). Signed-off-by: Andrew Bresticker Si

[PATCH 4/4] xhci: Allow xHCI drivers to be built as separate modules

2014-10-03 Thread Mathias Nyman
From: Andrew Bresticker Instead of building all of the xHCI code into a single module, separate it out into the core (xhci-hcd), PCI (xhci-pci, now selected by the new config option CONFIG_USB_XHCI_PCI), and platform (xhci-plat) drivers. Also update the PCI/platform drivers with module descriptio

[PATCH 1/4] xhci: Introduce xhci_init_driver()

2014-10-03 Thread Mathias Nyman
From: Andrew Bresticker Since the struct hc_driver is mostly the same across the xhci-pci, xhci-plat, and the upcoming xhci-tegra driver, introduce the function xhci_init_driver() which will populate the hc_driver with the default xHCI operations. The caller must supply a setup function which wi

[PATCH 3/4] xhci: Export symbols used by host-controller drivers

2014-10-03 Thread Mathias Nyman
From: Andrew Bresticker In preparation for allowing the xHCI host controller drivers to be built as separate modules, export symbols from the xHCI core that may be used by the host controller drivers. Signed-off-by: Andrew Bresticker Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-dbg.

bugreport: huawei_cdc_ncm control device freezes for 3-5 minutes on connect with E3276 LTE modem

2014-10-03 Thread Erik Alapää
Problem: When connecting to a Huawei E3276 LTE modem using 'AT+CGACT=1,1' in minicom over /dev/cdc-wdm1, the cdc-wdm device freezes for 3-5 minutes until accepting AT commands again. Keywords: huawei_cdc_ncm, LTE, AT commands, cdc-wdm Detailed problem description: I am using a 4G mobile USB dong