questions about uas

2015-06-08 Thread Tom Yan
Hi all! I have the following adapter: http://www.startech.com/HDD/Adapters/USB-3-SATA-adapter-cable-with-UASP~USB3S2SAT3CB which I am using it for: http://ark.intel.com/products/56604/Intel-SSD-X25-M-Series-80GB-2_5in-SATA-3Gbs-50nm-MLC and I can see in `lsusb`: Bus 002 Device 004: ID 174c:55aa

Re: UAS problem

2015-06-08 Thread James
Alan Stern writes: > > On Mon, 8 Jun 2015, Oliver Neukum wrote: > > A lot of resets with no reason. You need to enable debugging > > for the storage driver. > > A usbmon trace would be easier to read and just as good for debugging. > > Alan Stern I think I did the trace correctly. The gzippe

Re: [PATCH][V3] usb: isp1760: check for null return from kzalloc

2015-06-08 Thread Felipe Balbi
On Mon, Jun 08, 2015 at 02:22:06PM -0700, Greg Kroah-Hartman wrote: > On Wed, Jun 03, 2015 at 03:43:23AM +0300, Laurent Pinchart wrote: > > Hi Colin, > > > > Thank you for the patch. > > > > On Tuesday 02 June 2015 19:05:13 Colin King wrote: > > > From: Colin Ian King > > > > > > isp1760_ep_all

Re: Patch Request of option.c module to support Olicard-300 (2020:4000)

2015-06-08 Thread Greg KH
On Tue, Jun 09, 2015 at 01:14:30AM +0200, Joe wrote: > Greg KH wrote: > > > On Fri, Jun 05, 2015 at 12:58:59AM +0200, Joe wrote: > >> > >> I've also created a patch as follows: > >> - > >> $ diff -up linux/drivers/usb/serial/option.c{.orig,} > \ > >>

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

2015-06-08 Thread Li Jun
On Mon, Jun 08, 2015 at 11:06:49AM -0500, Rob Herring wrote: > On Mon, Jun 8, 2015 at 10:02 AM, Li Jun wrote: > > Add otg version, srp, hnp and adp support for usb OTG port, then those OTG > > features don't have to be decided by usb gadget drivers. > > > > Signed-off-by: Li Jun > > --- > > Docu

Locking issues w/ functionfs gadget and aio?

2015-06-08 Thread John Stultz
After setting up functionfs for adb w/ 4.1-rc7, I noticed some flakey behavior. I enabled some lock debugging and got the following: [ 91.648093] read strings [ 91.650264] g_ffs gadget: g_ffs ready [ 91.652551] ci_hdrc ci_hdrc.0: CI_HDRC_CONTROLLER_RESET_EVENT received [ 96.068693] BUG: sp

Re: Patch Request of option.c module to support Olicard-300 (2020:4000)

2015-06-08 Thread Joe
Greg KH wrote: > On Fri, Jun 05, 2015 at 12:58:59AM +0200, Joe wrote: >> >> I've also created a patch as follows: >> - >> $ diff -up linux/drivers/usb/serial/option.c{.orig,} > \ >> olivetti-olicard300-2020_4000.patch >> >> $ cat olivetti-

Re: [PATCH 1/4] Add usb interface authorization

2015-06-08 Thread Greg KH
On Mon, Jun 08, 2015 at 03:02:25PM -0700, Greg KH wrote: > On Mon, Jun 08, 2015 at 11:58:55PM +0200, Stefan Koch wrote: > > Am 08.06.2015 um 16:40 schrieb Greg KH: > > > On Mon, Jun 08, 2015 at 03:24:26PM +0200, Stefan Koch wrote: > > >> Hi > > >> > > >> This is a patch that introduces an interface

Re: [PATCH 4/4] Add usb interface authorization

2015-06-08 Thread Stefan Koch
Am 08.06.2015 um 16:40 schrieb Greg KH: > On Mon, Jun 08, 2015 at 03:24:26PM +0200, Stefan Koch wrote: >> Hi >> >> This is a patch that introduces an interface authorization for USB devices. >> >> The kernel supports already a device authorization bacause of wireless USB. >> >> But the new interfac

Re: [PATCH 3/4] Add usb interface authorization

2015-06-08 Thread Stefan Koch
Am 08.06.2015 um 16:40 schrieb Greg KH: > On Mon, Jun 08, 2015 at 03:24:26PM +0200, Stefan Koch wrote: >> Hi >> >> This is a patch that introduces an interface authorization for USB devices. >> >> The kernel supports already a device authorization bacause of wireless USB. >> >> But the new interfac

Re: [PATCH 2/4] Add usb interface authorization

