[PATCH 1/1] usb: gadget: udc: fix free_irq() after request_irq() failed

2015-06-14 Thread Takeshi Yoshimura
My static checker detected the mistake. I fix this by changing "goto err_irq" to "goto err_req". The label err_irq is not used now so this patch also removes it. Signed-off-by: Takeshi Yoshimura --- drivers/usb/gadget/udc/fotg210-udc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) dif

Re: questions about uas

2015-06-14 Thread Tom Yan
So I did some further investigation on the weird optimal i/o size I got from my usb3/sata adapter/ssd, started by grep'ing the size in the /sys/block/sdx/queue: [tom@localhost ~]$ grep 33553920 /sys/block/sdb/queue/* grep: /sys/block/sdb/queue/iosched: Is a directory /sys/block/sdb/queue/optimal_i

[PATCH -next] usb: dwc3: Remove unprintable characters from Kconfig

2015-06-14 Thread Guenter Roeck
Fix: drivers/usb/dwc3/Kconfig:16:warning: ignoring unsupported character '�' drivers/usb/dwc3/Kconfig:16:warning: ignoring unsupported character '�' Fixes: 88bc9d194ff6 ("usb: dwc3: add ULPI interface support") Cc: Heikki Krogerus Signed-off-by: Guenter Roeck --- drivers/usb/dwc3/Kconfig | 2 +

TRIM/DISCARD for usb drives?

2015-06-14 Thread Tom Yan
I have a SanDisk Extreme USB Flash Drive (http://www.sandisk.com/products/usb/drives/extreme/), which does NOT support UASP so is running under "usb-storage". According to `hdparm`, it seems to supports TRIM; and according to `sg3_opcodes`, it seems to support ATA Pass-Through (12/16). However, al

Fwd: [PATCH] net:usb:cdc_ncm: fix that tag Huawei devices as wwan

2015-06-14 Thread Linus Torvalds
Hmm. Oliver is marked as the maintainer of the USB CDC code, but others have touched it more recently. So I'm just wildly adding people to the cc to comment on this patch and maybe apply it. Oliver/David/Ben/Bjørn? Linus -- Forwarded message -- From: xiaomao Date

Re: [PATCH v5 2/7] phy-sun4i-usb: Add extcon support for the otg phy (phy0)

2015-06-14 Thread Chanwoo Choi
Hi Hans, On Sat, Jun 13, 2015 at 9:37 PM, Hans de Goede wrote: > The sunxi musb glue needs to know if a host or normal usb cable is plugged > in, add extcon support so that the musb glue can monitor the host status. > > Signed-off-by: Hans de Goede > --- > Changes in v5: > -Split out of the "Add

RE: phy: phy-mxs-usb: suspend to RAM causes NULL pointer dereference

2015-06-14 Thread Peter Chen
> Subject: usb: phy: phy-mxs-usb: suspend to RAM causes NULL pointer > dereference > > Hi, > > triggering suspend to RAM via sysfs on a i.MX28 causes a NULL pointer > dereference. This regression seems to be introduced with commit > efdbd3a5d6e > ("usb: phy: mxs: do not set PWD.RXPWD1PT1 for lo

[PATCH V2 1/1] usb:serial:f81534 Add F81532/534 Driver

2015-06-14 Thread Peter Hung
This driver is for Fintek F81532/F81534 USB to Serial Ports IC. Features: 1. F81534 is 1-to-4 & F81532 is 1-to-2 serial ports IC 2. Support Baudrate from B50 to B150 (excluding B100). 3. The RTS signal can be transformed their behavior with configuration for transceiver (for RS232/RS485

Re: [PATCH v2 1/1] usb: core: lpm: set lpm_capable for root hub device

2015-06-14 Thread Lu, Baolu
On 06/13/2015 11:00 PM, Alan Stern wrote: On Sat, 13 Jun 2015, Lu Baolu wrote: Commit 25cd2882e2fc ("usb/xhci: Change how we indicate a host supports Link PM.") removed the code to set lpm_capable for USB 3.0 super-speed root hub. The intention of that change was to avoid touching usb core in

[PATCH v3 1/1] usb: core: lpm: set lpm_capable for root hub device

2015-06-14 Thread Lu Baolu
Commit 25cd2882e2fc ("usb/xhci: Change how we indicate a host supports Link PM.") removed the code to set lpm_capable for USB 3.0 super-speed root hub. The intention of that change was to avoid touching usb core internal field, a.k.a. lpm_capable, and let usb core to set it by checking U1 and U2 ex

Re: [Patch V2 1/3] usb: Add Xen pvUSB protocol description

2015-06-14 Thread Juergen Gross
On 06/12/2015 06:23 PM, Greg KH wrote: On Fri, Jun 12, 2015 at 04:09:59PM +0200, Juergen Gross wrote: +enum usb_spec_version { + USB_VER_UNKNOWN = 0, + USB_VER_USB11, + USB_VER_USB20, + USB_VER_USB30, /* not supported yet */ +}; + You are defining a bunch of things in

Re: [Xen-devel] [Patch V2 2/3] usb: Introduce Xen pvUSB frontend

2015-06-14 Thread Juergen Gross
On 06/12/2015 06:20 PM, Greg KH wrote: On Fri, Jun 12, 2015 at 04:10:00PM +0200, Juergen Gross wrote: Introduces the Xen pvUSB frontend. With pvUSB it is possible for a Xen domU to communicate with a USB device assigned to that domU. The communication is all done via the pvUSB backend in a drive

[PATCH] phy: phy-mxs-usb: suspend to RAM causes NULL pointer dereference

2015-06-14 Thread Stefan Wahren
Triggering suspend to RAM via sysfs on a i.MX28 causes a NULL pointer dereference. This patch avoids the oops in mxs_phy_get_vbus_status() by aborting since there is no syscon available. Signed-off-by: Stefan Wahren Fixes: efdbd3a5d6e ("usb: phy: mxs: do not set PWD.RXPWD1PT1 for low speed conne

Re: [PATCH v5 0/7] phy-sun4i-usb: Add OTG and newer SoC support

2015-06-14 Thread Kishon Vijay Abraham I
Hi, On Saturday 13 June 2015 06:07 PM, Hans de Goede wrote: Hi Kishon, Here is a patch series with all my oustanding phy-sun4i-usb changes pending for merging into 4.3. This includes the 5th iteration of the OTG support addition, now with the extcon provider support addition split-out into a n

Re: [PATCH RESENT] phy: tusb1210: make better use of gpiod API

2015-06-14 Thread Kishon Vijay Abraham I
Hi, On Friday 12 June 2015 11:21 PM, Uwe Kleine-König wrote: Since 39b2bbe3d715 (gpio: add flags argument to gpiod_get*() functions) which appeared in v3.17-rc1, the gpiod_get* functions take an additional parameter that allows to specify direction and initial value for output. Furthermore ther

Re: [PATCH v2 05/22] doc: dt-binding: usb: add otg related properties

2015-06-14 Thread Li Jun
On Fri, Jun 12, 2015 at 11:31:02AM +0300, Roger Quadros wrote: > > > On Fri, 12 Jun 2015 11:09:17 +0800 > Li Jun wrote: > [...] > > Other than those new flags, I have not found other good way to judge > > whether some platform is a legacy one. > > Directly use dt property? Then above code has