some question about unbind and rebind usb interfaces

2014-08-24 Thread vichy
hi all: below patch introduce unbind and rebind interfaces during usb reset https://lists.ubuntu.com/archives/kernel-team/2014-April/042177.html If a driver claims additional interfaces, the claim may fail because the old binding instance may still own the additional interface when the new

Re: What is the command line commands to use UAC2 at USB client side?

2014-08-24 Thread Daniel Mack
Hi Jassi, On 08/19/2014 11:52 AM, Jassi Brar wrote: Its been quite some time now, but I think we designed the uac2 to rely on USB's ISO packets' rate control to send and receive audio data at announced sampling rate. I'm still thinking how that setup should have ever been possible with

Re: [PATCH v5 1/3] usb: gadget: f_fs: fix the redundant ep files problem

2014-08-24 Thread Michal Nazarewicz
On Thu, Aug 21 2014, Robert Baldyga r.bald...@samsung.com wrote: Up to now, when endpoint addresses in descriptors were non-consecutive, there were created redundant files, which could cause problems in kernel, when user tryed to read/write to them. It was result of fact that maximum

Re: [PATCH v5 2/3] usb: gadget: f_fs: add ioctl returning ep descriptor

2014-08-24 Thread Michal Nazarewicz
On Thu, Aug 21 2014, Robert Baldyga r.bald...@samsung.com wrote: This patch introduces ioctl named FUNCTIONFS_ENDPOINT_DESC, which returns endpoint descriptor to userspace. It works only if function is active. Signed-off-by: Robert Baldyga r.bald...@samsung.com With the change described

Re: [PATCH v5 3/3] usb: gadget: f_fs: virtual endpoint address mapping

2014-08-24 Thread Michal Nazarewicz
On Thu, Aug 21 2014, Robert Baldyga r.bald...@samsung.com wrote: This patch introduces virtual endpoint address mapping. It separates function logic form physical endpoint addresses making it more hardware independent. Following modifications changes user space API, so to enable them user

Re: [PATCH 1/1] HID: usbhid: add usb_clear_halt determination for next hid_start_in

2014-08-24 Thread vichy
hi Alan: I originally tried using usb_reset_device, and it caused a deadlock: Unplug the HID device. I/O error occurs. hid_io_error schedules reset_work. The reset_work callback routine is hid_reset. It calls usb_reset_device. The reset fails

Re: [Bug 80711] [PATCH]SG_FLAG_LUN_INHIBIT is no longer implemented and there's not way to prevent the kernel from using the 2nd cdb byte for the LUN

2014-08-24 Thread Christoph Hellwig
On Fri, Aug 22, 2014 at 01:29:32PM -0400, Alan Stern wrote: Other than this, I'm fine with the code ... you can add the acked by from me when we resolve the above question. Okay. It's true that this issue is only tangentially related to the main point of the patch. It could be removed

Re: [linux-usb] USB Gadget drivers Windows 7/8 support and .bAlternateSetting in interface descriptor