2015-06-08 Thread Stefan Koch
Am 08.06.2015 um 16:40 schrieb Greg KH: > On Mon, Jun 08, 2015 at 03:24:26PM +0200, Stefan Koch wrote: >> Hi >> >> This is a patch that introduces an interface authorization for USB devices. >> >> The kernel supports already a device authorization bacause of wireless USB. >> >> But the new interfac

Re: [PATCH 1/4] Add usb interface authorization

2015-06-08 Thread Greg KH
On Mon, Jun 08, 2015 at 11:58:55PM +0200, Stefan Koch wrote: > Am 08.06.2015 um 16:40 schrieb Greg KH: > > On Mon, Jun 08, 2015 at 03:24:26PM +0200, Stefan Koch wrote: > >> Hi > >> > >> This is a patch that introduces an interface authorization for USB devices. > >> > >> The kernel supports already

Re: [PATCH 1/4] Add usb interface authorization

2015-06-08 Thread Stefan Koch
Am 08.06.2015 um 16:40 schrieb Greg KH: > On Mon, Jun 08, 2015 at 03:24:26PM +0200, Stefan Koch wrote: >> Hi >> >> This is a patch that introduces an interface authorization for USB devices. >> >> The kernel supports already a device authorization bacause of wireless USB. >> >> But the new interfac

Re: [PATCH] usb: buffer: fix 2 coding style issues

2015-06-08 Thread Greg KH
On Mon, Jun 01, 2015 at 11:13:00AM -0400, Kris Borer wrote: > Fixed two coding style issues: sizeof parens and newline after declaration > > Signed-off-by: Kris Borer > --- > drivers/usb/core/buffer.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Doesn't apply to my tree :( -- To un

Re: [PATCH v2 1/9] usb: xhci: cleanup xhci_hcd allocation

2015-06-08 Thread Greg KH
On Mon, Jun 01, 2015 at 10:39:57AM +0300, Mathias Nyman wrote: > From: Roger Quadros > > HCD core allocates memory for HCD private data in > usb_create_[shared_]hcd() so make use of that > mechanism to allocate the struct xhci_hcd. > > Introduce struct xhci_driver_overrides to provide > the size

Re: [PATCH][V3] usb: isp1760: check for null return from kzalloc

2015-06-08 Thread Greg Kroah-Hartman
On Wed, Jun 03, 2015 at 03:43:23AM +0300, Laurent Pinchart wrote: > Hi Colin, > > Thank you for the patch. > > On Tuesday 02 June 2015 19:05:13 Colin King wrote: > > From: Colin Ian King > > > > isp1760_ep_alloc_request allocates a structure with kzalloc without checking > > for NULL and then r

Re: Patch Request of option.c module to support Olicard-300 (2020:4000)

2015-06-08 Thread Greg KH
On Fri, Jun 05, 2015 at 12:58:59AM +0200, Joe wrote: > Hi all! > > I'm a simple linux user, not a developer, but I just > added a new record to source of "option" usb serial > module (option.c) to add support for a usb internet > dongle: Olivetti Olicard-300. > > Hope this is the right place to s

[PATCH v4 1/2] USB: io_ti: Fix Edgeport firmware download code

2015-06-08 Thread Peter E. Berger
From: "Peter E. Berger" The io_ti driver fails to download firmware to Edgeport devices such as the EP/416, even when the on-disk firmware image (/lib/firmware/edgeport/down3.bin) is more current than the version on the EP/416. The current download code is broken in a few ways. Notably it mis-us

[PATCH v4 2/2] USB: io_ti: Add heartbeat to keep idle Edgeport ports from disconnecting

2015-06-08 Thread Peter E. Berger
From: "Peter E. Berger" When using newer Edgeport devices such as the EP/416, idle ports are automatically bounced (disconnected and then reconnected) approximately every 60 seconds. This breaks programs (e.g: minicom) where idle periods are common, normal and expected. I confirmed with the man

[PATCH v4 0/2] Fix idle port disconnects and firmware downloading

2015-06-08 Thread Peter E. Berger
From: "Peter E. Berger" I found that when using newer Edgeport devices such as the EP/416, idle ports are regularly bounced (disconnected and then reconnected). I discussed this with the manufacturer (Digi International) and learned that some newer Edgeport devices now ship from the factory runni

Re: [PATCH v3 2/2] USB: io_ti: Fix Edgeport firmware download code

