[PATCH net-next 3/3] r8152: check RTL8152_UNPLUG and netif_running before autoresume

2014-10-31 Thread Hayes Wang
If the device is unplugged or !netif_running(), the workqueue doesn't neet to wake the device, and could return directly. Signed-off-by: Hayes Wang hayesw...@realtek.com --- drivers/net/usb/r8152.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git

[PATCH net-next 2/3] r8152: clear the flag of SCHEDULE_TASKLET in tasklet

2014-10-31 Thread Hayes Wang
Clear the flag of SCHEDULE_TASKLET in bottom_half() to avoid re-schedule the tasklet again by workqueue. Signed-off-by: Hayes Wang hayesw...@realtek.com --- drivers/net/usb/r8152.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index

[PATCH net-next 1/3] r8152: remove the duplicate init for the list of rx_done

2014-10-31 Thread Hayes Wang
The INIT_LIST_HEAD(tp-rx_done) would be done in rtl_start_rx(), so remove the unnecessary one in alloc_all_mem(). Signed-off-by: Hayes Wang hayesw...@realtek.com --- drivers/net/usb/r8152.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index

[PATCH net-next 0/3] Code adjustment

2014-10-31 Thread Hayes Wang
Adjust some codes to make them more reasonable. Hayes Wang (3): r8152: remove the duplicate the init for the list of rx_done r8152: clear the flag of SCHEDULE_TASKLET in tasklet r8152: check RTL8152_UNPLUG and netif_running before autoresume drivers/net/usb/r8152.c | 13 + 1

Re: [PATCH v2 01/10] usb: dwc2/gadget: report disconnect event from 'end session' irq

2014-10-31 Thread Marek Szyprowski
Hello, On 2014-10-25 03:23, Paul Zimmerman wrote: From: Marek Szyprowski [mailto:m.szyprow...@samsung.com] Sent: Monday, October 20, 2014 3:46 AM This patch adds a call to s3c_hsotg_disconnect() from 'end session' interrupt (GOTGINT_SES_END_DET) to correctly notify gadget subsystem about

Re: usb media detection issue on USB_MUSB_HDRC on kernel 3.17

2014-10-31 Thread Enric Balletbo Serra
Hi Rusian, 2014-10-29 14:31 GMT+01:00 Ruslan Bilovol ruslan.bilo...@gmail.com: Hi Enric On Wed, Oct 29, 2014 at 1:44 PM, Enric Balletbo Serra eballe...@gmail.com wrote: Hi all, 2014-10-26 10:10 GMT+01:00 Angelo Dureghello angel...@gmail.com: Had some progresses: on kernel 3.17, musb

[PATCH v3] usb: dwc2/gadget: report disconnect event from 'end session' irq

2014-10-31 Thread Marek Szyprowski
This patch adds a call to s3c_hsotg_disconnect() from 'end session' interrupt (GOTGINT_SES_END_DET) to correctly notify gadget subsystem about unplugged usb cable. 'disconnected' interrupt (DISCONNINT) might look a bit more suitable for this event, but it is asserted only in host mode, so in

Re: [PATCH RESEND V4 3/9] of: Update Tegra XUSB pad controller binding for USB

2014-10-31 Thread Linus Walleij
On Tue, Oct 28, 2014 at 11:27 PM, Andrew Bresticker abres...@chromium.org wrote: Add new bindings used for USB support by the Tegra XUSB pad controller. This includes additional PHY types, USB-specific pinconfig properties, etc. Signed-off-by: Andrew Bresticker abres...@chromium.org

[PATCH net-next v2 2/3] r8152: clear the flag of SCHEDULE_TASKLET in tasklet

2014-10-31 Thread Hayes Wang
Clear the flag of SCHEDULE_TASKLET in bottom_half() to avoid re-schedule the tasklet again by workqueue. Signed-off-by: Hayes Wang hayesw...@realtek.com --- drivers/net/usb/r8152.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index

[PATCH net-next v2 0/3] Code adjustment

2014-10-31 Thread Hayes Wang
v2: Correct the spelling error for the comment of patch #3. v1: Adjust some codes to make them more reasonable. Hayes Wang (3): r8152: remove the duplicate init for the list of rx_done r8152: clear the flag of SCHEDULE_TASKLET in tasklet r8152: check RTL8152_UNPLUG and netif_running

[PATCH net-next v2 3/3] r8152: check RTL8152_UNPLUG and netif_running before autoresume

2014-10-31 Thread Hayes Wang
If the device is unplugged or !netif_running(), the workqueue doesn't need to wake the device, and could return directly. Signed-off-by: Hayes Wang hayesw...@realtek.com --- drivers/net/usb/r8152.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git

