Re: Configfs usb mass_storage device always reports 8 LUNs ?

2015-06-19 Thread Felipe Balbi
Hi, On Fri, Jun 19, 2015 at 09:00:26PM +0200, Michal Nazarewicz wrote: On Fri, Jun 19, 2015 at 01:59:40PM +, David Fisher wrote: My interpretation of this is that common-nluns is only ever set in fsg_alloc_inst() rc = fsg_common_set_nluns(opts-common, FSG_MAX_LUNS); It doesn't take

Re: Configfs usb mass_storage device always reports 8 LUNs ?

2015-06-19 Thread Michal Nazarewicz
On Fri, Jun 19 2015, Felipe Balbi wrote: the fact is that this needs to be configurable from configfs. If user sets up a single lun, then this should be as you said, however, if 2 luns are configured, I still want to have those 2 working. From a user perspective, configfs should support N

Configfs usb mass_storage device always reports 8 LUNs ?

2015-06-19 Thread David Fisher
Hi all, I'm running 4.1-rc4 (Linaro 5.15) and trying to create a mass storage gadget via configfs, with default 1 LUN (lun.0). As the configfs progresses, I see Number of LUNs=8. And when plugged in, the USB class specific getMaxLun request returns 7. In some Windows drivers (but not some

[PATCH] usb: gadget: loopback: Remove out-of-date comment

2015-06-19 Thread Krzysztof Opasiak
As loopback function has been reworked for ConfigFS composite gadget this comment is no longer valid. Signed-off-by: Krzysztof Opasiak k.opas...@samsung.com --- drivers/usb/gadget/function/f_loopback.c |5 - 1 file changed, 5 deletions(-) diff --git

Configfs usb mass_storage device always reports 8 LUNs ?

2015-06-19 Thread David Fisher
diff --git a/drivers/usb/gadget/function/f_mass_storage.c b/drivers/usb/gadget/function/f_mass_storage.c index 3cc109f..f502f00 100644 --- a/drivers/usb/gadget/function/f_mass_storage.c +++ b/drivers/usb/gadget/function/f_mass_storage.c @@ -2796,8 +2796,6 @@ int fsg_common_set_nluns(struct

[PATCH] usb: gadget: SourceSink: Remove out-of-date comment

2015-06-19 Thread Krzysztof Opasiak
As SourceSink function has been reworked for ConfigFS composite gadget this comment is no longer valid. Signed-off-by: Krzysztof Opasiak k.opas...@samsung.com --- drivers/usb/gadget/function/f_sourcesink.c |5 - 1 file changed, 5 deletions(-) diff --git

Re: cdc_acm / cdc_wdm issue. Connection to device lost (Sony Ericsson w660)

2015-06-19 Thread Oliver Neukum
On Thu, 2015-06-18 at 21:30 +0200, Fab Stz wrote: Hello, I'm facing some issues to connect to my mobile phone (Sony Ericsson W660i) I use Gammu/Wammu to connect to my mobile phone With kernel 3.2 (debian wheezy) it works fine. But with kernel 3.16 (debian jessie) or even 4.0.2 it doesn't

[PATCH] usb: class: Use USB_CLASS_PRINTER instead of number 7

2015-06-19 Thread Krzysztof Opasiak
Kernel provides very nice defines for USB device class so it's a good idea to use them in suitable places. It is much easier to grep for such define instead of 7. Signed-off-by: Krzysztof Opasiak k.opas...@samsung.com --- drivers/usb/class/usblp.c | 13 +++-- 1 file changed, 7

Re: Configfs usb mass_storage device always reports 8 LUNs ?

2015-06-19 Thread Felipe Balbi
Hi, On Fri, Jun 19, 2015 at 01:59:40PM +, David Fisher wrote: Hi all, I'm running 4.1-rc4 (Linaro 5.15) and trying to create a mass storage gadget via configfs, with default 1 LUN (lun.0). As the configfs progresses, I see Number of LUNs=8. And when plugged in, the USB class specific

Re: cdc_acm / cdc_wdm issue. Connection to device lost (Sony Ericsson w660)

2015-06-19 Thread Fab Stz
Oh ! I just realized my mistake. Actually it is not the kernel that is faulty but my configuration (since I migrated from debian wheezy to jessie). I had connection/disconnection issues because of conflicts between gammu and ModemManager. It is also ModemManager which took the control of my

Xenta Mouse Wireless sometimes not working in Linux Kernel 4.0.5

2015-06-19 Thread José David León Rodríguez
Sometimes generic mice usb wireless not work with usb_modeswitch enabled. dmesg | grep usb output when kernel not find device descriptors for mouse: [ 154.988937] usb 2-3: new full-speed USB device number 9 using xhci_hcd [ 160.159445] usb 2-3: unable to read config index 0 descriptor/start:

Re: Configfs usb mass_storage device always reports 8 LUNs ?

2015-06-19 Thread Michal Nazarewicz
On Fri, Jun 19, 2015 at 01:59:40PM +, David Fisher wrote: My interpretation of this is that common-nluns is only ever set in fsg_alloc_inst() rc = fsg_common_set_nluns(opts-common, FSG_MAX_LUNS); It doesn't take account of how many luns have been setup in the configfs tree. On Fri, Jun

Re: [PATCH] usb: class: Use USB_CLASS_PRINTER instead of number 7

2015-06-19 Thread Pete Zaitcev
On Fri, 19 Jun 2015 11:37:08 +0200 Krzysztof Opasiak k.opas...@samsung.com wrote: Kernel provides very nice defines for USB device class so it's a good idea to use them in suitable places. It is much easier to grep for such define instead of 7. static const struct usb_device_id usblp_ids[]