2015-06-08 Thread Peter Berger
On Fri, 2015-05-22 at 18:22 +0200, Johan Hovold wrote: > On Fri, May 15, 2015 at 12:09:54AM -0500, Peter E. Berger wrote: > > From: "Peter E. Berger" > > > > The io_ti driver fails to download firmware to Edgeport devices such > > as the EP/416, even when the on-disk firmware image > > (/lib/firm

Re: [PATCH v3 1/2] USB: io_ti: Add heartbeat to keep idle Edgeport ports from disconnecting

2015-06-08 Thread Peter Berger
On Fri, 2015-05-22 at 17:21 +0200, Johan Hovold wrote: > On Fri, May 15, 2015 at 12:09:53AM -0500, Peter E. Berger wrote: > > From: "Peter E. Berger" > > > > When using newer Edgeport devices such as the EP/416, idle ports are > > automatically bounced (disconnected and then reconnected) approxim

Re: [PATCH 00/21] On-demand device registration

2015-06-08 Thread Alexander Holler
Am 08.06.2015 um 20:14 schrieb Alexander Holler: Am 08.06.2015 um 14:26 schrieb Enrico Weigelt, metux IT consult: Am 04.06.2015 um 22:39 schrieb Alexander Holler: > As it seems to have been forgotten or overread, I've mentioned in my series of patches last year that, with a few changes, it's

Re: [PATCH 00/21] On-demand device registration

2015-06-08 Thread Alexander Holler
Am 08.06.2015 um 14:26 schrieb Enrico Weigelt, metux IT consult: Am 04.06.2015 um 22:39 schrieb Alexander Holler: > As it seems to have been forgotten or overread, I've mentioned in my series of patches last year that, with a few changes, it's possible to let the algorithm I've used (dfs) to s

Re: cdc-acm: use with Android Download Mode?

2015-06-08 Thread JPT
mh, I blacklisted cdc_acm. now it works: > kernel: [ 499.835320] usb 1-5.1: new high-speed USB device number 12 using > xhci_hcd > kernel: [ 499.923835] usb 1-5.1: New USB device found, idVendor=04e8, > idProduct=685d > kernel: [ 499.923837] usb 1-5.1: New USB device strings: Mfr=1, Product=

Re: Patch Request of option.c module to support Olicard-300 (2020:4000)

2015-06-08 Thread Jeremiah Mahler
Joe, On Mon, Jun 08, 2015 at 05:55:30PM +0200, Joe wrote: > Joe wrote: > [...] > > Is my message placed in right list to obtain support? > Could you confirm? > Your patch has a lot of problems and is not in the right format. But I am sure you could fix it up. Have a look at the video "Write

cdc-acm: use with Android Download Mode?

2015-06-08 Thread JPT
Hi, whenever I connect my Samsung Galaxy Express in Download Mode to my PC, the following happens: > kernel: [ 93.200732] usb 1-5.1: new high-speed USB device number 11 using > xhci_hcd > kernel: [ 93.289458] usb 1-5.1: New USB device found, idVendor=04e8, > idProduct=685d > kernel: [ 93.

Re: [PATCH] usb: gadget: nokia: Add mass storage driver to g_nokia

2015-06-08 Thread Felipe Balbi
On Mon, Jun 08, 2015 at 08:20:05AM +0200, Pali Rohár wrote: > This patch adds removable mass storage support to g_nokia gadget (for N900). > It means that at runtime block device can be exported or unexported. > So it does not export anything by default and thus allows to use MyDocs > partition as

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

2015-06-08 Thread Rob Herring
On Mon, Jun 8, 2015 at 10:02 AM, Li Jun wrote: > Add otg version, srp, hnp and adp support for usb OTG port, then those OTG > features don't have to be decided by usb gadget drivers. > > Signed-off-by: Li Jun > --- > Documentation/devicetree/bindings/usb/generic.txt | 10 ++ > 1 file cha

Re: Patch Request of option.c module to support Olicard-300 (2020:4000)

2015-06-08 Thread Joe
Joe wrote: > Hi all! > > I'm a simple linux user, not a developer, but I just > added a new record to source of "option" usb serial > module (option.c) to add support for a usb internet > dongle: Olivetti Olicard-300. > > Hope this is the right place to submit my changes so > that kernel develop

Re: [PATCH v4 1/2] usb: ehci-exynos: Make provision for vdd regulators

2015-06-08 Thread Alan Stern
On Mon, 8 Jun 2015, Vivek Gautam wrote: > Facilitate getting required 3.3V and 1.0V VDD supply for > EHCI controller on Exynos. > > For example, patches for regulators' nodes: > c8c253f ARM: dts: Add regulator entries to smdk5420 > 275dcd2 ARM: dts: add max77686 pmic node for smdk5250, > enable o

[PATCH v2 21/22] usb: gadget: serial: init usb_otg_descriptor via usb_otg_descriptor_add

2015-06-08 Thread Li Jun
Use usb_otg_descriptor_add to allocate and initialize usb_otg_descriptor, free it while composite unbind. Signed-off-by: Li Jun --- drivers/usb/gadget/legacy/serial.c | 26 -- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/drivers/usb/gadget/legacy/serial

[PATCH v2 19/22] usb: gadget: ncm: init usb_otg_descriptor via usb_otg_descriptor_add

2015-06-08 Thread Li Jun
Use usb_otg_descriptor_add to allocate and initialize usb_otg_descriptor, free it while composite unbind. Signed-off-by: Li Jun --- drivers/usb/gadget/legacy/ncm.c | 25 +++-- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/drivers/usb/gadget/legacy/ncm.c b/dr

[PATCH v2 17/22] usb: gadget: mass_storage: init usb_otg_descriptor via usb_otg_descriptor_add

2015-06-08 Thread Li Jun
Use usb_otg_descriptor_add to allocate and initialize usb_otg_descriptor, free it while composite unbind. Signed-off-by: Li Jun --- drivers/usb/gadget/legacy/mass_storage.c | 26 +++--- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/drivers/usb/gadget/legacy/

[PATCH v2 20/22] usb: gadget: printer: init usb_otg_descriptor via usb_otg_descriptor_add

2015-06-08 Thread Li Jun
Use usb_otg_descriptor_add to allocate and initialize usb_otg_descriptor, free it while composite unbind. Signed-off-by: Li Jun --- drivers/usb/gadget/legacy/printer.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/usb/gadget/legacy/printer.c

[PATCH v2 16/22] usb: gadget: hid: init usb_otg_descriptor via usb_otg_descriptor_add

2015-06-08 Thread Li Jun
Use usb_otg_descriptor_add to allocate and initialize usb_otg_descriptor, free it while composite unbind. Signed-off-by: Li Jun --- drivers/usb/gadget/legacy/hid.c | 27 --- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/drivers/usb/gadget/legacy/hid.c b/

[PATCH v2 18/22] usb: gadget: multi: init usb_otg_descriptor via usb_otg_descriptor_add

2015-06-08 Thread Li Jun
Use usb_otg_descriptor_add to allocate and initialize usb_otg_descriptor, free it while composite unbind. Signed-off-by: Li Jun --- drivers/usb/gadget/legacy/multi.c | 33 ++--- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/drivers/usb/gadget/legacy/

[PATCH v2 22/22] usb: gadget: zero: init usb_otg_descriptor via usb_otg_descriptor_add

2015-06-08 Thread Li Jun
Use usb_otg_descriptor_add to allocate and initialize usb_otg_descriptor, free it while composite unbind. Signed-off-by: Li Jun --- drivers/usb/gadget/legacy/zero.c | 25 +++-- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/drivers/usb/gadget/legacy/zero.c b/

[PATCH v2 15/22] usb: gadget: g_ffs: init usb_otg_descriptor via usb_otg_descriptor_add

2015-06-08 Thread Li Jun
Use usb_otg_descriptor_add to allocate and initialize usb_otg_descriptor, free it while composite unbind. Signed-off-by: Li Jun --- drivers/usb/gadget/legacy/g_ffs.c | 26 +++--- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/drivers/usb/gadget/legacy/g_ffs.c

[PATCH v2 10/22] usb: gadget: configfs: init and add usb_otg_descriptor for usb configurations

2015-06-08 Thread Li Jun
Use usb_otg_descriptor_add to allocate and initialize usb_otg_descriptor, add it for each usb configurations, free it while composite unbind. Signed-off-by: Li Jun --- drivers/usb/gadget/configfs.c | 26 +- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/dr

[PATCH v2 14/22] usb: gadget: cdc2: init usb_otg_descriptor via usb_otg_descriptor_add

2015-06-08 Thread Li Jun
Use usb_otg_descriptor_add to allocate and initialize usb_otg_descriptor, free it while composite unbind. Signed-off-by: Li Jun --- drivers/usb/gadget/legacy/cdc2.c | 26 +++--- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/drivers/usb/gadget/legacy/cdc2.c b

[PATCH v2 12/22] usb: gadget: acm_ms: init usb_otg_descriptor via usb_otg_descriptor_add

2015-06-08 Thread Li Jun
Use usb_otg_descriptor_add to allocate and initialize usb_otg_descriptor, free it while composite unbind. Signed-off-by: Li Jun --- drivers/usb/gadget/legacy/acm_ms.c | 26 +++--- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/drivers/usb/gadget/legacy/acm_ms

[PATCH v2 13/22] usb: gadget: audio: init usb_otg_descriptor via usb_otg_descriptor_add

2015-06-08 Thread Li Jun
Use usb_otg_descriptor_add to allocate and initialize usb_otg_descriptor, free it while composite unbind. Signed-off-by: Li Jun --- drivers/usb/gadget/legacy/audio.c | 25 +++-- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/drivers/usb/gadget/legacy/audio.c

[PATCH v2 11/22] usb: gadget: ether: init usb_otg_descriptor via usb_otg_descriptor_add

2015-06-08 Thread Li Jun
Use usb_otg_descriptor_add to allocate and initialize usb_otg_descriptor, free it while composite unbind. Signed-off-by: Li Jun --- drivers/usb/gadget/legacy/ether.c | 32 ++-- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/drivers/usb/gadget/legacy/e

[PATCH v2 09/22] usb: gadget: add usb_otg_descriptor_add interface to init usb_otg_descriptor

2015-06-08 Thread Li Jun
Allocate usb_otg_descriptor and initialize it according to gadget otg options, if none of options is not set, keep bmAttributes setting as current gadget drivers, with this new interface, usb_otg_descriptor can include bcdOTG if OTG 2.0 or later, and otg features can be decided by the combination o

[PATCH v2 02/22] usb: add USB_OTG_ADP definition

2015-06-08 Thread Li Jun
From: Macpaul Lin Add USB_OTG_ADP definition for usb_otg_descriptor.bmAttributes. Signed-off-by: Macpaul Lin Signed-off-by: Li Jun Acked-by: Peter Chen --- include/uapi/linux/usb/ch9.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/usb/ch9.h b/include/uapi/linux/usb/c

[PATCH v2 06/22] usb: common: add API to get usb otg features from device tree

2015-06-08 Thread Li Jun
Check property of usb hardware to get otg version and if SRP, HNP and ADP are supported. Signed-off-by: Li Jun --- drivers/usb/common/common.c | 64 + include/linux/usb/of.h | 20 ++ 2 files changed, 84 insertions(+) diff --git a/driv

[PATCH v2 07/22] usb: chipidea: udc: set usb gadeget's otg config

2015-06-08 Thread Li Jun
Set gadget's otg features according to controller's capability and usb property in device tree. Signed-off-by: Li Jun --- drivers/usb/chipidea/core.c | 16 drivers/usb/chipidea/udc.c | 20 +++- include/linux/usb/chipidea.h | 4 3 files changed, 39 insert

[PATCH v2 03/22] usb: add OTG feature options to gadget structure.

2015-06-08 Thread Li Jun
From: Macpaul Lin Add ADP, HNP and SRP feature options and otg version to gadget structure. Signed-off-by: Macpaul Lin Signed-off-by: Li Jun --- include/linux/usb/gadget.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h

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

2015-06-08 Thread Li Jun
Add otg version, srp, hnp and adp support for usb OTG port, then those OTG features don't have to be decided by usb gadget drivers. Signed-off-by: Li Jun --- Documentation/devicetree/bindings/usb/generic.txt | 10 ++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree

[PATCH v2 04/22] usb: gadget: composite: add USB_DT_OTG request handling

2015-06-08 Thread Li Jun
From: Macpaul Lin Copy usb_otg_descriptor from config's descriptor if host requests USB_DT_OTG. Signed-off-by: Macpaul Lin Signed-off-by: Li Jun --- drivers/usb/gadget/composite.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/usb/gadget/composite.c b/drive

[PATCH v2 08/22] usb: chipidea: update ci_otg_is_fsm_mode conditions

2015-06-08 Thread Li Jun
After introduce usb otg properties, update ci_otg_is_fsm_mode conditions to be depending on both usb hardware properties and usb driver config, also resolve a compile issue in debug.c after the API change. Signed-off-by: Li Jun --- drivers/usb/chipidea/ci.h| 3 ++- drivers/usb/chipidea/debug

[PATCH v2 00/22] usb gadget update for OTG 2.0

2015-06-08 Thread Li Jun
Changes for v2: - Use zero-length array as Peter Chen suggested to support usb_otg_descriptors with different size. - Add a new property otg-rev to specify the OTG release number with which the device is compliant. - Add a new interfate usb_otg_descriptor_add() to allocate and init usb_otg_des

[PATCH v2 01/22] usb: add OTG version number in usb_otg_descriptor

2015-06-08 Thread Li Jun
From: Macpaul Lin OTG 2.0 introduces bcdOTG to identify the OTG and EH supplement release number with which the OTG device is compliant, so adds it for usb_otg_descriptor. Signed-off-by: Macpaul Lin Signed-off-by: Li Jun --- include/uapi/linux/usb/ch9.h | 6 +- 1 file changed, 5 insertion

Re: [PATCH] Add usb interface authorization

2015-06-08 Thread Greg KH
On Mon, Jun 08, 2015 at 03:24:26PM +0200, Stefan Koch wrote: > Hi > > This is a patch that introduces an interface authorization for USB devices. > > The kernel supports already a device authorization bacause of wireless USB. > > But the new interface authorization allows to enable or disable in

Re: UAS problem

2015-06-08 Thread Alan Stern
On Mon, 8 Jun 2015, Oliver Neukum wrote: > On Sun, 2015-06-07 at 12:13 +, James wrote: > > > [ 142.892218] EXT4-fs (sde1): mounted filesystem with ordered data > > mode. > > Opts: (null)] > > > > cp to drive > > drop is next > > > > [ 234.054404] usb 3-1: reset SuperSpeed USB device numbe

[PATCH] Add usb interface authorization

2015-06-08 Thread Stefan Koch
Hi This is a patch that introduces an interface authorization for USB devices. The kernel supports already a device authorization bacause of wireless USB. But the new interface authorization allows to enable or disable individual interfaces per bitmask instead allow or deny a whole device. As

Re: [RESEND 1/2] usb: ehci-exynos: Make provision for vdd regulators

2015-06-08 Thread Krzysztof Kozlowski
W dniu 08.06.2015 o 19:20, Anand Moon pisze: > On 8 June 2015 at 10:58, Vivek Gautam wrote: >> Hi, >> (...) >> >> On Monday, June 08, 2015 10:44 AM, "Krzysztof Kozlowski" >> wrote: >> >>> Untested code should not go to the kernel. Additionally you should >>> mark it as not-tested. Marking such

Re: [PATCH V3 1/2] usb: gadget: f_mass_storage: stop thread in bind failure case

2015-06-08 Thread Michal Nazarewicz
On Mon, Jun 08 2015, Sanjay Singh Rawat wrote: > After the worker thread is launched, bind function is doing further > configuration. In case of failure stop the thread. > > Signed-off-by: Sanjay Singh Rawat > Acked-by: Michal Nazarewicz I must say, I’m starting to have second thoughts about thi

Re: [PATCH 00/21] On-demand device registration

2015-06-08 Thread Enrico Weigelt, metux IT consult
Am 04.06.2015 um 22:39 schrieb Alexander Holler: > As it seems to have been forgotten or overread, I've mentioned in my series of patches last year that, with a few changes, it's possible to let the algorithm I've used (dfs) to spit out all drivers which can be initialized in parallel. Unfortu

Re: [ehci-orion] ETIMEOUT with ehci_setup()'s ehci_halt()

2015-06-08 Thread Valentin Longchamp
On 06/06/2015 02:17 PM, Sebastian Hesselbarth wrote: > On 05.06.2015 17:19, Andrew Lunn wrote: >> On Fri, Jun 05, 2015 at 04:34:54PM +0200, Valentin Longchamp wrote: >>> I am currently bringing up the USB 2.0 Host controller of the Bobcat's >>> (98DX4122 >>> Marvell switch) internal kirkwood CPU o

[PATCH V3 2/2] usb: gadget: mass-storage: defer storage thread wakeup

2015-06-08 Thread Sanjay Singh Rawat
As the configuration is not complete at the time of thread creation, defering the file-storage thread wakeup till the end. Also stop the thread in case of failure during configuration. Signed-off-by: Sanjay Singh Rawat --- drivers/usb/gadget/function/f_mass_storage.c | 75 ++-

[PATCH V3 0/2] usb: gadget: mass-storage: handle thread in error case

2015-06-08 Thread Sanjay Singh Rawat
History: v2: - Handled review comment from Michal. - Merged v2 patch-2/3/4 to make patch-2. - Added acked-by from Michal to patch-1. v1: - Handled review comments from Michal. - updated patch-2 : added thread wake in legacy client of function (patch-2). - added patch-4 : fr

[PATCH V3 1/2] usb: gadget: f_mass_storage: stop thread in bind failure case

2015-06-08 Thread Sanjay Singh Rawat
After the worker thread is launched, bind function is doing further configuration. In case of failure stop the thread. Signed-off-by: Sanjay Singh Rawat Acked-by: Michal Nazarewicz --- drivers/usb/gadget/function/f_mass_storage.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) dif