[PATCH net-next v2 1/3] r8152: remove the duplicate init for the list of rx_done

2014-10-31 Thread Hayes Wang
The INIT_LIST_HEAD(tp-rx_done) would be done in rtl_start_rx(), so remove the unnecessary one in alloc_all_mem(). Signed-off-by: Hayes Wang hayesw...@realtek.com --- drivers/net/usb/r8152.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index

Re: [PATCH v2 10/10] usb: dwc2/gadget: rework suspend/resume code to correctly restore gadget state

2014-10-31 Thread Marek Szyprowski
Hello, On 2014-10-27 08:18, Marek Szyprowski wrote: On 2014-10-25 03:16, Paul Zimmerman wrote: From: Marek Szyprowski [mailto:m.szyprow...@samsung.com] Sent: Monday, October 20, 2014 3:46 AM Suspend/resume code assumed that the gadget was always enabled and connected to usb bus. This means

[PATCH v3 2/2] usb: dwc2/gadget: rework suspend/resume code to correctly restore gadget state

2014-10-31 Thread Marek Szyprowski
Suspend/resume code assumed that the gadget was always enabled and connected to usb bus. This means that the actual state of the gadget (soft-enabled/disabled or connected/disconnected) was not correctly preserved on suspend/resume cycle. This patch fixes this issue. Signed-off-by: Marek

[PATCH v3 1/2] usb: dwc2/gadget: add mutex to serialize init/deinit calls

2014-10-31 Thread Marek Szyprowski
This patch adds mutex, which protects initialization and deinitialization procedures against suspend/resume methods. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com --- drivers/usb/dwc2/core.h | 1 + drivers/usb/dwc2/gadget.c | 20 2 files changed, 21

Re: [PATCH RESEND V4 4/9] pinctrl: tegra-xusb: Add USB PHY support

2014-10-31 Thread Thierry Reding
On Thu, Oct 30, 2014 at 10:10:06AM -0700, Andrew Bresticker wrote: On Thu, Oct 30, 2014 at 6:45 AM, Thierry Reding thierry.red...@gmail.com wrote: On Wed, Oct 29, 2014 at 12:43:36PM -0700, Andrew Bresticker wrote: diff --git a/drivers/pinctrl/pinctrl-tegra-xusb.c

Re: btusb_intr_complete returns -EPIPE

2014-10-31 Thread Naveen Kumar Parna
Hi , I tried on plenty of test servers(Fedora distribution) with USB-EHCI and all these are having spurious STALL packets issue. Today I got a test laptop(Ubuntu distribution) with USB-EHCI and interestingly it does not report STALL packets. The only difference I observed from lsusb is, Fedora

Re: [PATCH RESEND V4 5/9] of: Add NVIDIA Tegra xHCI controller binding

2014-10-31 Thread Thierry Reding
On Thu, Oct 30, 2014 at 10:26:47AM -0700, Andrew Bresticker wrote: On Thu, Oct 30, 2014 at 10:24 AM, Thierry Reding thierry.red...@gmail.com wrote: On Thu, Oct 30, 2014 at 10:19:21AM -0700, Andrew Bresticker wrote: On Thu, Oct 30, 2014 at 6:55 AM, Thierry Reding thierry.red...@gmail.com

Re: [PATCH v4-real] cdc-acm: ensure that termios get set when the port is activated

2014-10-31 Thread Johan Hovold
On Thu, Oct 30, 2014 at 11:04:47AM -0400, Jim Paris wrote: The driver wasn't properly configuring the hardware for the current termios settings under all conditions. Ensure that termios are written to the device when the port is activated. Signed-off-by: Jim Paris j...@jtan.com

Re: [PATCHv4 2/6] phy: improved lookup method

2014-10-31 Thread Vivek Gautam
Hi Heikki, On Fri, Oct 17, 2014 at 8:09 PM, Heikki Krogerus heikki.kroge...@linux.intel.com wrote: Removes the need for the phys to be aware of their users even when not using DT. The method is copied from clkdev.c. Signed-off-by: Heikki Krogerus heikki.kroge...@linux.intel.com Tested-by:

re: usb: gadget: f_uac1: convert to new function interface with backward compatibility

2014-10-31 Thread Dan Carpenter
Hello Andrzej Pietrasiewicz, This is a semi-automatic email about new static checker warnings. The patch f3a3406b3f56: usb: gadget: f_uac1: convert to new function interface with backward compatibility from Jul 22, 2014, leads to the following Smatch complaint:

RE: [PATCH v2 2/2] ARM: shmobile: lager: enable USB3.0

