Re: Huawei Wireless data modem in Freescale i.MX6 Board

2013-10-01 Thread Thomas Tj
Dear Dan Thanks for the reply. * PF the output(log.txt) of the below command. lsusb -v -d 12d1:140b * USB_Modeswitch operation also i've done. * Please let me know how to get the WWAN (I thing it's WLAN) connection manager in the ARM Board. (while connecting the USB broadband modem in x86,

Re: [PATCHv2] staging: dwc2: Fix code that gets the nummber of host channels

2013-10-01 Thread Dan Carpenter
On Tue, Oct 01, 2013 at 01:21:28AM +, Paul Zimmerman wrote: From: Dan Carpenter [mailto:dan.carpen...@oracle.com] Sent: Monday, September 30, 2013 6:09 PM Yeah. I guess it's fine... I was going to suggest adding the + 1 in a different place but actually it doesn't matter. The

Re: [PATCHv2] staging: dwc2: Fix code that gets the nummber of host channels

2013-10-01 Thread Matthijs Kooijman
On Tue, Oct 01, 2013 at 10:05:17AM +0300, Dan Carpenter wrote: On Tue, Oct 01, 2013 at 01:21:28AM +, Paul Zimmerman wrote: From: Dan Carpenter [mailto:dan.carpen...@oracle.com] Sent: Monday, September 30, 2013 6:09 PM Yeah. I guess it's fine... I was going to suggest adding the

[PATCH V3] USB: gadget: epautoconf: fix ep maxpacket check

2013-10-01 Thread Robert Baldyga
This patch fix validation of maxpacket value given in endpoint descriptor. Add check of maxpacket for bulk endpoints. If maxpacket is not set in descriptor, it's set to maximum value for given type on endpoint in used speed. Correct maxpacket value is: FULL-SPEEDHIGH-SPEED

Re: [PATCHv2] staging: dwc2: Fix code that gets the nummber of host channels

2013-10-01 Thread Dan Carpenter
On Tue, Oct 01, 2013 at 09:51:07AM +0200, Matthijs Kooijman wrote: On Tue, Oct 01, 2013 at 10:05:17AM +0300, Dan Carpenter wrote: On Tue, Oct 01, 2013 at 01:21:28AM +, Paul Zimmerman wrote: From: Dan Carpenter [mailto:dan.carpen...@oracle.com] Sent: Monday, September 30, 2013 6:09

Re: [PATCH] usb: gadget: Add UDC driver for Aeroflex Gaisler GRUSBDC

2013-10-01 Thread Andreas Larsson
Hi! Thank you for the feedback! Sorry for the delayed response back. Responses inline. On 2013-09-18 19:15, Felipe Balbi wrote: Hi, On Mon, Aug 12, 2013 at 04:05:10PM +0200, Andreas Larsson wrote: diff --git a/drivers/usb/gadget/gr_udc.c b/drivers/usb/gadget/gr_udc.c new file mode 100644

Re: [PATCH v3] usb-serial: Moxa UPORT 12XX/14XX/16XX driver

2013-10-01 Thread Johan Hovold
On Wed, Sep 25, 2013 at 11:53 AM, Andrew Lunn and...@lunn.ch wrote: Add a driver which supports the following Moxa USB to serial converters I have not had time to review v3 yet, but I should be able to look at it by the end of the week. Thanks, Johan -- To unsubscribe from this list: send the

Re: [PATCHv2] staging: dwc2: Fix code that gets the nummber of host channels

2013-10-01 Thread Dinh Nguyen
Hi Dan, On 10/1/13 3:23 AM, Dan Carpenter wrote: On Tue, Oct 01, 2013 at 09:51:07AM +0200, Matthijs Kooijman wrote: On Tue, Oct 01, 2013 at 10:05:17AM +0300, Dan Carpenter wrote: On Tue, Oct 01, 2013 at 01:21:28AM +, Paul Zimmerman wrote: From: Dan Carpenter

Re: [PATCHv2] staging: dwc2: Fix code that gets the nummber of host channels

2013-10-01 Thread Matthijs Kooijman
Hi Dinh, Somehow I assumed that was fixed by the hardware, but I see now that you are right. Yes, making the definition larger is better than moving the + 1. This was my original fix to the problem, but I thought that it would be confusing when reading the code. I also thought about the +1

Re: [PATCHv2] staging: dwc2: Fix code that gets the nummber of host channels

2013-10-01 Thread Dinh Nguyen
Hi Matthijs, On 10/1/13 6:08 AM, Matthijs Kooijman wrote: Hi Dinh, Somehow I assumed that was fixed by the hardware, but I see now that you are right. Yes, making the definition larger is better than moving the + 1. This was my original fix to the problem, but I thought that it would be

Re: [PATCHv2] staging: dwc2: Fix code that gets the nummber of host channels

2013-10-01 Thread Dinh Nguyen
Hi Matthijs, On 10/1/13 6:08 AM, Matthijs Kooijman wrote: Hi Dinh, Somehow I assumed that was fixed by the hardware, but I see now that you are right. Yes, making the definition larger is better than moving the + 1. This was my original fix to the problem, but I thought that it would be

Driver for TP-Link on Ubunt server 12

2013-10-01 Thread edison...@fa.sg
Hi, Please help me to add the driver on my TP-Link device based on the dmesg log below. [85323.910874] usb 1-3: Manufacturer: TP-LINK, Incorporated [85323.910878] usb 1-3: SerialNumber: 863745010102099 [85323.934026] option 1-3:1.0: GSM modem (1-port) converter detected [85323.934183] usb

Re: [PATCHv2] staging: dwc2: Fix code that gets the nummber of host channels

2013-10-01 Thread Dan Carpenter
On Tue, Oct 01, 2013 at 06:22:35AM -0500, Dinh Nguyen wrote: Hi Matthijs, On 10/1/13 6:08 AM, Matthijs Kooijman wrote: Hi Dinh, Somehow I assumed that was fixed by the hardware, but I see now that you are right. Yes, making the definition larger is better than moving the + 1. This was

Re: [PATCHv2] staging: dwc2: Fix code that gets the nummber of host channels

2013-10-01 Thread Dinh Nguyen
On 10/1/13 6:29 AM, Dan Carpenter wrote: On Tue, Oct 01, 2013 at 06:22:35AM -0500, Dinh Nguyen wrote: Hi Matthijs, On 10/1/13 6:08 AM, Matthijs Kooijman wrote: Hi Dinh, Somehow I assumed that was fixed by the hardware, but I see now that you are right. Yes, making the definition larger is

Re: [PATCH] usb: wusbcore: fix build warning on 64-bit builds

2013-10-01 Thread Thomas Pugliese
On Mon, 30 Sep 2013, Greg KH wrote: On Mon, Sep 30, 2013 at 10:48:46PM -0500, Thomas Pugliese wrote: Fix a build warning found by the kbuild test robot in the most recent wusbcore patches. Signed-off-by: Thomas Pugliese thomas.pugli...@gmail.com You forgot a Reported-by: line here

Re: [PATCHv2] staging: dwc2: Fix code that gets the nummber of host channels

2013-10-01 Thread Dan Carpenter
On Tue, Oct 01, 2013 at 06:26:29AM -0500, Dinh Nguyen wrote: [resend]: previous reply didn't include Matthijs He sets his Mail-Followup-To: so that we don't CC him on replies. I assume it's deliberate because he only wants the copy from the mailing list? regards, dan carpenter -- To

Re: [PATCHv2] staging: dwc2: Fix code that gets the nummber of host channels

2013-10-01 Thread Matthijs Kooijman
Hey Dan, Dinh, [resend]: previous reply didn't include Matthijs He sets his Mail-Followup-To: so that we don't CC him on replies. I assume it's deliberate because he only wants the copy from the mailing list? Exactly, I just set that for whatever mailing list I subscribe to. However,

Re: [PATCH v4 1/3] usb: dwc3: msm: Add device tree binding information

2013-10-01 Thread Ivan T. Ivanov
Hi, I am sorry for delay answer. On Thu, 2013-09-26 at 10:46 +0100, Mark Rutland wrote: On Mon, Sep 23, 2013 at 08:31:48PM +0100, Felipe Balbi wrote: Hi, On Tue, Aug 20, 2013 at 12:56:03PM +0300, Ivan T. Ivanov wrote: From: Ivan T. Ivanov iiva...@mm-sol.com MSM USB3.0 core

Re: [PATCH v4 1/3] usb: dwc3: msm: Add device tree binding information

2013-10-01 Thread Ivan T. Ivanov
Hi, On Mon, 2013-09-23 at 14:31 -0500, Felipe Balbi wrote: Hi, On Tue, Aug 20, 2013 at 12:56:03PM +0300, Ivan T. Ivanov wrote: From: Ivan T. Ivanov iiva...@mm-sol.com MSM USB3.0 core wrapper consist of USB3.0 IP from Synopsys (SNPS) and HS, SS PHY's control and configuration

Re: how to trigger function in usb_device_pm_ops

2013-10-01 Thread yoma sophian
2013/10/1 Alan Stern st...@rowland.harvard.edu: On Tue, 1 Oct 2013, yoma sophian wrote: 2013/9/30 Alan Stern st...@rowland.harvard.edu: On Mon, 30 Sep 2013, yoma sophian wrote: hi all: We are trying to make usb hibernate work on our embedded system. below are configs we enable for

Re: Driver for TP-Link on Ubunt server 12

2013-10-01 Thread Thomas Schäfer
Am 01.10.2013 13:27, schrieb edison...@fa.sg: Hi, Please help me to add the driver on my TP-Link device based on the dmesg log below. Ok, this is an TP-link MA260. option and qmi_wwan Kernel-modules work with that device. You should not try to load usbserial. May be you did it or a wrong

Re: [PATCH v5 1/3] usb: dwc3: msm: Add device tree binding information

2013-10-01 Thread Ivan T. Ivanov
Hi, On Mon, 2013-09-23 at 16:03 -0600, Stephen Warren wrote: On 09/23/2013 01:32 PM, Felipe Balbi wrote: Hi, On Wed, Aug 21, 2013 at 04:29:44PM +0300, Ivan T. Ivanov wrote: From: Ivan T. Ivanov iiva...@mm-sol.com MSM USB3.0 core wrapper consist of USB3.0 IP from Synopsys (SNPS)

Re: [PATCH v5 1/3] usb: dwc3: msm: Add device tree binding information

2013-10-01 Thread Ivan T. Ivanov
Hi, On Mon, 2013-09-23 at 14:32 -0500, Felipe Balbi wrote: Hi, On Wed, Aug 21, 2013 at 04:29:44PM +0300, Ivan T. Ivanov wrote: From: Ivan T. Ivanov iiva...@mm-sol.com MSM USB3.0 core wrapper consist of USB3.0 IP from Synopsys (SNPS) and HS, SS PHY's control and configuration

Re: Driver for TP-Link on Ubunt server 12

2013-10-01 Thread Thomas Schäfer
Hi Edison, we should start again. You are using ubuntu 12? Is it right, that your kernel-version is 3.2.0-30 ? (uname -a ) I am not sure, but in this case you can forget qmi and you can focus on option. In your first mail usb-switch did work correctly. you should see 2357:f000 directly

[PATCH] usb: musb: dsps: do not bind to musb-hdrc

2013-10-01 Thread Sebastian Andrzej Siewior
This went unnoticed in durin the merge window: The dsps driver creates a child device for the musb core driver _and_ attaches the of_node to it so devm_usb_get_phy_by_phandle() grabs the correct phy and attaches the devm resources to the proper device. We could also use the parent device but then

Re: [PATCH v3 4/5] dma: cppi41: only allocate descriptor memory once

2013-10-01 Thread Daniel Mack
Hi Sebastian, sorry for the long delay, I got distracted by other things. On 26.09.2013 10:26, Sebastian Andrzej Siewior wrote: * Daniel Mack | 2013-09-22 16:50:03 [+0200]: cdd-cd and cdd-descs_phys are allocated DESCS_AREAS times from init_descs() and freed as often from purge_descs().

[PATCH 2/3] dma: cppi41: use cppi41_pop_desc() where possible

2013-10-01 Thread Daniel Mack
Use cppi41_pop_desc() when appropriate instead of open-coding the same functionality again. That makes the code more readable. The function has to be moved some lines up for this change. Signed-off-by: Daniel Mack zon...@gmail.com --- drivers/dma/cppi41.c | 23 +++ 1 file

[PATCH 1/3] dma: cppi41: restore more registers

2013-10-01 Thread Daniel Mack
With active users over suspend/resume cycles, it turns out that more registers, in particular DMA_TDFDQ and RXHPCRA0, have to be restored on resume. Signed-off-by: Daniel Mack zon...@gmail.com --- drivers/dma/cppi41.c | 15 +++ 1 file changed, 15 insertions(+) diff --git

[PATCH 0/3] dma: cppi41: more suspend/resume patches

2013-10-01 Thread Daniel Mack
While my first series makes the cppi41 driver survive suspend/resume cycles as long as users are fully removed and added back after resume, here are some more patches which make it all work completely. Patch #1 restores more registers on resume time. Patch #2 is a cosmetic cleanup that emerged

Re: how to trigger function in usb_device_pm_ops

2013-10-01 Thread yoma sophian
hi all: When we use echo mem /sys/power/state , we didn't see any function mem is a kind of sleep, not a kind of hibernation. But I don't see any usb sleep funciton called from log What messages do you expect to see? When I try the command yesterday, I didn't plug in usb dick. :) I

[PATCH 3/3] dma: cppi41: move -EAGAIN in tear_down

2013-10-01 Thread Daniel Mack
In cppi41_tear_down_chan(), bail out earlier in case td_seen is unset instead of popping another descriptor when td_desc_seen is also unset. My system ran into WARN() condition multiple times when cppi41_tear_down_chan() was called for channels that had all of td_queued, td_seen and td_seen set

[PATCH v2 2/5] usb: musb: call musb_port_suspend from musb_bus_suspend

2013-10-01 Thread Daniel Mack
Make musb_port_suspend() externally available, and call it when to host goes into suspend. This allows the core to go into suspend while a device is connected. Signed-off-by: Daniel Mack zon...@gmail.com --- drivers/usb/musb/musb_host.c| 2 ++ drivers/usb/musb/musb_host.h| 2 ++

[PATCH v2 3/5] usb: musb: conditionally save and restore the context on suspend

2013-10-01 Thread Daniel Mack
It appears not all platforms featuring a musb core need to save the musb core registers at suspend time and restore them on resume. The dsps platform does, however. So add a bit in struct musb_hdrc_platform_data to let platforms specify their need of such action being taken. Signed-off-by:

[PATCH v2 4/5] usb: musb: dsps: add {tx,rx}_mode to wrapper

2013-10-01 Thread Daniel Mack
rx_mode and tx_mode need to be read at suspend time and restored on resume for dsps platforms. So add it to the wrapper struct first, and initialize the values. Signed-off-by: Daniel Mack zon...@gmail.com --- drivers/usb/musb/musb_dsps.c | 4 1 file changed, 4 insertions(+) diff --git

[PATCH v2 1/5] usb: musb: move port reset to worker

2013-10-01 Thread Daniel Mack
musb_port_reset() sleeps, so we can't call it from atomic context. It is, however, called from places inside musb_hub_control() while musb-lock is held, which leads to a scheduling while atomic warning. Fix this by moving the logic into a worker, and call it where the function was previously

[PATCH v2 5/5] usb: musb: dsps: add support for suspend and resume

2013-10-01 Thread Daniel Mack
The dsps platform needs to save save some registers at suspend time and restore them after resume. This patch adds a struct for these registers, and also lets the musb core know that the core registers need to be saved as well. Signed-off-by: Daniel Mack zon...@gmail.com ---

[PATCH v2 0/5] usb: musb_dsps: support for suspend and resume

2013-10-01 Thread Daniel Mack
I've been working on some patches that allow suspending and resuming the musb-dsps platform. This was tested for host mode only. With these patches applied, I can successfully bring an AM335x board to suspend with a USB media connected, and access it again after resume. This works for both PIO

Re: [PATCH] USB: gadget: s3c-hsotg: fix maxpacket size

2013-10-01 Thread Felipe Balbi
Hi, On Fri, Sep 27, 2013 at 12:31:09PM +0200, Robert Baldyga wrote: This patch changes ep maxpacket value from 512 to 1024, becouse it's needed shouldn't you use 3072 instead to cope with high bandwidth ISO endpoints ? to handle interupt and isochronous endpoints in high-speed mode. This

Re: [PATCH v2] gadget: udc-core: Do not report -EISNAM error from gadgetfs

2013-10-01 Thread Felipe Balbi
Hi, On Sat, Sep 28, 2013 at 12:05:34AM -0300, Fabio Estevam wrote: From: Fabio Estevam fabio.este...@freescale.com When mounting a gadgetfs the following error message is seen: $ modprobe gadgetfs gadgetfs: USB Gadget filesystem, version 24 Aug 2004 $ mkdir /dev/gadget $ mount -t

Re: [PATCH] usb: musb: dsps: do not bind to musb-hdrc

2013-10-01 Thread Tom Rini
On Tue, Oct 01, 2013 at 02:31:53PM +0200, Sebastian Andrzej Siewior wrote: This went unnoticed in durin the merge window: The dsps driver creates a child device for the musb core driver _and_ attaches the of_node to it so devm_usb_get_phy_by_phandle() grabs the correct phy and attaches the

Re: [PATCH v2] USB: gadget: f_fs: fix error handling

2013-10-01 Thread Felipe Balbi
Hi, On Mon, Sep 30, 2013 at 01:50:25PM +0200, Michal Nazarewicz wrote: On Mon, Sep 30 2013, Robert Baldyga wrote: Hello, This is update for my patch fixing error handling in functionfs module. I have fixed typos from previous version, and changed description for greater clearity as

Re: [PATCH v2] gadget: udc-core: Do not report -EISNAM error from gadgetfs

2013-10-01 Thread Fabio Estevam
On Tue, Oct 1, 2013 at 10:57 AM, Felipe Balbi ba...@ti.com wrote: ps: it's a good practice to Cc people who have been reviewing your patches. Yes, Alan and yourself were added to Cc. -- To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to

Re: [PATCH] usb: gadget: Add UDC driver for Aeroflex Gaisler GRUSBDC

2013-10-01 Thread Felipe Balbi
Hi, On Tue, Oct 01, 2013 at 10:34:47AM +0200, Andreas Larsson wrote: +/* #define VERBOSE_DEBUG */ we don't want this, we want verbose debug to be selectable on Kconfig, which already is ;-) I was only aware of CONFIG_USB_GADGET_DEBUG leading to DEBUG being defined, not that any Kconfig

Re: [PATCH usb 1/2] usb: musb: Add missing ATOMIC_INIT_NOTIFIER_HEAD

2013-10-01 Thread Felipe Balbi
Hi, On Thu, Sep 26, 2013 at 02:00:59AM +0200, Pavel Machek wrote: On Wed, Sep 25, 2013 at 10:17:38AM +0200, Pali Rohár wrote: On Wednesday 18 September 2013 19:03:33 Pali Rohár wrote: twl-phy.notifier is not initalized Signed-off-by: Pali Rohár pali.ro...@gmail.com diff

Re: [PATCH v2] gadget: udc-core: Do not report -EISNAM error from gadgetfs

2013-10-01 Thread Felipe Balbi
Hi, On Tue, Oct 01, 2013 at 11:04:30AM -0300, Fabio Estevam wrote: On Tue, Oct 1, 2013 at 10:57 AM, Felipe Balbi ba...@ti.com wrote: ps: it's a good practice to Cc people who have been reviewing your patches. Yes, Alan and yourself were added to Cc. heh, my eyes are failing me... Now I

Re: [PATCH 1/4] usb: musb: gadget: move the use_dma to the upper if

2013-10-01 Thread Felipe Balbi
On Tue, Aug 13, 2013 at 07:49:42PM +0200, Sebastian Andrzej Siewior wrote: If we check the use_dma before calling -channel_program() then in case of use_dma is 0 we don't have to remove the MUSB_TXCSR_DMAENAB bit because we never set it. Signed-off-by: Sebastian Andrzej Siewior

Re: [PATCH 2/4] usb: musb: add a type to each dma engine

2013-10-01 Thread Felipe Balbi
Hi, On Tue, Aug 13, 2013 at 07:49:43PM +0200, Sebastian Andrzej Siewior wrote: This patch defines four types of current supported DMA engines and assignes them to each dma engine. This should get rid of a few ifdefs later on. Signed-off-by: Sebastian Andrzej Siewior bige...@linutronix.de I

Re: [PATCH v2 1/1] usb: gadget: f_fs: Add support for SuperSpeed Mode

2013-10-01 Thread Felipe Balbi
Hi, On Mon, Sep 30, 2013 at 02:31:50PM +0530, Manu Gautam wrote: On 9/28/2013 1:52 AM, Paul Zimmerman wrote: From: linux-usb-ow...@vger.kernel.org [mailto:linux-usb-ow...@vger.kernel.org] On Behalf Of Manu Gautam Sent: Thursday, September 26, 2013 12:08 AM On 9/26/2013 2:10 AM, Felipe

Re: [PATCH 1/1] usb: gadget: mark init as late_initcall

2013-10-01 Thread Felipe Balbi
Hi, On Tue, Oct 01, 2013 at 06:17:56AM +0200, Marek Vasut wrote: Dear Chen Peter-B29397, Since we introduce -EPROBE_DEFER for udc driver, it will be probed at late_initcall if it is defered. When the gadget is built in, it will return couldn't find an available UDC at such

Re: [PATCH v2] USB: gadget: s3c-hsotg: add isochronous transfers support

2013-10-01 Thread Felipe Balbi
Hi, On Tue, Sep 24, 2013 at 11:47:16AM +0200, Robert Baldyga wrote: Hello, This is update for my proposal for isochronous transfers support in s3c-hsotg driver. I've fixed issuses pointed by Bartlomiej Zolnierkiewicz. For more information, please check the change log at the end of the mail.

Re: how to trigger function in usb_device_pm_ops

2013-10-01 Thread Alan Stern
On Tue, 1 Oct 2013, yoma sophian wrote: hi all: When we use echo mem /sys/power/state , we didn't see any function mem is a kind of sleep, not a kind of hibernation. But I don't see any usb sleep funciton called from log What messages do you expect to see? When I try the

Re: [PATCH v2] gadget: udc-core: Do not report -EISNAM error from gadgetfs

2013-10-01 Thread Alan Stern
On Tue, 1 Oct 2013, Felipe Balbi wrote: Hi, On Sat, Sep 28, 2013 at 12:05:34AM -0300, Fabio Estevam wrote: From: Fabio Estevam fabio.este...@freescale.com When mounting a gadgetfs the following error message is seen: $ modprobe gadgetfs gadgetfs: USB Gadget filesystem, version

Re: [PATCH v4 07/19] usb/gadget: f_mass_storage: use fsg_common_setup in fsg_common_init

2013-10-01 Thread Felipe Balbi
On Thu, Sep 26, 2013 at 02:38:21PM +0200, Andrzej Pietrasiewicz wrote: fsg_common_init is a lengthy function. Now there are helper functions which cover all parts of it. Use them. Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com Signed-off-by: Kyungmin Park

Re: [PATCH 1/1] usb: gadget: mark init as late_initcall

2013-10-01 Thread Alan Stern
On Tue, 1 Oct 2013, Felipe Balbi wrote: Hi, On Tue, Oct 01, 2013 at 06:17:56AM +0200, Marek Vasut wrote: Dear Chen Peter-B29397, Since we introduce -EPROBE_DEFER for udc driver, it will be probed at late_initcall if it is defered. When the gadget is built in, it will

Re: [PATCH v2 5/5] usb: musb: dsps: add support for suspend and resume

2013-10-01 Thread Felipe Balbi
Hi, On Tue, Oct 01, 2013 at 03:39:57PM +0200, Daniel Mack wrote: The dsps platform needs to save save some registers at suspend time and restore them after resume. This patch adds a struct for these registers, and also lets the musb core know that the core registers need to be saved as well.

Re: [PATCH v2 5/5] usb: musb: dsps: add support for suspend and resume

2013-10-01 Thread Daniel Mack
On 01.10.2013 16:59, Felipe Balbi wrote: On Tue, Oct 01, 2013 at 03:39:57PM +0200, Daniel Mack wrote: The dsps platform needs to save save some registers at suspend time and restore them after resume. This patch adds a struct for these registers, and also lets the musb core know that the core

[PATCH v3] ARM: omap: edma: add suspend suspend/resume hooks

2013-10-01 Thread Daniel Mack
This patch makes the edma driver resume correctly after suspend. Tested on an AM33xx platform with cyclic audio streams. The code was shamelessly taken from an ancient BSP tree. Signed-off-by: Daniel Mack zon...@gmail.com --- arch/arm/common/edma.c | 133

[PATCH] usb: wusbcore: avoid stack overflow in URB enqueue error path

2013-10-01 Thread Thomas Pugliese
This patch modifies wa_urb_enqueue to return an error and not call the urb completion routine if it failed to enqueue the urb because the HWA device is gone. This prevents a stack overflow due to infinite submit/complete recursion when unplugging the HWA while connected to a HID device.

Re: EHCI bus glue driver works for storage, fails for a WiFi module

2013-10-01 Thread Oleksij Rempel
Hi Arokux, Am 29.09.2013 23:16, schrieb Arokux X: Hi Oleksij, On Sun, Sep 29, 2013 at 10:01 PM, Oleksij Rempel li...@rempel-privat.de wrote: Hi Arokux, Allan already pointed on timing issue. If you compare bad and working logs you will see that interval on bad log is match more shorter.

staging: dwc2: Issue with isochronous transfers through a hub?

2013-10-01 Thread Dinh Nguyen
Hi, Just wondering if anyone tried using a webcam with the DWC2 driver? The webcam works great when plugged in directly to the USB port, but appears to have alot of dropped frames when used with a HS hub. I'll debug it of course, but just wondering if anyone has had a similar experience?

Re: how to trigger function in usb_device_pm_ops

2013-10-01 Thread yoma sophian
hi alan: 2013/10/1 Alan Stern st...@rowland.harvard.edu: On Tue, 1 Oct 2013, yoma sophian wrote: hi all: When we use echo mem /sys/power/state , we didn't see any function mem is a kind of sleep, not a kind of hibernation. But I don't see any usb sleep funciton called from log

Re: [PATCH v2 5/5] usb: musb: dsps: add support for suspend and resume

2013-10-01 Thread Felipe Balbi
On Tue, Oct 01, 2013 at 05:04:04PM +0200, Daniel Mack wrote: On 01.10.2013 16:59, Felipe Balbi wrote: On Tue, Oct 01, 2013 at 03:39:57PM +0200, Daniel Mack wrote: The dsps platform needs to save save some registers at suspend time and restore them after resume. This patch adds a struct for

[PATCH v3] usb: musb: dsps: add support for suspend and resume

2013-10-01 Thread Daniel Mack
The dsps platform needs to save save some registers at suspend time and restore them after resume. This patch adds a struct for these registers, and also lets the musb core know that the core registers need to be saved as well. Signed-off-by: Daniel Mack zon...@gmail.com ---

[PATCH 2/3] usb: wusbcore: set the RPIPE bOverTheAirInterval for isoc endpoints

2013-10-01 Thread Thomas Pugliese
This patch sets the RPIPE bOverTheAirInterval field for RPIPES which refer to isochronous endpoints. Signed-off-by: Thomas Pugliese thomas.pugli...@gmail.com --- drivers/usb/wusbcore/wa-rpipe.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

[PATCH] sound: usb: support wireless devices in snd_usb_parse_datainterval

2013-10-01 Thread Thomas Pugliese
Hi, This patch adds support for dev speed USB_SPEED_WIRELESS in snd_usb_parse_datainterval which allows the usb sound core to create ISO urbs with the correct number and size of buffers. Signed-off-by: Thomas Pugliese thomas.pugli...@gmail.com --- sound/usb/helper.c |1 + 1 file changed,

[PATCH] sound: usb: add support for wireless USB devices

2013-10-01 Thread Thomas Pugliese
This patch updates snd_usb_audio_create also support devices whose speed == USB_SPEED_WIRELESS. Signed-off-by: Thomas Pugliese thomas.pugli...@gmail.com --- sound/usb/card.c |1 + 1 file changed, 1 insertion(+) diff --git a/sound/usb/card.c b/sound/usb/card.c index 64952e2..ef76aa0 100644

Re: [PATCH 1/4] usb: Don't enable USB 2.0 Link PM by default.

2013-10-01 Thread Sarah Sharp
On Mon, Sep 30, 2013 at 05:26:28PM +0300, Mathias Nyman wrote: Cc: sta...@vger.kernel.org --- drivers/usb/core/driver.c |3 + drivers/usb/core/sysfs.c|1 + drivers/usb/host/xhci-mem.c | 10 --- drivers/usb/host/xhci.c | 152 +++

New USB core API to change interval and max packet size

2013-10-01 Thread Sarah Sharp
On Tue, Oct 01, 2013 at 10:01:08PM +0300, Xenia Ragiadakou wrote: Hi Sarah, I read the mail on 'possible conflict between xhci_hcd and a patched usbhid'. For reference to others: http://marc.info/?l=linux-usbm=138064948726038w=2 http://marc.info/?l=linux-usbm=138065201426880w=2 I looked in

Re: how to trigger function in usb_device_pm_ops

2013-10-01 Thread yoma sophian
hi alan: 2013/10/2 Alan Stern st...@rowland.harvard.edu: On Wed, 2 Oct 2013, yoma sophian wrote: 1. in susped, we will gate our ehci clk in resumt, we need to release clk gating to let ehci control work. and above are platform specific behavior need to do there seems no such place to do

Re: New USB core API to change interval and max packet size

2013-10-01 Thread Xenia Ragiadakou
On 10/01/2013 11:45 PM, Sarah Sharp wrote: On Tue, Oct 01, 2013 at 10:01:08PM +0300, Xenia Ragiadakou wrote: Hi Sarah, I read the mail on 'possible conflict between xhci_hcd and a patched usbhid'. For reference to others: http://marc.info/?l=linux-usbm=138064948726038w=2

Re: [GIT PULL] USB fixes for v3.12-rc4

2013-10-01 Thread Greg KH
On Tue, Oct 01, 2013 at 09:30:45AM -0500, Felipe Balbi wrote: Hi Greg, Here's another set of fixes. Nothing really major, just minor fixes. cheers The following changes since commit d3675e3a481d3320e214984a10577fe06518c5bf: usb: s3c-hsotg: do not disconnect gadget when receiving

[PATCH 2/2] usb: chipidea: add Intel Clovertrail pci id

2013-10-01 Thread David Cohen
From: David Cohen david.a.co...@intel.com Signed-off-by: David Cohen david.a.co...@intel.com --- drivers/usb/chipidea/ci_hdrc_pci.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/usb/chipidea/ci_hdrc_pci.c b/drivers/usb/chipidea/ci_hdrc_pci.c index 08a724b..d514332 100644 ---

[PATCH 1/2] usb: chipidea: cosmetic clean up on pci id list

2013-10-01 Thread David Cohen
From: David Cohen david.a.co...@intel.com In order to fill a struct with zeroes just the first element needs to be set to 0, the rest can me omitted. This looks cleaner when reading the code. This patch does such clean up change on last item of pci id list. Signed-off-by: David Cohen

Re: [PATCH 1/2] usb: chipidea: cosmetic clean up on pci id list

2013-10-01 Thread David Cohen
On 10/01/2013 02:29 PM, David Cohen wrote: From: David Cohen david.a.co...@intel.com I gotta fix my e-mail to use @linux.intel.com. Please, see my v2 patches. BR, David -- To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to majord...@vger.kernel.org

[PATCH v2 2/2] usb: chipidea: add Intel Clovertrail pci id

2013-10-01 Thread David Cohen
Signed-off-by: David Cohen david.a.co...@linux.intel.com --- drivers/usb/chipidea/ci_hdrc_pci.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/usb/chipidea/ci_hdrc_pci.c b/drivers/usb/chipidea/ci_hdrc_pci.c index 08a724b..d514332 100644 --- a/drivers/usb/chipidea/ci_hdrc_pci.c

[PATCH v2 1/2] usb: chipidea: cosmetic clean up on pci id list

2013-10-01 Thread David Cohen
In order to fill a struct with zeroes just the first element needs to be set to 0, the rest can me omitted. This looks cleaner when reading the code. This patch does such clean up change on last item of pci id list. Signed-off-by: David Cohen david.a.co...@linux.intel.com ---

[PATCH] staging: dwc2: Make dwc2_hw_params.host_channels large enough

2013-10-01 Thread Matthijs Kooijman
The hardware offers a 4-bit register containing the number of host channels. However, the values of these register mean 1-16 host channels, not 0-15. Since the dwc2_hw_params struct stores the actual number of host channels supported instead of the raw register value, it should be 5 bits wide

Usb 3.0 external dd offlined, not ready after error recovery

2013-10-01 Thread Jorge Muñoz Camadro
When connecting a eternal usb dd Western Digital My Passport usb 3.0 dmesg shows the device is outlined, not ready after error recovery. Linux distro: Arch x64 Kernel: 3.11.2-1 Linux firmware: 20130903-1 Kmod: 15-1 Systemd: 207-5 Udisks2: 2.1.1-3 Udevil: 0.4.1-1 Dmesg: [ 1405.646775] usb 1-2:

Re: [PATCH] staging: dwc2: Make dwc2_hw_params.host_channels large enough

2013-10-01 Thread Dinh Nguyen
On 10/1/13 4:42 PM, Matthijs Kooijman wrote: The hardware offers a 4-bit register containing the number of host channels. However, the values of these register mean 1-16 host channels, not 0-15. Since the dwc2_hw_params struct stores the actual number of host channels supported instead of the

[PATCH net-next] net:drivers/net: Miscellaneous conversions to ETH_ALEN

2013-10-01 Thread Joe Perches
Convert the memset/memcpy uses of 6 to ETH_ALEN where appropriate. Also convert some struct definitions and u8 array declarations of [6] to ETH_ALEN. Signed-off-by: Joe Perches j...@perches.com --- drivers/net/ethernet/8390/ax88796.c| 2 +- drivers/net/ethernet/amd/atarilance.c

Re: [PATCH v2 1/1] usb: gadget: f_fs: Add support for SuperSpeed Mode

2013-10-01 Thread Manu Gautam
On 10/1/2013 8:07 PM, Felipe Balbi wrote: Hi, On Mon, Sep 30, 2013 at 02:31:50PM +0530, Manu Gautam wrote: On 9/28/2013 1:52 AM, Paul Zimmerman wrote: From: linux-usb-ow...@vger.kernel.org [mailto:linux-usb-ow...@vger.kernel.org] On Behalf Of Manu Gautam Sent: Thursday, September 26, 2013