[PATCH v4 1/2] usb: ehci-exynos: Make provision for vdd regulators

2015-06-08 Thread Vivek Gautam
Facilitate getting required 3.3V and 1.0V VDD supply for EHCI controller on Exynos. For example, patches for regulators' nodes: c8c253f ARM: dts: Add regulator entries to smdk5420 275dcd2 ARM: dts: add max77686 pmic node for smdk5250, enable only minimum number of regulators on smdk5250. So ensur

[PATCH v4 2/2] usb: ohci-exynos: Make provision for vdd regulators

2015-06-08 Thread Vivek Gautam
Facilitate getting required 3.3V and 1.0V VDD supply for OHCI controller on Exynos. For example, patches for regulators' nodes: c8c253f ARM: dts: Add regulator entries to smdk5420 275dcd2 ARM: dts: add max77686 pmic node for smdk5250, enable only minimum number of regulators on smdk5250. So ensur

Re: [PATCH v2 3/4] usb: gadget: move common storage gadget structure to header file

2015-06-08 Thread snjsrwt
On 6/8/2015 4:13 PM, Michal Nazarewicz wrote: On Mon, Jun 08 2015, snjsrwt wrote: On 6/8/2015 1:33 PM, Michal Nazarewicz wrote: On Mon, Jun 08 2015, Sanjay Singh Rawat wrote: struct fsg_common is used in multiple files, moving it to header file from the source file. Isn’t this patch a prere