2014-10-31 Thread yoshihiro shimoda
Hi Simon-san, On Fri, Oct 31, 2014 at 02:06:14AM +, yoshihiro shimoda wrote: Hi Simon-san, On Wed, Oct 29, 2014 at 08:19:30PM +0900, Yoshihiro Shimoda wrote: Hi Magnus-san, (2014/10/29 15:53), Magnus Damm wrote: snip Hi Shimoda-san, Thanks for your

[PATCH v7 2/2] phy: exynos5-usbdrd: Calibrate LOS levels for exynos5420/5800

2014-10-31 Thread Vivek Gautam
Adding phy calibration sequence for USB 3.0 DRD PHY present on Exynos5420/5800 systems. This calibration facilitates setting certain PHY parameters viz. the Loss-of-Signal (LOS) Detector Threshold Level, as well as Tx-Vboost-Level for Super-Speed operations. Additionally we also set proper time to

[PATCH v7 1/2] usb: host: xhci-plat: Get PHYs for xhci's hcds

2014-10-31 Thread Vivek Gautam
The host controller by itself may sometimes need to handle PHY and re-initialize it to re-configure some of the PHY parameters to get full support out of the PHY controller. Therefore, facilitate getting the two possible PHYs, viz. USB 2.0 type (UTMI+) and USB 3.0 type (PIPE3), and initialize

[PATCH v7 0/2] Fine tune USB 3.0 PHY on exynos5420

2014-10-31 Thread Vivek Gautam
This series is tested with V3 of Heikki's patches for simpliefied phy lookup table: [PATCHv3 0/6] phy: simplified phy lookup [1] on 'usb-next' branch. V4 of this series is giving some issue, which i have already pointed out in the patch: [PATCHv4 2/6] phy: improved lookup method Changes since

Re: [PATCH v7 1/7] usb: move the OTG state from the USB PHY to the OTG structure

2014-10-31 Thread Felipe Balbi
Hi, On Thu, Oct 30, 2014 at 07:47:10PM -0500, Felipe Balbi wrote: Hi, On Fri, Oct 31, 2014 at 08:38:14AM +0800, Peter Chen wrote: On Thu, Oct 30, 2014 at 12:47:34PM -0500, Felipe Balbi wrote: On Thu, Oct 30, 2014 at 06:42:54PM +0100, Antoine Tenart wrote: Hi Felipe, On Thu,

Re: [PATCH v5 1/4] usb: renesas_usbhs: gadget: fix NULL pointer dereference in ep_disable()

2014-10-31 Thread Felipe Balbi
On Fri, Oct 31, 2014 at 01:20:08PM +0900, Yoshihiro Shimoda wrote: From: Kazuya Mizuguchi kazuya.mizuguchi...@renesas.com This patch fixes an issue that the NULL pointer dereference happens when we uses g_audio driver. Since the g_audio driver will call usb_ep_disable() in afunc_set_alt()

Re: [PATCH v7 1/7] usb: move the OTG state from the USB PHY to the OTG structure

2014-10-31 Thread Felipe Balbi
Hi, On Fri, Oct 31, 2014 at 08:33:19AM -0500, Felipe Balbi wrote: Before using the PHY framework instead of the USB PHY one, we need to move the OTG state into another place, since it won't be available when USB PHY isn't used. This patch moves the OTG

Re: [PATCH v7 1/2] usb: host: xhci-plat: Get PHYs for xhci's hcds

2014-10-31 Thread Sergei Shtylyov
Hello. On 10/31/2014 4:26 PM, Vivek Gautam wrote: The host controller by itself may sometimes need to handle PHY and re-initialize it to re-configure some of the PHY parameters to get full support out of the PHY controller. Therefore, facilitate getting the two possible PHYs, viz. USB 2.0 type

Re: [PATCHv6 1/8] usb: dwc2: Update the gadget driver to use common dwc2_hsotg structure

2014-10-31 Thread Felipe Balbi
On Fri, Oct 31, 2014 at 10:47:16AM +0800, Kever Yang wrote: Hi Dinh On 10/29/2014 07:25 AM, dingu...@opensource.altera.com wrote: From: Dinh Nguyen dingu...@opensource.altera.com Adds the gadget data structure and appropriate data structure pointers to the common dwc2_hsotg data structure.

Re: [PATCHv6 6/8] usb: dwc2: gadget: Do not fail probe if there isn't a clock node

2014-10-31 Thread Felipe Balbi
On Fri, Oct 31, 2014 at 10:38:28AM +0800, Kever Yang wrote: Hi Dinh, On 10/29/2014 07:25 AM, dingu...@opensource.altera.com wrote: From: Dinh Nguyen dingu...@opensource.altera.com Since the dwc2 hcd driver is currently not looking for a clock node during init, we should not completely

