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 unplug

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 : > Hi Enric > > On Wed, Oct 29, 2014 at 1:44 PM, Enric Balletbo Serra > wrote: >> >> Hi all, >> >> 2014-10-26 10:10 GMT+01:00 Angelo Dureghello : >> > Had some progresses: >> > >> > on kernel 3.17, musb controller driver is set to start as OTG

[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 device

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 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 > Reviewed-by: Stephen Warren > --- > Changes f

[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 --- 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 ff54098..670279a 100644 --

[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 before

[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 --- drivers/net/usb/r8152.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r

[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 --- 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 f116335..ff54098 10

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 th

[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 Szyprowsk

[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 --- drivers/usb/dwc2/core.h | 1 + drivers/usb/dwc2/gadget.c | 20 2 files changed, 21 insertions(+) diff --git a/drivers/

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 > wrote: > > On Wed, Oct 29, 2014 at 12:43:36PM -0700, Andrew Bresticker wrote: > >> >> diff --git a/drivers/pinctrl/pinctrl-tegra-xusb.c > >> >> b/drivers/pinctrl/pinctrl-tegra-xu

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 te

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 > 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 > >> wrote: > >> > On Wed, Oct 29, 2014 at 09:

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 Reviewed-by: Johan H

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 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 > Tested-by: Vivek Gautam > --- > Documentation/phy.txt | 66 ++

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: drivers/usb/gadget/function/u_ua

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 Shimod

[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 them.

[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 v6:

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, > > >

[PATCH] uas: Add US_FL_NO_ATA_1X quirk for 1 more Seagate model

2014-10-31 Thread Hans de Goede
These drives hang when receiving ATA12 commands, so set the US_FL_NO_ATA_1X quirk to filter these out. Cc: sta...@vger.kernel.org # 3.16 Signed-off-by: Hans de Goede --- drivers/usb/storage/unusual_uas.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/usb/storage/unusual_uas.h

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 > > 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() before it calls usb_ep_enable

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

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 > > > >Adds the gadget data structure and appropriate data structure pointers > >to the common dwc2_hsotg data structure. To keep the driver da

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 > > > >Since the dwc2 hcd driver is currently not looking for a clock node during > >init, we should not completely fail if there isn't a c

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 plac

[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 --- drivers/usb/dwc2/hcd.c | 74 ++ 1 file changed, 63 insertions(+), 11 deletions(-) diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c index fa49c72..df

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 > > > > > > > > > >

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 se

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 = dma_s

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

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]: http://git.kernel.org/cgit/linux/ker

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. drivers/usb/gadget/function/u_uac1.c 210 211 opts = container_of(card->func.fi, struct f_uac1

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 Fri

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 >> >> This patch will aggregate the probing of gadget/hcd driver into >> platform.c. The gadget probe

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 >> >> Make dwc2_handle_common_intr call the gadget interrupt function >> when operating in p

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 >> >> Update the dwc2 wakeup and suspend interrupt functions to use >> call_gadget when the IP is in

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 >> >> Adds the gadget data structure and appropriate data structure >> pointers to the common dwc2_hs

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 >> >> Since the dwc2 hcd driver is currently not looking for a clock node during >> init, we should not completely fail if there isn't a cl

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 : > 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 > --- > > drivers/usb/dwc2/

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 > > dm

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 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 >> wrote: >> > On Thu, Oct 30, 2014 at 10:19:21AM -0700, Andrew Bresticker wrote: >> >> On Thu, Oct 30, 2014 at 6:55 AM,

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 wrote: > On Tue, Oct 28, 2014 at 11:27 PM, Andrew Bresticker > 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: And

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: >> >>

[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 unus

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 act

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 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. > > You might also b

[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 Signed-off-by: Adel Gadllah --- drivers/hid/hid-ids.h | 1 + drivers/hid/usbhid/hid-quirks.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index e23ab8b..7c

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 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 > > >

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(h

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

2014-10-31 Thread David Miller
From: Hayes Wang 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; > cleaning up", if the dr

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 s

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 > --- > > 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] us

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 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. >> -- Ad

[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 p

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 testin

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 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 (or so)

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 > --- > drivers/usb/dwc2/core.h |

[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 obviou

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 sho

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-

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) > } >

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 > > > > Make dwc2_handle_common_intr call the gadget interrupt function when > > operating > > in per

[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 --- Changes for v2: - Includes all the feedback provided by Felipe on the v1. - Removed unnece

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 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 > --- > drivers/net/usb/r8152.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers

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 Sie

[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 shoul

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 hrtimer_r

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ää 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 commands, cdc-wdm >

PATCH : add support for HuiJia USB Gamepad connector (0e8f:1006 and 0e8f:3010)

2014-10-31 Thread Prédhomme Philippe
Create each gamepad as a separate joystick Both device (1006 is for Sega Saturn controllers, 3010 is for Sony Playstation 1/2 controllers) work the same as 0e8f:3013 (which is for Nintendo 64 controllers), so i used this device as reference to make my patch. Work with kernel 3.14, 3.15, 3.16, 3.17.