Data loss with usb dvb tuners that is "fixed" by spinning a cpu - how to debug?

2015-06-08 Thread Andy Furniss
Hi I recently set up a Asrock Q1900DC-itx Intel baytrail board as a router/nas/pvr. It has 2 usb dvb T/T2 tuners attached - pctv 290e and 292e. When running them I am getting lost dvb packets which are detected as lost via dvbs continuity counters. Have tried 3.18.14, and today 4.1.0-rc7 both ha

Re: [RESEND 1/2] usb: ehci-exynos: Make provision for vdd regulators

2015-06-08 Thread Vivek Gautam
Hi, On Monday, June 08, 2015 3:50 PM, "Anand Moon" On 8 June 2015 at 10:58, Vivek Gautam wrote: Hi, On Monday, June 08, 2015 10:44 AM, "Krzysztof Kozlowski" wrote: my apologies for being late in replying to this thread. 2015-06-08 13:21 GMT+09:00 Anand Moon : Hi Krzysztof , On 8 J

Re: [PATCH v2 3/4] usb: gadget: move common storage gadget structure to header file

2015-06-08 Thread Michal Nazarewicz
On Mon, Jun 08 2015, snjsrwt wrote: > On 6/8/2015 1:33 PM, Michal Nazarewicz wrote: >> On Mon, Jun 08 2015, Sanjay Singh Rawat wrote: >>> struct fsg_common is used in multiple files, moving it to header >>> file from the source file. >> Isn’t this patch a prerequisit for the previous patch? Just m