Re: [PATCH v7 1/7] usb: move the OTG state from the USB PHY to the OTG structure

2014-10-31 Thread Antoine Tenart
Hi Felipe, On Fri, Oct 31, 2014 at 08:47:51AM -0500, Felipe Balbi wrote: On Fri, Oct 31, 2014 at 08:33:19AM -0500, Felipe Balbi wrote: Before using the PHY framework instead of the USB PHY one, we need to move the OTG state into another place, since it won't be

[PATCH] usb: dwc2: add bus suspend/resume for dwc2

2014-10-31 Thread Kever Yang
This patch adds suspend/resume for dwc2 hcd controller. Signed-off-by: Kever Yang kever.y...@rock-chips.com --- drivers/usb/dwc2/hcd.c | 74 ++ 1 file changed, 63 insertions(+), 11 deletions(-) diff --git a/drivers/usb/dwc2/hcd.c

Re: [PATCH v7 1/7] usb: move the OTG state from the USB PHY to the OTG structure

2014-10-31 Thread Felipe Balbi
Hi, On Fri, Oct 31, 2014 at 02:55:35PM +0100, Antoine Tenart wrote: Before using the PHY framework instead of the USB PHY one, we need to move the OTG state into another place, since it won't be available when USB PHY isn't used. This patch moves the OTG

Re: Question r/e zero byte bulk transfer on musb gadget (causes kernel panic)

2014-10-31 Thread Alan Stern
On Fri, 31 Oct 2014, Peter Stuge wrote: Breton M. Saunders wrote: Are zero length transfers from a device to the PC on a bulk endpoint sensible? I don't see how they could be. If the device has no data to send it responds with a NAK handshake. If the device has data to send it

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

2014-10-31 Thread Mark Langsdorf
On 10/30/2014 04:05 PM, Arnd Bergmann wrote: On Thursday 30 October 2014 15:09:33 Mark Langsdorf wrote: On 10/30/2014 02:05 PM, Arnd Bergmann wrote: On Thursday 30 October 2014 13:16:28 Mark Langsdorf wrote: - /* Initialize dma_mask and coherent_dma_mask to 32-bits */ - ret =

Re: [PATCH 2/3] usb: xhci: This reworks ff8cbf250b448aac35589f6075082c3fcad8a8fe

2014-10-31 Thread Alan Stern
On Fri, 31 Oct 2014, Lu Baolu wrote: xhci: clear root port wake on bits if controller isn't wake-up capable When xHCI PCI host is suspended, if do_wakeup is false in xhci_pci_suspend, xhci_pci_suspend needs to clear all root port wake on bits. Otherwise some Intel platforms may get a

Re: USB3: unable to enumerate, device not accepting address

