Re: [PATCH v3 07/22] usb: chipidea: set usb gadeget's otg config

2015-06-17 Thread Roger Quadros
On Tue, 16 Jun 2015 17:21:50 +0800 Li Jun wrote: > On Tue, Jun 16, 2015 at 11:44:52AM +0300, Roger Quadros wrote: > > > > On Tue, 16 Jun 2015 14:51:57 +0800 > > Li Jun wrote: > > > > > Set gadget's otg features according to controller's capability and usb > > > property in device tree. > > >

Re: [PATCH v4 03/23] usb: otg: add usb_otg_caps structure for otg capabilities

2015-06-17 Thread Roger Quadros
On Wed, 17 Jun 2015 13:43:35 +0800 Li Jun wrote: > This patch adds a structure usb_otg_caps to cover all otg related > capabilities of the device, including otg revision, and if hnp/srp/adp > is supported. > > Signed-off-by: Li Jun Reviewed-by: Roger Quadros cheers, -roger > --- > include

Re: [PATCH v4 04/23] usb: add usb_otg_caps to usb_gadget structure.

2015-06-17 Thread Roger Quadros
On Wed, 17 Jun 2015 13:43:36 +0800 Li Jun wrote: > From: Macpaul Lin > > Add usb_otg_caps pointer to usb_gadget structure to indicate its > otg capabilities. > > Signed-off-by: Macpaul Lin > Signed-off-by: Li Jun > --- > include/linux/usb/gadget.h | 2 ++ > 1 file changed, 2 insertions(+)

Re: [PATCH v4 06/23] doc: dt-binding: usb: add otg related properties

2015-06-17 Thread Roger Quadros
On Wed, 17 Jun 2015 13:43:38 +0800 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 Reviewed-by: Roger Quadros cheers, -roger > --- > Documentation/devicetree/bin

Re: [PATCH v4 07/23] usb: common: add API to get usb otg features from device tree

2015-06-17 Thread Roger Quadros
On Wed, 17 Jun 2015 13:43:39 +0800 Li Jun wrote: > 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 | 29 + > include/linux/usb/of.h | 7 +++ > 2 files

Re: [PATCH v4 10/23] usb: gadget: add usb otg descriptor allocate and init interface

2015-06-17 Thread Roger Quadros
On Wed, 17 Jun 2015 13:43:42 +0800 Li Jun wrote: > Allocate usb otg descriptor and initialize it according to gadget's otg > capabilities, if usb_otg_caps is not set, keep settings as current gadget > drivers. With this 2 new interfaces, gadget can use usb_otg_descriptor > for OTG 1.x, and usb_o

Re: [PATCH v4 04/23] usb: add usb_otg_caps to usb_gadget structure.

2015-06-17 Thread Li Jun
On Wed, Jun 17, 2015 at 11:29:36AM +0300, Roger Quadros wrote: > > On Wed, 17 Jun 2015 13:43:36 +0800 > Li Jun wrote: > > > From: Macpaul Lin > > > > Add usb_otg_caps pointer to usb_gadget structure to indicate its > > otg capabilities. > > > > Signed-off-by: Macpaul Lin > > Signed-off-by: L

Re: [PATCH v4 04/23] usb: add usb_otg_caps to usb_gadget structure.

2015-06-17 Thread Roger Quadros
On Wed, 17 Jun 2015 11:29:36 +0300 Roger Quadros wrote: > > On Wed, 17 Jun 2015 13:43:36 +0800 > Li Jun wrote: > > > From: Macpaul Lin > > > > Add usb_otg_caps pointer to usb_gadget structure to indicate its > > otg capabilities. > > > > Signed-off-by: Macpaul Lin > > Signed-off-by: Li Ju

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

2015-06-17 Thread Johan Hovold
On Mon, Jun 15, 2015 at 09:56:06AM -0500, Peter Berger wrote: > On Thu, 2015-06-11 at 11:10 +0200, Johan Hovold wrote: > > On Mon, Jun 08, 2015 at 02:36:36PM -0500, Peter Berger wrote: > > > On Fri, 2015-05-22 at 18:22 +0200, Johan Hovold wrote: > > > > On Fri, May 15, 2015 at 12:09:54AM -0500, Pet