Re: [RESEND 1/2] usb: ehci-exynos: Make provision for vdd regulators

2015-06-08 Thread Anand Moon
On 8 June 2015 at 10:58, Vivek Gautam wrote: > Hi, > > > > On Monday, June 08, 2015 10:44 AM, "Krzysztof Kozlowski" > wrote: > > my apologies for being late in replying to this thread. > >> 2015-06-08 13:21 GMT+09:00 Anand Moon : >>> >>> Hi Krzysztof , >>> >>> On 8 June 2015 at 07:40, Krzysztof K

Re: [RESEND 1/2] usb: ehci-exynos: Make provision for vdd regulators

2015-06-08 Thread Vivek Gautam
-- From: "Krzysztof Kozlowski" Sent: Monday, June 08, 2015 7:40 AM To: "Anand Moon" ; "Rob Herring" ; "Pawel Moll" ; "Mark Rutland" ; "Ian Campbell" ; "Kumar Gala" ; "Kukjin Kim" ; "Alan Stern" ; "Greg Kroah-Hartman" ; "Vivek Gautam" ; "Feli

Re: [RESEND 1/2] usb: ehci-exynos: Make provision for vdd regulators

2015-06-08 Thread Vivek Gautam
Hi, On Monday, June 08, 2015 10:44 AM, "Krzysztof Kozlowski" wrote: my apologies for being late in replying to this thread. 2015-06-08 13:21 GMT+09:00 Anand Moon : Hi Krzysztof , On 8 June 2015 at 07:40, Krzysztof Kozlowski wrote: On 07.06.2015 22:20, Anand Moon wrote: Facilitate ge