2014-10-31 Thread Alan Stern
On Thu, 30 Oct 2014, parafin wrote: Hi, I have 2 very similar USB3 devices that stopped working sometime after kernel version 3.3 - they fail to enumerate unless I reload xhci_hcd driver. I managed to bisect this down to this commit: beabe20445c60322719d8f58e9eb9dd4660c1b3e (it's from

Re: [PATCH usb v3 00/29] cleanup and fixes on resource check

2014-10-31 Thread Sergei Shtylyov
Hello. On 10/31/2014 4:14 AM, Varka Bhadram wrote: This series removes the duplication of sanity check for platform_get_resource() return resource. It will be checked with devm_ioremap_resource() This entire series rebased on testing/fixes of [1]. [1]:

Re: usb: gadget: f_uac1: convert to new function interface with backward compatibility

2014-10-31 Thread Andrzej Pietrasiewicz
Hello Dan, Thanks for this check. W dniu 31.10.2014 o 14:06, Dan Carpenter pisze: Hello Andrzej Pietrasiewicz, This is a semi-automatic email about new static checker warnings. snip drivers/usb/gadget/function/u_uac1.c 210 211 opts = container_of(card-func.fi, struct

Re: USB3: unable to enumerate, device not accepting address

2014-10-31 Thread parafin
I assumed Sarah reads this mailing list (she replied here sometime ago when I posted about another issue), but OK, I will forward my email to her directly as well. P.S. I also cross-posted this to this bug which seems to be at least related: https://bugzilla.kernel.org/show_bug.cgi?id=41752 On

Re: [PATCHv6 2/8] usb: dwc2: Move gadget probe function into platform code

2014-10-31 Thread Dinh Nguyen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/30/2014 08:57 AM, Felipe Balbi wrote: On Tue, Oct 28, 2014 at 06:25:43PM -0500, dingu...@opensource.altera.com wrote: From: Dinh Nguyen dingu...@opensource.altera.com This patch will aggregate the probing of gadget/hcd driver into

Re: [PATCHv6 4/8] usb: dwc2: Update common interrupt handler to call gadget interrupt handler

2014-10-31 Thread Dinh Nguyen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/30/2014 09:00 AM, Felipe Balbi wrote: Hi, On Tue, Oct 28, 2014 at 06:25:45PM -0500, dingu...@opensource.altera.com wrote: From: Dinh Nguyen dingu...@opensource.altera.com Make dwc2_handle_common_intr call the gadget interrupt function

Re: [PATCHv6 5/8] usb: dwc2: Add call_gadget functions for perpheral mode interrupts

2014-10-31 Thread Dinh Nguyen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/30/2014 09:01 AM, Felipe Balbi wrote: On Tue, Oct 28, 2014 at 06:25:46PM -0500, dingu...@opensource.altera.com wrote: From: Dinh Nguyen dingu...@opensource.altera.com Update the dwc2 wakeup and suspend interrupt functions to use

Re: usb: gadget: f_uac1: convert to new function interface with backward compatibility

2014-10-31 Thread Dan Carpenter
Oops. Sorry. I forgot that I sent a patch for this. regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCHv6 1/8] usb: dwc2: Update the gadget driver to use common dwc2_hsotg structure

2014-10-31 Thread Dinh Nguyen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/30/2014 08:54 AM, Felipe Balbi wrote: On Tue, Oct 28, 2014 at 06:25:42PM -0500, dingu...@opensource.altera.com wrote: From: Dinh Nguyen dingu...@opensource.altera.com Adds the gadget data structure and appropriate data structure pointers

Re: [PATCHv6 6/8] usb: dwc2: gadget: Do not fail probe if there isn't a clock node

2014-10-31 Thread Dinh Nguyen
On 10/30/2014 09:04 AM, Felipe Balbi wrote: Hi, On Tue, Oct 28, 2014 at 06:25:47PM -0500, dingu...@opensource.altera.com wrote: From: Dinh Nguyen dingu...@opensource.altera.com Since the dwc2 hcd driver is currently not looking for a clock node during init, we should not completely fail

Re: [PATCH] usb: dwc2: add bus suspend/resume for dwc2

2014-10-31 Thread Romain Perier
Hi Kever, 2014-10-31 15:02 GMT+01:00 Kever Yang kever.y...@rock-chips.com: This patch adds suspend/resume for dwc2 hcd controller. Could you add a more explicit and detailed message ? It is redundant with the commit subject and explains almost the same thing. Signed-off-by: Kever Yang

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

2014-10-31 Thread Arnd Bergmann
On Friday 31 October 2014 09:22:26 Mark Langsdorf wrote: On 10/30/2014 04:05 PM, Arnd Bergmann wrote: On Thursday 30 October 2014 15:09:33 Mark Langsdorf wrote: You should not access pdev-dev.dma_mask here, that gets set by the platform code. You should be able to just use

Re: [PATCH v4-real] cdc-acm: ensure that termios get set when the port is activated

2014-10-31 Thread Oliver Neukum
On Fri, 2014-10-31 at 12:45 +0100, Johan Hovold wrote: On Thu, Oct 30, 2014 at 11:04:47AM -0400, Jim Paris wrote: The driver wasn't properly configuring the hardware for the current termios settings under all conditions. Ensure that termios are written to the device when the port is

Re: [PATCH RESEND V4 5/9] of: Add NVIDIA Tegra xHCI controller binding

2014-10-31 Thread Andrew Bresticker
On Fri, Oct 31, 2014 at 4:32 AM, Thierry Reding thierry.red...@gmail.com wrote: On Thu, Oct 30, 2014 at 10:26:47AM -0700, Andrew Bresticker wrote: On Thu, Oct 30, 2014 at 10:24 AM, Thierry Reding thierry.red...@gmail.com wrote: On Thu, Oct 30, 2014 at 10:19:21AM -0700, Andrew Bresticker

Re: [PATCH RESEND V4 3/9] of: Update Tegra XUSB pad controller binding for USB

2014-10-31 Thread Andrew Bresticker
On Fri, Oct 31, 2014 at 2:44 AM, Linus Walleij linus.wall...@linaro.org wrote: On Tue, Oct 28, 2014 at 11:27 PM, Andrew Bresticker abres...@chromium.org wrote: Add new bindings used for USB support by the Tegra XUSB pad controller. This includes additional PHY types, USB-specific pinconfig

Re: [3.16.1 BISECTED REGRESSION]: Simtec Entropy Key (cdc-acm) broken in 3.16

2014-10-31 Thread Nix
Sorry for the delay: illness and work-related release time flurries. On 24 Oct 2014, Johan Hovold told this: [ +CC: linux-usb ] On Wed, Oct 22, 2014 at 04:36:59PM +0100, Nix wrote: On 22 Oct 2014, Johan Hovold outgrape: On Wed, Oct 22, 2014 at 10:31:17AM +0100, Nix wrote: On 14 Oct

[PATCH v2] usb: gadget: Add UDC driver for Broadcom USB3.0 device controller IP BDC

2014-10-31 Thread Ashwini Pahuja
- The v2 version includes all the feedback provided by Felipe on the v1 and also -- Removed unnecessary out of memory messages. -- Added usb_gadget_giveback_request -- udc_stop: removed unnecessary driver argument. -- Removed

Re: USB3: unable to enumerate, device not accepting address

2014-10-31 Thread Alan Stern
On Fri, 31 Oct 2014, parafin wrote: I assumed Sarah reads this mailing list (she replied here sometime ago when I posted about another issue), but OK, I will forward my email to her directly as well. You might also bear in mind that Sarah is no longer the xHCI maintainer and she is not

Re: USB3: unable to enumerate, device not accepting address

2014-10-31 Thread parafin
On Fri, 31 Oct 2014 12:52:04 -0400 (EDT) Alan Stern st...@rowland.harvard.edu wrote: On Fri, 31 Oct 2014, parafin wrote: I assumed Sarah reads this mailing list (she replied here sometime ago when I posted about another issue), but OK, I will forward my email to her directly as well.

[PATCH] HID: usbhid: enable always-poll quirk for Elan Touchscreen 0103

2014-10-31 Thread Adel Gadllah
Yet another device that needs this quirk. Reported-by: Tanguy de Baritault tdebarita...@gmail.com Signed-off-by: Adel Gadllah adel.gadl...@gmail.com --- drivers/hid/hid-ids.h | 1 + drivers/hid/usbhid/hid-quirks.c | 1 + 2 files changed, 2 insertions(+) diff --git

Re: USB3: unable to enumerate, device not accepting address

2014-10-31 Thread Alan Stern
On Fri, 31 Oct 2014, parafin wrote: On Fri, 31 Oct 2014 12:52:04 -0400 (EDT) Alan Stern st...@rowland.harvard.edu wrote: On Fri, 31 Oct 2014, parafin wrote: I assumed Sarah reads this mailing list (she replied here sometime ago when I posted about another issue), but OK, I will

Re: [PATCH v2] usb: gadget: Add UDC driver for Broadcom USB3.0 device controller IP BDC

2014-10-31 Thread Felipe Balbi
On Fri, Oct 31, 2014 at 09:51:03AM -0700, Ashwini Pahuja wrote: - The v2 version includes all the feedback provided by Felipe on the v1 and also -- Removed unnecessary out of memory messages. -- Added usb_gadget_giveback_request -- udc_stop:

Re: [PATCHv6 6/8] usb: dwc2: gadget: Do not fail probe if there isn't a clock node

2014-10-31 Thread Felipe Balbi
Hi, On Fri, Oct 31, 2014 at 10:20:06AM -0500, Dinh Nguyen wrote: @@ -339,7 +339,8 @@ static void dwc2_handle_wakeup_detected_intr(struct dwc2_hsotg *hsotg) } /* Change to L0 state */ hsotg-lx_state = DWC2_L0; - call_gadget(hsotg, resume); +