[RESEND PATCH 1/2] ARM: at91/dt: trivial: fix USB udc compatible string

2015-06-17 Thread Nicolas Ferre
To please checkpatch and the tiresome reader, add the "atmel," prefix to the USB udc compatible string. Signed-off-by: Nicolas Ferre Cc: #4.0+ --- Documentation/devicetree/bindings/usb/atmel-usb.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/devicet

[RESEND PATCH 2/2] ARM: at91/dt: update udc compatible strings

2015-06-17 Thread Nicolas Ferre
From: Boris Brezillon at91sam9g45, at91sam9x5 and sama5 SoCs should not use "atmel,at91sam9rl-udc" for their USB device compatible property since this compatible is attached to a specific hardware bug fix. Signed-off-by: Boris Brezillon Acked-by: Alexandre Belloni Tested-by: Bo Shen Acked-by:

Re: [PATCH v4 12/23] usb: gadget: ether: allocate and init otg descriptor by otg capabilities

2015-06-17 Thread Roger Quadros
On Wed, 17 Jun 2015 13:43:44 +0800 Li Jun wrote: > Allocate and initialize usb otg descriptor according to gadget otg > capabilities, add it for each usb configurations, free it while > composite unbind. If otg capability is not defined, keep its otg > descriptor unchanged. > > Signed-off-by: L

Re: [PATCH v4 11/23] usb: gadget: configfs: allocate and init otg descriptor by otg capabilities

2015-06-17 Thread Roger Quadros
On Wed, 17 Jun 2015 13:43:43 +0800 Li Jun wrote: > Allocate and initialize usb otg descriptor according to gadget otg > capabilities, add it for each usb configurations, free it while > composite unbind. If otg capability is not defined, keep its otg > descriptor unchanged. > > Signed-off-by: L

Re: [PATCH v4 13/23] usb: gadget: acm_ms: allocate and init otg descriptor by otg capabilities

2015-06-17 Thread Roger Quadros
On Wed, 17 Jun 2015 13:43:45 +0800 Li Jun wrote: > Allocate and initialize usb otg descriptor according to gadget otg > capabilities, add it for each usb configurations, free it while > composite unbind. If otg capability is not defined, keep its otg there is no composite unbind in acm_ms.c. >

Re: [PATCH v4 07/23] usb: common: add API to get usb otg features from device tree

2015-06-17 Thread Li Jun
On Wed, Jun 17, 2015 at 11:45:45AM +0300, Roger Quadros wrote: > > On Wed, 17 Jun 2015 13:43:39 +0800 > Li Jun wrote: > > > 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 | 29 +

Re: [PATCH v5 02/10] USB: io_ti: Add timeout parameter to ti_vsend_sync()

2015-06-17 Thread Johan Hovold
On Mon, Jun 15, 2015 at 10:47:25AM -0500, Peter E. Berger wrote: > From: "Peter E. Berger" > > Instead of having ti_vsend_sync() decide when to use non-default timeouts, > make "timeout" a parameter and leave the decision to the caller. > > Signed-off-by: Peter E. Berger > --- > drivers/usb/se

Re: [PATCH v5 03/10] USB: io_ti: Move request_firmware() calls out of download_fw()

2015-06-17 Thread Johan Hovold
On Mon, Jun 15, 2015 at 10:47:26AM -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/firmware/edgeport/down3.bin) is more current than the version > on the

Re: optimal io size / custom alignment

2015-06-17 Thread Tom Yan
On 17 June 2015 at 05:28, Martin K. Petersen wrote: > There are plenty of SSDs that report 4K physical sectors, fwiw. Oh didn't know that. Wonder if it's yet another garbage info. Though 4k is often a nice value to make use of. > We gave up on USB-SATA bridges long ago. Their designers appear to

Re: [PATCH v2] USB SERIAL: option.c: add 2020:4000 IDs

2015-06-17 Thread Johan Hovold
On Fri, Jun 12, 2015 at 09:32:31AM +0200, Claudio Cappelli wrote: > On Wednesday 10 June 2015 20:38:30 Claudio Cappelli wrote: > > From: Claudio Cappelli > > > > Add device Olivetti Olicard 300 (Network Connect: MT6225) - IDs 2020:4000. > > > > Signed-off-by: Claudio Cappelli > > Suggested-by:

Re: [PATCH v4 12/23] usb: gadget: ether: allocate and init otg descriptor by otg capabilities

2015-06-17 Thread Li Jun
On Wed, Jun 17, 2015 at 12:03:04PM +0300, Roger Quadros wrote: > > > > > if (gadget_is_otg(c->cdev->gadget)) { > > + if (!otg_desc[0]) { > > + struct usb_descriptor_header *usb_desc; > > + > > + usb_desc = usb_otg_descriptor_alloc(c->cdev->gadget

[PATCH 1/1] usb: Fix warning simple_strtoul is obsolete, use kstrtoul instead This patch fixes "simple_strtoul is obsolete, use kstrtoul instead" warning in usb.c.

2015-06-17 Thread Sunny Kumar
Signed-off-by: Sunny Kumar --- drivers/usb/storage/usb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/storage/usb.c b/drivers/usb/storage/usb.c index 6c10c88..a0c0f66 100644 --- a/drivers/usb/storage/usb.c +++ b/drivers/usb/storage/usb.c @@ -485,9 +485,9 @@

[PATCH v5 02/23] usb: add USB_OTG_ADP definition

2015-06-17 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 v5 01/23] usb: add usb_otg20_descriptor for OTG 2.0 and above

2015-06-17 Thread Li Jun
From: Macpaul Lin OTG 2.0 introduces bcdOTG in otg descriptor to identify the OTG and EH supplement release number with which the OTG device is compliant, this patch adds structure usb_otg20_descriptor for OTG 2.0 and above. Signed-off-by: Macpaul Lin Signed-off-by: Li Jun Reviewed-by: Roger Q

[PATCH v5 05/23] usb: gadget: composite: add USB_DT_OTG request handling

2015-06-17 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 Reviewed-by: Roger Quadros --- drivers/usb/gadget/composite.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/driv

[PATCH v5 00/23] usb gadget update for OTG 2.0

2015-06-17 Thread Li Jun
Changes for v5: - By default otg feature are enabled if usb controller can support it. use of_usb_set_otg_caps to set otg_rev and disable features by DT. - Update legacy drivers, allocate and init otg descriptor in bind function, free it in unbind, to make alloation and free are symmetric. - Ad

[PATCH v5 06/23] doc: dt-binding: usb: add otg related properties

2015-06-17 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 Reviewed-by: Roger Quadros --- Documentation/devicetree/bindings/usb/generic.txt | 15 +++ 1 file changed, 15 insertions(+) diff

[PATCH v5 03/23] usb: otg: add usb_otg_caps structure for otg capabilities

2015-06-17 Thread Li Jun
This patch adds a structure usb_otg_caps to cover all otg related capabilities of the device, including otg revision, and if hnp/srp/adp is supported. Signed-off-by: Li Jun Reviewed-by: Roger Quadros --- include/linux/usb/otg.h | 15 +++ 1 file changed, 15 insertions(+) diff --git

[PATCH v5 07/23] usb: common: add API to set usb otg capabilities by device tree

2015-06-17 Thread Li Jun
Check property of usb hardware to get otg version and if SRP, HNP and ADP are disabled. Signed-off-by: Li Jun --- drivers/usb/common/common.c | 28 include/linux/usb/of.h | 7 +++ 2 files changed, 35 insertions(+) diff --git a/drivers/usb/common/common.c b

[PATCH v5 04/23] usb: add usb_otg_caps to usb_gadget structure.

2015-06-17 Thread Li Jun
From: Macpaul Lin Add usb_otg_caps pointer to usb_gadget structure to indicate its otg capabilities. Signed-off-by: Macpaul Lin Signed-off-by: Li Jun Reviewed-by: Roger Quadros --- include/linux/usb/gadget.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/usb/gadget.h b/i

[PATCH v5 08/23] usb: chipidea: set usb gadeget's otg capabilities

2015-06-17 Thread Li Jun
Set gadget's otg capabilities according to controller's capability and otg properties in device tree. Signed-off-by: Li Jun --- drivers/usb/chipidea/core.c | 8 drivers/usb/chipidea/udc.c | 7 ++- include/linux/usb/chipidea.h | 1 + 3 files changed, 15 insertions(+), 1 deletion(-

[PATCH v5 09/23] usb: chipidea: update ci_otg_is_fsm_mode conditions

2015-06-17 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| 5 - drivers/usb/chipidea/deb

[PATCH v5 17/23] usb: gadget: hid: allocate and init otg descriptor by otg capabilities

2015-06-17 Thread Li Jun
Allocate and initialize usb otg descriptor according to gadget otg capabilities, add it for each usb configurations. If otg capability is not defined, keep its original otg descriptor unchanged. Signed-off-by: Li Jun --- drivers/usb/gadget/legacy/hid.c | 45 ++

[PATCH v5 10/23] usb: gadget: add usb otg descriptor allocate and init interface

2015-06-17 Thread Li Jun
Allocate usb otg descriptor and initialize it according to gadget's otg capabilities, if usb_otg_caps is not set, keep settings as current gadget drivers. With this 2 new interfaces, gadget can use usb_otg_descriptor for OTG 1.x, and usb_otg20_descriptor for OTG 2.0 or above, and otg features can b

[PATCH v5 14/23] usb: gadget: audio: allocate and init otg descriptor by otg capabilities

2015-06-17 Thread Li Jun
Allocate and initialize usb otg descriptor according to gadget otg capabilities, add it for each usb configurations. If otg capability is not defined, keep its original otg descriptor unchanged. Signed-off-by: Li Jun --- drivers/usb/gadget/legacy/audio.c | 43 +---

[PATCH v5 19/23] usb: gadget: multi: allocate and init otg descriptor by otg capabilities

2015-06-17 Thread Li Jun
Allocate and initialize usb otg descriptor according to gadget otg capabilities, add it for each usb configurations. If otg capability is not defined, keep its original otg descriptor unchanged. Signed-off-by: Li Jun --- drivers/usb/gadget/legacy/multi.c | 39

[PATCH v5 12/23] usb: gadget: ether: allocate and init otg descriptor by otg capabilities

2015-06-17 Thread Li Jun
Allocate and initialize usb otg descriptor according to gadget otg capabilities, add it for each usb configurations, free it while ether unbind. If otg capability is not defined, keep its otg descriptor unchanged. Signed-off-by: Li Jun --- drivers/usb/gadget/legacy/ether.c | 52 +

[PATCH v5 15/23] usb: gadget: cdc2: allocate and init otg descriptor by otg capabilities

2015-06-17 Thread Li Jun
Allocate and initialize usb otg descriptor according to gadget otg capabilities, add it for each usb configurations. If otg capability is not defined, keep its original otg descriptor unchanged. Signed-off-by: Li Jun --- drivers/usb/gadget/legacy/cdc2.c | 44 +

[PATCH v5 11/23] usb: gadget: configfs: allocate and init otg descriptor by otg capabilities

2015-06-17 Thread Li Jun
Allocate and initialize usb otg descriptor according to gadget otg capabilities, add it for each usb configurations, free it while composite unbind. If otg capability is not defined, keep its otg descriptor unchanged. Signed-off-by: Li Jun Reviewed-by: Roger Quadros --- drivers/usb/gadget/confi

[PATCH v5 16/23] usb: gadget: g_ffs: allocate and init otg descriptor by otg capabilities

2015-06-17 Thread Li Jun
Allocate and initialize usb otg descriptor according to gadget otg capabilities, add it for each usb configurations. If otg capability is not defined, keep its original otg descriptor unchanged. Signed-off-by: Li Jun --- drivers/usb/gadget/legacy/g_ffs.c | 42

[PATCH v5 18/23] usb: gadget: mass_storage: allocate and init otg descriptor by otg capabilities

2015-06-17 Thread Li Jun
Allocate and initialize usb otg descriptor according to gadget otg capabilities, add it for each usb configurations. If otg capability is not defined, keep its original otg descriptor unchanged. Signed-off-by: Li Jun --- drivers/usb/gadget/legacy/mass_storage.c | 44 +

[PATCH v5 21/23] usb: gadget: printer: allocate and init otg descriptor by otg capabilities

2015-06-17 Thread Li Jun
Allocate and initialize usb otg descriptor according to gadget otg capabilities, add it for each usb configurations. If otg capability is not defined, keep its original otg descriptor unchanged. Signed-off-by: Li Jun --- drivers/usb/gadget/legacy/printer.c | 35 +++---

[PATCH v5 20/23] usb: gadget: ncm: allocate and init otg descriptor by otg capabilities

2015-06-17 Thread Li Jun
Allocate and initialize usb otg descriptor according to gadget otg capabilities, add it for each usb configurations. If otg capability is not defined, keep its original otg descriptor unchanged. Signed-off-by: Li Jun --- drivers/usb/gadget/legacy/ncm.c | 43 ++

[PATCH v5 13/23] usb: gadget: acm_ms: allocate and init otg descriptor by otg capabilities

2015-06-17 Thread Li Jun
Allocate and initialize usb otg descriptor according to gadget otg capabilities, add it for each usb configurations. If otg capability is not defined, keep its original otg descriptor unchanged. Signed-off-by: Li Jun --- drivers/usb/gadget/legacy/acm_ms.c | 44 ---

[PATCH v5 22/23] usb: gadget: serial: allocate and init otg descriptor by otg capabilities

2015-06-17 Thread Li Jun
Allocate and initialize usb otg descriptor according to gadget otg capabilities, add it for each usb configurations. If otg capability is not defined, keep its original otg descriptor unchanged. Signed-off-by: Li Jun --- drivers/usb/gadget/legacy/serial.c | 29 +++-- 1 fi

Re: [PATCH 1/1] usb: Fix warning simple_strtoul is obsolete, use kstrtoul instead This patch fixes "simple_strtoul is obsolete, use kstrtoul instead" warning in usb.c.

2015-06-17 Thread Sergei Shtylyov
Hello. On 6/17/2015 2:20 PM, Sunny Kumar wrote: Your summary line and changelog got pasted together into the subject. Signed-off-by: Sunny Kumar WBR, Sergei -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More

[PATCH 1/1] usb: Fix warning simple_strtoul is obsolete, use kstrtoul instead

2015-06-17 Thread Sunny Kumar
This patch fixes "simple_strtoul is obsolete, use kstrtoul instead" warning in usb.c. Signed-off-by: Sunny Kumar --- drivers/usb/storage/usb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/storage/usb.c b/drivers/usb/storage/usb.c index 6c10c88..a0c0f66 1006

Re: [PATCH 1/1] usb: Fix warning simple_strtoul is obsolete, use kstrtoul instead

2015-06-17 Thread Greg Kroah-Hartman
On Wed, Jun 17, 2015 at 05:42:57PM +0530, Sunny Kumar wrote: > This patch fixes "simple_strtoul is obsolete, use kstrtoul instead" > warning in usb.c. It's not always a straight substitution, otherwise we would have just converted the whole kernel all at once. Have you verified that the code stil

Re: ax88179_178a: ethernet to usb dongle disconnect crash

2015-06-17 Thread Greg KH
On Wed, Jun 17, 2015 at 10:31:40AM +0530, Vivek Bhagat wrote: > Hi All, > > I have connected my pc and TV board as below - > > PC (network i/f) <> ethernet to usb dongle <---> usb port of TV board > > When I power off my board, i get a kernel crash. > Please have a look at log attached here

[PATCH v3 0/6] usb: interface authorization

2015-06-17 Thread Stefan Koch
This patch introduces an interface authorization for USB devices. The kernel supports a device authorization because of wireless USB. But the new interface authorization allows to enable or disable individual interfaces instead allow or deny a whole device. Therefore a authorized attribute is int

[PATCH v3 1/6] usb: interface authorization: Declare authorized attribute

2015-06-17 Thread Stefan Koch
The attribute authorized shows the authorization state for an interface. Signed-off-by: Stefan Koch --- include/linux/usb.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/usb.h b/include/linux/usb.h index 447fe29..24983dc 100644 --- a/include/linux/usb.h +++ b/include/linux/us

[PATCH v3 3/6] usb: interface authorization: Control interface probing and claiming

2015-06-17 Thread Stefan Koch
Driver probings and interface claims get rejected if an interface is not authorized. Signed-off-by: Stefan Koch --- drivers/base/base.h | 1 - drivers/usb/core/driver.c | 11 +++ include/linux/device.h| 1 + 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/drive

[PATCH v3 2/6] usb: interface authorization: Introduces the default interface authorization

2015-06-17 Thread Stefan Koch
Interfaces are allowed per default. This can disabled or enabled (again) by writing 0 or 1 to /sys/bus/usb/devices/usb*/interface_authorized_default Signed-off-by: Stefan Koch --- drivers/usb/core/hcd.c | 47 ++ drivers/usb/core/message.c | 1 + i

[PATCH v3 4/6] usb: interface authorization: Introduces the USB interface authorization.

2015-06-17 Thread Stefan Koch
The kernel supports the device authorization because of wireless USB. These is usable for wired USB devices, too. These new interface authorization allows to enable or disable individual interfaces instead a whole device. To avoid side effects the driver probing process for the interface and it's

[PATCH v3 6/6] usb: interface authorization: Documentation part

2015-06-17 Thread Stefan Koch
This part adds the documentation for the interface authorization. Signed-off-by: Stefan Koch --- Documentation/ABI/testing/sysfs-bus-usb | 23 +++ Documentation/usb/authorization.txt | 22 ++ 2 files changed, 45 insertions(+) diff --git a/Documentatio

[PATCH v3 5/6] usb: interface authorization: SysFS part of USB interface authorization.

2015-06-17 Thread Stefan Koch
There is an attribute for each interface to allow (1) or deny (0) it: /sys/bus/usb/devices/*-*:*.*/authorized Signed-off-by: Stefan Koch --- drivers/usb/core/sysfs.c | 45 - 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/drivers/usb/core

Re: [PATCH v3 3/6] usb: interface authorization: Control interface probing and claiming

2015-06-17 Thread Greg KH
On Wed, Jun 17, 2015 at 03:44:43PM +0200, Stefan Koch wrote: > Driver probings and interface claims get rejected > if an interface is not authorized. > > Signed-off-by: Stefan Koch > --- > drivers/base/base.h | 1 - > drivers/usb/core/driver.c | 11 +++ > include/linux/device.h

Re: [PATCH v3 5/6] usb: interface authorization: SysFS part of USB interface authorization.

2015-06-17 Thread Greg KH
On Wed, Jun 17, 2015 at 03:44:45PM +0200, Stefan Koch wrote: > There is an attribute for each interface to allow (1) or deny (0) it: > /sys/bus/usb/devices/*-*:*.*/authorized > > Signed-off-by: Stefan Koch > --- > drivers/usb/core/sysfs.c | 45 - > 1 f

Re: [PATCH v3 5/6] usb: interface authorization: SysFS part of USB interface authorization.

2015-06-17 Thread Greg KH
On Wed, Jun 17, 2015 at 03:44:45PM +0200, Stefan Koch wrote: > There is an attribute for each interface to allow (1) or deny (0) it: > /sys/bus/usb/devices/*-*:*.*/authorized > > Signed-off-by: Stefan Koch > --- > drivers/usb/core/sysfs.c | 45 - > 1 f

Re: [PATCH v2 0/5] usb: Add usb interface authorization

2015-06-17 Thread Alan Stern
On Tue, 16 Jun 2015, Stefan Koch wrote: > > If autoprobing is disabled, all the user has to do is avoid writing to > > /sys/bus/usb/drivers_probe. > With my test case that works only with bus_probe_device() becaus it > checks the autoprobe status and calls then device_attach(). > > I have compil

Re: [linux-usb] how to pass parameters to mass storage kernel module for best host compatibility

2015-06-17 Thread Alan Stern
On Wed, 17 Jun 2015, Xuebing Wang wrote: > Alan, > > Thank you very much for your help. Using a valid serial number like > below (and without removable=1) can NOT get Win7 to auto-mount it. > modprobe g_mass_storage file=/dev/mmcblk0p4 iSerialNumber=123456789012 > nofua=1 All right. Maybe Win

Re: [PATCH v3 1/6] usb: interface authorization: Declare authorized attribute

2015-06-17 Thread Alan Stern
On Wed, 17 Jun 2015, Stefan Koch wrote: > The attribute authorized shows the authorization state for an interface. > > Signed-off-by: Stefan Koch > --- > include/linux/usb.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/linux/usb.h b/include/linux/usb.h > index 447fe29..2498

Re: [PATCH] usb: xhci: make USB_XHCI_PLATFORM selectable

2015-06-17 Thread Mathias Nyman
On 16.06.2015 23:01, Rafał Miłecki wrote: > On 16 June 2015 at 21:56, Greg Kroah-Hartman > wrote: >> On Tue, Jun 16, 2015 at 09:18:05PM +0200, Rafał Miłecki wrote: >>> Right now xhci-plat-hcd can be built when using one of platform specific >>> drivers only (mvebu/rcar). There shouldn't be such l

Re: [PATCH v3 2/6] usb: interface authorization: Introduces the default interface authorization

2015-06-17 Thread Alan Stern
On Wed, 17 Jun 2015, Stefan Koch wrote: > Interfaces are allowed per default. > This can disabled or enabled (again) by writing 0 or 1 to > /sys/bus/usb/devices/usb*/interface_authorized_default > > Signed-off-by: Stefan Koch > --- a/include/linux/usb/hcd.h > +++ b/include/linux/usb/hcd.h > @@

Re: [PATCH v3 3/6] usb: interface authorization: Control interface probing and claiming

2015-06-17 Thread Alan Stern
On Wed, 17 Jun 2015, Stefan Koch wrote: > Driver probings and interface claims get rejected > if an interface is not authorized. > > Signed-off-by: Stefan Koch > --- > drivers/base/base.h | 1 - > drivers/usb/core/driver.c | 11 +++ > include/linux/device.h| 1 + This patch

Re: [PATCH v3 3/6] usb: interface authorization: Control interface probing and claiming

2015-06-17 Thread Stefan Koch
Am Mittwoch, den 17.06.2015, 07:05 -0700 schrieb Greg KH: > On Wed, Jun 17, 2015 at 03:44:43PM +0200, Stefan Koch wrote: > > Driver probings and interface claims get rejected > > if an interface is not authorized. > > > > Signed-off-by: Stefan Koch > > --- > > drivers/base/base.h | 1 - >

Re: [PATCH] usb: xhci: make USB_XHCI_PLATFORM selectable

2015-06-17 Thread Rafał Miłecki
On 17 June 2015 at 17:11, Mathias Nyman wrote: > On 16.06.2015 23:01, Rafał Miłecki wrote: >> On 16 June 2015 at 21:56, Greg Kroah-Hartman >> wrote: >>> On Tue, Jun 16, 2015 at 09:18:05PM +0200, Rafał Miłecki wrote: Right now xhci-plat-hcd can be built when using one of platform specific >>

Re: [PATCH v2 0/5] usb: Add usb interface authorization

2015-06-17 Thread Stefan Koch
Am Mittwoch, den 17.06.2015, 10:43 -0400 schrieb Alan Stern: > On Tue, 16 Jun 2015, Stefan Koch wrote: > > > > If autoprobing is disabled, all the user has to do is avoid writing to > > > /sys/bus/usb/drivers_probe. > > With my test case that works only with bus_probe_device() becaus it > > check

Re: [PATCH v3 4/6] usb: interface authorization: Introduces the USB interface authorization.

2015-06-17 Thread Alan Stern
On Wed, 17 Jun 2015, Stefan Koch wrote: > The kernel supports the device authorization because of wireless USB. > These is usable for wired USB devices, too. > These new interface authorization allows to enable or disable > individual interfaces instead a whole device. > > To avoid side effects t

Re: [PATCH v3 5/6] usb: interface authorization: SysFS part of USB interface authorization.

2015-06-17 Thread Alan Stern
On Wed, 17 Jun 2015, Stefan Koch wrote: > There is an attribute for each interface to allow (1) or deny (0) it: > /sys/bus/usb/devices/*-*:*.*/authorized > > Signed-off-by: Stefan Koch > +static struct device_attribute dev_attr_interface_authorized = > + __ATTR_IGNORE_LOCKDEP(author

Re: [PATCH v3 6/6] usb: interface authorization: Documentation part

2015-06-17 Thread Alan Stern
On Wed, 17 Jun 2015, Stefan Koch wrote: > This part adds the documentation for the interface authorization. > > Signed-off-by: Stefan Koch > --- > Documentation/ABI/testing/sysfs-bus-usb | 23 +++ > Documentation/usb/authorization.txt | 22 ++ > 2 fil

Re: [PATCH v3 2/6] usb: interface authorization: Introduces the default interface authorization

2015-06-17 Thread Stefan Koch
Am Mittwoch, den 17.06.2015, 11:11 -0400 schrieb Alan Stern: > On Wed, 17 Jun 2015, Stefan Koch wrote: > > > Interfaces are allowed per default. > > This can disabled or enabled (again) by writing 0 or 1 to > > /sys/bus/usb/devices/usb*/interface_authorized_default > > > > Signed-off-by: Stefan K

Re: [PATCH v2 0/5] usb: Add usb interface authorization

2015-06-17 Thread Alan Stern
On Wed, 17 Jun 2015, Stefan Koch wrote: > You write in another mail: > "You could probe all the interfaces whenever any interface is > authorized. Or there could be a separate mechanism to initiate probing." > > The first is the actual approach and this works fine. > It is regardless in which ord

Re: [PATCH v3 2/6] usb: interface authorization: Introduces the default interface authorization

2015-06-17 Thread Alan Stern
On Wed, 17 Jun 2015, Stefan Koch wrote: > Am Mittwoch, den 17.06.2015, 11:11 -0400 schrieb Alan Stern: > > On Wed, 17 Jun 2015, Stefan Koch wrote: > > > > > Interfaces are allowed per default. > > > This can disabled or enabled (again) by writing 0 or 1 to > > > /sys/bus/usb/devices/usb*/interfac

Re: [PATCH v3 3/6] usb: interface authorization: Control interface probing and claiming

2015-06-17 Thread Greg KH
On Wed, Jun 17, 2015 at 05:13:51PM +0200, Stefan Koch wrote: > Am Mittwoch, den 17.06.2015, 07:05 -0700 schrieb Greg KH: > > On Wed, Jun 17, 2015 at 03:44:43PM +0200, Stefan Koch wrote: > > > Driver probings and interface claims get rejected > > > if an interface is not authorized. > > > > > > Sig

Re: [PATCH v3 1/6] usb: interface authorization: Declare authorized attribute

2015-06-17 Thread Stefan Koch
Am Mittwoch, den 17.06.2015, 11:09 -0400 schrieb Alan Stern: > On Wed, 17 Jun 2015, Stefan Koch wrote: > > > The attribute authorized shows the authorization state for an interface. > > > > Signed-off-by: Stefan Koch > > --- > > include/linux/usb.h | 1 + > > 1 file changed, 1 insertion(+) > >

Re: [PATCH v3 1/6] usb: interface authorization: Declare authorized attribute

2015-06-17 Thread Alan Stern
On Wed, 17 Jun 2015, Stefan Koch wrote: > > > --- a/include/linux/usb.h > > > +++ b/include/linux/usb.h > > > @@ -171,6 +171,7 @@ struct usb_interface { > > > int minor; /* minor number this interface is > > >* bound to */ > > > enum usb

[PATCH v6] usb: common: add API to set usb otg capabilities by device tree

2015-06-17 Thread Li Jun
Change for v6: UPdate otg caps by disable flags even if otg_rev is not passed, this is needed in case user wants to disable whole OTG(or just want to ID pin detect). Check property of usb hardware to get otg version and if SRP, HNP and ADP are disabled. Signed-off-by: Li Jun --- drivers/usb/com

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

2015-06-17 Thread Andrew Lunn
> One final update on this topic: the kernel config was missing the > CONFIG_USB_EHCI_ROOT_HUB_TT option. It turns out that the USB IP embeded a > Transaction Translator and there is a check in ehci_halt() that aborts the > routine in case of a Transaction Translator in the ehci controller. The che