Re: [PATCH v2 3/4] usb: gadget: move common storage gadget structure to header file

2015-06-08 Thread snjsrwt
On 6/8/2015 1:33 PM, Michal Nazarewicz wrote: On Mon, Jun 08 2015, Sanjay Singh Rawat wrote: struct fsg_common is used in multiple files, moving it to header file from the source file. Isn’t this patch a prerequisit for the previous patch? Just merge them together. Yes right, actually patc

Re: UAS problem

2015-06-08 Thread Oliver Neukum
On Sun, 2015-06-07 at 12:13 +, James wrote: > [ 142.892218] EXT4-fs (sde1): mounted filesystem with ordered data > mode. > Opts: (null)] > > cp to drive > drop is next > > [ 234.054404] usb 3-1: reset SuperSpeed USB device number 2 using > xhci_hcd > [ 234.357368] usb 3-1: reset SuperSpee

Re: [PATCH v2 5/6] USB: bcma: add bcm53xx support

2015-06-08 Thread Rafał Miłecki
On 8 June 2015 at 10:24, Rafał Miłecki wrote: > On 2 June 2015 at 21:35, Hauke Mehrtens wrote: >> @@ -159,6 +160,55 @@ static void bcma_hcd_init_chip(struct bcma_device *dev) >> } >> } >> >> +static void bcma_hcd_init_chip_arm(struct bcma_device *dev) >> +{ >> + struct bcma_device

Re: [PATCH v3 3/3] usb: phy: hold wakeupsource when USB is enumerated in peripheral mode

2015-06-08 Thread Peter Chen
On Mon, Jun 08, 2015 at 12:37:00PM +0530, Sumit Semwal wrote: > H Peter, Felipe, > > On 14 January 2015 at 06:56, Peter Chen wrote: > > On Tue, Jan 13, 2015 at 10:18:02AM -0600, Felipe Balbi wrote: > >> On Tue, Jan 13, 2015 at 04:02:20PM +0530, Kiran Raparthy wrote: > >> > Hi Felipe, > >> > > >>

Re: [PATCH v2 5/6] USB: bcma: add bcm53xx support

2015-06-08 Thread Rafał Miłecki
On 2 June 2015 at 21:35, Hauke Mehrtens wrote: > @@ -159,6 +160,55 @@ static void bcma_hcd_init_chip(struct bcma_device *dev) > } > } > > +static void bcma_hcd_init_chip_arm(struct bcma_device *dev) > +{ > + struct bcma_device *arm_core; > + void __iomem *dmu; > + u32 va

xHCI communication problem between VIA 3483 USB 3.0 host controller and Fujitsu ScanSnap ix500

2015-06-08 Thread Bjoern Voigt
(I already posted this bug report here: https://bugzilla.kernel.org/show_bug.cgi?id=99561) The communication between an USB 3.0 controller (VIA 3483 chip) and a USB 3.0 scanner Fujitsu ScanSnap ix500 scanner is very unreliable. The device could be used only once. After one command/action the sc

Re: [PATCH v2 1/4] usb: gadget: f_mass_storage: stop thread in bind failure case

2015-06-08 Thread Michal Nazarewicz
On Mon, Jun 08 2015, Sanjay Singh Rawat wrote: > After the worker thread is launched, bind function is doing further > configuration. In case of failure stop the thread. > > Signed-off-by: Sanjay Singh Rawat Acked-by: Michal Nazarewicz > --- > drivers/usb/gadget/function/f_mass_storage.c | 7 +

Re: [PATCH v2 3/4] usb: gadget: move common storage gadget structure to header file

2015-06-08 Thread Michal Nazarewicz
On Mon, Jun 08 2015, Sanjay Singh Rawat wrote: > struct fsg_common is used in multiple files, moving it to header > file from the source file. Isn’t this patch a prerequisit for the previous patch? Just merge them together. > Signed-off-by: Sanjay Singh Rawat > --- > drivers/usb/gadget/functio

Re: [PATCH v3 3/3] usb: phy: hold wakeupsource when USB is enumerated in peripheral mode

2015-06-08 Thread Sumit Semwal
H Peter, Felipe, On 14 January 2015 at 06:56, Peter Chen wrote: > On Tue, Jan 13, 2015 at 10:18:02AM -0600, Felipe Balbi wrote: >> On Tue, Jan 13, 2015 at 04:02:20PM +0530, Kiran Raparthy wrote: >> > Hi Felipe, >> > >> > On 1 December 2014 at 11:09, Kiran Raparthy wrote: >> > > Hi Felipe, >> > >

Re: [RESEND 1/2] usb: ehci-exynos: Make provision for vdd regulators

2015-06-08 Thread Javier Martinez Canillas
Hello Krzysztof, On Mon, Jun 8, 2015 at 8:52 AM, Krzysztof Kozlowski wrote: > 2015-06-08 15:42 GMT+09:00 Javier Martinez Canillas : >> Hello, >> >> On Mon, Jun 8, 2015 at 7:14 AM, Krzysztof Kozlowski >> wrote: >> >> [...] >> >>> >>> To summarize my point of view: >>> 1. Unless Vivek's says other