Re: [PATCH net] r8152: stop submitting intr for -EPROTO

2014-10-31 Thread David Miller
From: Hayes Wang hayesw...@realtek.com Date: Fri, 31 Oct 2014 13:35:57 +0800 For Renesas USB 3.0 host controller, when unplugging the usb hub which has the RTL8153 plugged, the driver would get -EPROTO for interrupt transfer. There is high probability to get the information of HC died;

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

2014-10-31 Thread Mark Langsdorf
On 10/31/2014 10:49 AM, Arnd Bergmann wrote: On Friday 31 October 2014 09:22:26 Mark Langsdorf wrote: On 10/30/2014 04:05 PM, Arnd Bergmann wrote: On Thursday 30 October 2014 15:09:33 Mark Langsdorf wrote: You should not access pdev-dev.dma_mask here, that gets set by the platform code. You

RE: [PATCH] usb: dwc2: add bus suspend/resume for dwc2

2014-10-31 Thread Paul Zimmerman
From: Kever Yang [mailto:kever.y...@gmail.com] On Behalf Of Kever Yang Sent: Friday, October 31, 2014 7:03 AM This patch adds suspend/resume for dwc2 hcd controller. Signed-off-by: Kever Yang kever.y...@rock-chips.com --- drivers/usb/dwc2/hcd.c | 74