2014-08-24 Thread Daniel Mack
On 08/22/2014 04:43 AM, Xuebing Wang wrote: static inline bool gadget_supports_altsettings(struct usb_gadget *gadget) { /* PXA 21x/25x/26x has no altsettings at all */ if (gadget_is_pxa(gadget)) return false; /* PXA 27x and 3xx have *broken*

Re: some question about unbind and rebind usb interfaces

2014-08-24 Thread Alan Stern
On Sun, 24 Aug 2014, vichy wrote: hi all: below patch introduce unbind and rebind interfaces during usb reset https://lists.ubuntu.com/archives/kernel-team/2014-April/042177.html If a driver claims additional interfaces, the claim may fail because the old binding instance may still own the

Re: [PATCH 1/1] HID: usbhid: add usb_clear_halt determination for next hid_start_in

2014-08-24 Thread Alan Stern
On Sun, 24 Aug 2014, vichy wrote: hi Alan: I originally tried using usb_reset_device, and it caused a deadlock: Unplug the HID device. I/O error occurs. hid_io_error schedules reset_work. The reset_work callback routine is hid_reset. It calls

Re: [PATCH 1/4] usbip: move usbip userspace code out of staging

2014-08-24 Thread Valentina Manea
On Tue, Aug 19, 2014 at 9:30 PM, Valentina Manea valentina.mane...@gmail.com wrote: At this point, USB/IP userspace code is fully functional and can be moved out of staging. Signed-off-by: Valentina Manea valentina.mane...@gmail.com Bumping this in case Greg missed the patch series.

[RFC PATCH 4/7] usb: gadget: gadgetfs: add reset API at usb_gadget_driver

2014-08-24 Thread Peter Chen
Add reset API at usb_gadget_driver Signed-off-by: Peter Chen peter.c...@freescale.com --- drivers/usb/gadget/legacy/inode.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/drivers/usb/gadget/legacy/inode.c b/drivers/usb/gadget/legacy/inode.c index

[RFC PATCH 2/7] usb: gadget: composite: add reset API at usb_gadget_driver

2014-08-24 Thread Peter Chen
Add reset API at usb_gadget_driver, and export it for other driver use (eg, configfs). Signed-off-by: Peter Chen peter.c...@freescale.com --- drivers/usb/gadget/composite.c | 13 - include/linux/usb/composite.h |1 + 2 files changed, 13 insertions(+), 1 deletion(-) diff --git

[RFC PATCH 5/7] usb: gadget: dbgp: add reset API at usb_gadget_driver

2014-08-24 Thread Peter Chen
Add reset API at usb_gadget_driver Signed-off-by: Peter Chen peter.c...@freescale.com --- drivers/usb/gadget/legacy/dbgp.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/usb/gadget/legacy/dbgp.c b/drivers/usb/gadget/legacy/dbgp.c index

[RFC PATCH 0/7] usb: gadget: add reset API at usb_gadget_driver

2014-08-24 Thread Peter Chen
Hi Felipe Alan, It is the follow-up for: http://www.spinics.net/lists/linux-usb/msg112193.html This patchset adds reset API at usb_gadget_driver, the UDC driver can call it at bus_reset handler instead of calling disconnect. The benefits of this patchset are: - We can let the gadget driver do

[RFC PATCH 1/7] usb: gadget: add reset API at usb_gadget_driver

2014-08-24 Thread Peter Chen
Adding reset API for UDC bus reset handler is useful for below two issues. Current disconnect API at usb_gadget_driver is also invoked at udc's bus reset handler, but the document says it is invoked when the host is disconnected. Besides, we may expect the gadget_driver to do different things

[RFC PATCH 3/7] usb: gadget: configfs: add reset API at usb_gadget_driver

2014-08-24 Thread Peter Chen
Add reset API at usb_gadget_driver Signed-off-by: Peter Chen peter.c...@freescale.com --- drivers/usb/gadget/configfs.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/configfs.c b/drivers/usb/gadget/configfs.c index 811c2c7..8fe33b4 100644 ---

[RFC PATCH 7/7] usb: gadget: udc-core: call gadget driver's disconnect at soft disconnect

2014-08-24 Thread Peter Chen
We have moved usb_gadget_disconnect to individual gadget driver's disconnect, besides, it is suitable to call gadget driver's disconnect before stopping udc, so using udc-driver-disconnect instead of usb_gadget_disconnect at soft disconnect. Signed-off-by: Peter Chen peter.c...@freescale.com ---

[RFC PATCH 6/7] usb: gadget: udc-core: delete usb_gadget_disconnect at usb_gadget_remove_driver

2014-08-24 Thread Peter Chen
The usb_gadget_disconnect will be called at individual gadget driver's disconnect, so delete it at udc core. Signed-off-by: Peter Chen peter.c...@freescale.com --- drivers/usb/gadget/udc/udc-core.c |1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/gadget/udc/udc-core.c

Good News

2014-08-24 Thread Henry Kjallman
Dear Sir/Madam, I saw your email address during the course of my research today. My name is Bill William Groner my wife and I won a Jackpot Lottery of $50 Million Dollars in December 2013, we are donating the sum of $1 million Dollars to 6 lucky individual all over the world as part of our

RE: [PATCH net-next 4/4] r8152: support firmware files

2014-08-24 Thread Hayes Wang
Francois Romieu [mailto:rom...@fr.zoreil.com] [...] +static void rtl_request_firmware(struct r8152 *tp) +{ + char *fw_name = NULL; + + if (tp-rtl_fw.fw) + goto out_request; + + switch (tp-version) { + case RTL_VER_01: + fw_name =

RE: [PATCH net-next 0/4] r8152: firmware support

2014-08-24 Thread Hayes Wang
From: David Miller [mailto:da...@davemloft.net] [...] You haven't told us why you need to do this. These are just programming registers in the chip, and I see no reason to not keep these in the driver with real code. I'm not applying this series, you haven't explained what is happening

Re: [PATCH net-next 0/4] r8152: firmware support

2014-08-24 Thread David Miller
From: Hayes Wang hayesw...@realtek.com Date: Mon, 25 Aug 2014 03:43:04 + From: David Miller [mailto:da...@davemloft.net] [...] You haven't told us why you need to do this. These are just programming registers in the chip, and I see no reason to not keep these in the driver with real

Re: [PATCH v2 1/1] usb: ehci: using wIndex + 1 for hub port

2014-08-24 Thread Peter Chen
On Tue, Aug 5, 2014 at 8:28 AM, Peter Chen peter.c...@freescale.com wrote: The roothub's index per controller is from 0, but the hub port index per hub is from 1, this patch fixes can't find device at roohub problem for connecting test fixture at roohub when do USB-IF Embedded Host High-Speed