RE: [PATCH v3] usb: dwc2/gadget: report disconnect event from 'end session' irq

2014-10-31 Thread Paul Zimmerman
From: Marek Szyprowski [mailto:m.szyprow...@samsung.com] Sent: Friday, October 31, 2014 1:04 AM To: linux-usb@vger.kernel.org; linux-samsung-...@vger.kernel.org Cc: Marek Szyprowski; Kyungmin Park; Robert Baldyga; Paul Zimmerman; Krzysztof Kozlowski; Felipe Balbi Subject: [PATCH v3] usb:

Re: [PATCH v2] usb: gadget: Add UDC driver for Broadcom USB3.0 device controller IP BDC

2014-10-31 Thread Ashwini Pahuja
On Fri, Oct 31, 2014 at 10:44 AM, Felipe Balbi ba...@ti.com wrote: On Fri, Oct 31, 2014 at 09:51:03AM -0700, Ashwini Pahuja wrote: - The v2 version includes all the feedback provided by Felipe on the v1 and also -- Removed unnecessary out of memory messages.

[PATCH v2] usb: gadget: Add UDC driver for Broadcom USB3.0 device controller IP BDC

2014-10-31 Thread Ashwini Pahuja
- This patch adds a UDC driver for Broadcom's USB3.0 device controller IP(BDC). - The driver was written using the Felipe's USB testing/next branch as a baseline from: git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git - The driver is tested on FPGA-PCIe based

Re: [PATCH v2] usb: gadget: Add UDC driver for Broadcom USB3.0 device controller IP BDC

2014-10-31 Thread Felipe Balbi
On Fri, Oct 31, 2014 at 11:21:29AM -0700, Ashwini Pahuja wrote: - This patch adds a UDC driver for Broadcom's USB3.0 device controller IP(BDC). why all these extra spaces here ? why isn't this wrapped at 72 characters (or so) ? - The driver was written using the Felipe's USB

Re: [PATCH v2] usb: gadget: Add UDC driver for Broadcom USB3.0 device controller IP BDC

2014-10-31 Thread Ashwini Pahuja
On Fri, Oct 31, 2014 at 11:31 AM, Felipe Balbi ba...@ti.com wrote: On Fri, Oct 31, 2014 at 11:21:29AM -0700, Ashwini Pahuja wrote: - This patch adds a UDC driver for Broadcom's USB3.0 device controller IP(BDC). why all these extra spaces here ? why isn't this wrapped at 72 characters

RE: [PATCH v3 1/2] usb: dwc2/gadget: add mutex to serialize init/deinit calls

2014-10-31 Thread Paul Zimmerman
From: Marek Szyprowski [mailto:m.szyprow...@samsung.com] Sent: Friday, October 31, 2014 3:13 AM This patch adds mutex, which protects initialization and deinitialization procedures against suspend/resume methods. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com ---

[PATCH] usb-storage: handle a skipped data phase

2014-10-31 Thread Alan Stern
Sometimes mass-storage devices using the Bulk-only transport will mistakenly skip the data phase of a command. Rather than sending the data expected by the host or sending a zero-length packet, they go directly to the status phase and send the CSW. This causes problems for usb-storage, for

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

2014-10-31 Thread Arnd Bergmann
On Friday 31 October 2014 12:32:47 Mark Langsdorf wrote: On 10/31/2014 10:49 AM, Arnd Bergmann wrote: On Friday 31 October 2014 09:22:26 Mark Langsdorf wrote: On 10/30/2014 04:05 PM, Arnd Bergmann wrote: On Thursday 30 October 2014 15:09:33 Mark Langsdorf wrote: You should not access

Re: [PATCHv6 6/8] usb: dwc2: gadget: Do not fail probe if there isn't a clock node

2014-10-31 Thread Dinh Nguyen
On 10/31/2014 12:42 PM, Felipe Balbi wrote: Hi, On Fri, Oct 31, 2014 at 10:20:06AM -0500, Dinh Nguyen wrote: @@ -339,7 +339,8 @@ static void dwc2_handle_wakeup_detected_intr(struct dwc2_hsotg *hsotg) } /* Change to L0 state */ hsotg-lx_state = DWC2_L0; -

Re: [PATCHv6 6/8] usb: dwc2: gadget: Do not fail probe if there isn't a clock node

2014-10-31 Thread Dinh Nguyen
On 10/31/2014 02:31 PM, Dinh Nguyen wrote: On 10/31/2014 12:42 PM, Felipe Balbi wrote: Hi, On Fri, Oct 31, 2014 at 10:20:06AM -0500, Dinh Nguyen wrote: @@ -339,7 +339,8 @@ static void dwc2_handle_wakeup_detected_intr(struct dwc2_hsotg *hsotg) } /* Change to L0 state */

RE: [PATCHv6 4/8] usb: dwc2: Update common interrupt handler to call gadget interrupt handler

2014-10-31 Thread Paul Zimmerman
From: Felipe Balbi [mailto:ba...@ti.com] Sent: Thursday, October 30, 2014 7:01 AM On Tue, Oct 28, 2014 at 06:25:45PM -0500, dingu...@opensource.altera.com wrote: From: Dinh Nguyen dingu...@opensource.altera.com Make dwc2_handle_common_intr call the gadget interrupt function when

[PATCH RESEND v2] usb: gadget: Add UDC driver for Broadcom USB3.0 device controller IP BDC

2014-10-31 Thread Ashwini Pahuja
This patch adds a UDC driver for Broadcom's USB3.0 Peripheral core named BDC. BDC is capable of supporting all transfer types control, bulk, Int and isoch on each endpoint. Signed-off-by: Ashwini Pahuja ashwini.li...@gmail.com --- Changes for v2: - Includes all the feedback provided by Felipe on

Re: [PATCH net-next v2 2/3] r8152: clear the flag of SCHEDULE_TASKLET in tasklet

2014-10-31 Thread David Miller
From: Hayes Wang hayesw...@realtek.com Date: Fri, 31 Oct 2014 17:56:41 +0800 Clear the flag of SCHEDULE_TASKLET in bottom_half() to avoid re-schedule the tasklet again by workqueue. Signed-off-by: Hayes Wang hayesw...@realtek.com --- drivers/net/usb/r8152.c | 3 +++ 1 file changed, 3

Re: btusb_intr_complete returns -EPIPE

2014-10-31 Thread Alan Stern
On Wed, 29 Oct 2014, Naveen Kumar Parna wrote: Split packet transactions are hidden. I could see them by clicking on the (Show/Hide Split transactions) button. For INT IN, I could see only Start Split packet. I attached([2014-10-28 session 144012] Trace0003.rar) complete log for this

musb: cppi41: tweak usb-storage performance a little

2014-10-31 Thread Sebastian Andrzej Siewior
Daniel, could you give those a two chance? In my host-mode testing the perfomance of dd if=/dev/null of=/dev/sda2 bs=4096 count=4 went from 16384 bytes (164 MB) copied, 12.2608 s, 13.4 MB/s to 16384 bytes (164 MB) copied, 8.80694 s, 18.6 MB/s If you keep lowering the timer as you

[PATCH 1/2] usb: musb: musb_cppi41: recognize HS devices in hostmode

2014-10-31 Thread Sebastian Andrzej Siewior
There is a poll loop for max 25us for HS devices. Now guess what, I tested it in gadget mode and forgot about the little detail. Nobody seem to have it noticed… This patch adds the missing logic for hostmode so it is recognized in host and device mode properly. Signed-off-by: Sebastian Andrzej

[PATCH 2/2] usb: musb: musb_cppi41: revert to old timer poll intervals

2014-10-31 Thread Sebastian Andrzej Siewior
Commit 50aea6fca (usb: musb: cppi41: fire hrtimer according to programmed channel length) altered the hrtimer intervals and tried to make it better for ISOC. This patch reverts those changes and here is why: - Daniel said that for his ISOC case a timer interval of 3 us would be best. This should

Re: [PATCH 2/2] usb: musb: musb_cppi41: revert to old timer poll intervals

2014-10-31 Thread Sebastian Andrzej Siewior
On 10/31/2014 10:36 PM, Sebastian Andrzej Siewior wrote: diff --git a/drivers/usb/musb/musb_cppi41.c b/drivers/usb/musb/musb_cppi41.c index d16b7561cce4..355f0dac9f0f 100644 --- a/drivers/usb/musb/musb_cppi41.c +++ b/drivers/usb/musb/musb_cppi41.c @@ -212,7 +212,7 @@ static enum

Re: [PATCH 1/2] usb: musb: musb_cppi41: recognize HS devices in hostmode

2014-10-31 Thread Sergei Shtylyov
Hello. On 11/01/2014 12:36 AM, Sebastian Andrzej Siewior wrote: There is a poll loop for max 25us for HS devices. Now guess what, I tested it in gadget mode and forgot about the little detail. Nobody seem to have it noticed… This patch adds the missing logic for hostmode so it is recognized in

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

2014-10-31 Thread Aleksander Morgado
On Fri, Oct 3, 2014 at 10:01 AM, Erik Alapää erik.ala...@gmail.com wrote: 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