Re: rndis_host: rndis device enumeration

2013-09-27 Thread Bjørn Mork
Bin Liu writes: > Hi, > > Sorry if I missed any previous discussion on this topic. > > The msdn link [1] says that > > The host does not continuously poll the USB Control endpoint for input > control messages. Upon placing a control message on its Control > endpoint, the device must return a noti

Re: [help] imx27 - isp1504 : unable to init transceiver, probably missing

2013-09-27 Thread Mylene Josserand
Hi everyone, Sorry for the late answer ! Le 26/09/2013 17:59, Christoph Fritz a écrit : > On Wed, 2013-09-25 at 16:00 +0200, Eric Bénard wrote: >> Le Wed, 25 Sep 2013 12:17:40 +0200, >> Christoph Fritz a écrit : >> >>> On Tue, 2013-04-09 at 14:28 -0300, Fabio Estevam wrote: On Mon, Apr 8,

[PATCH] USB: EHCI: tegra: drop clk_put for devm_clk_get in tegra_ehci_probe()

2013-09-27 Thread Wei Yongjun
From: Wei Yongjun devm_clk_get() is used so there is no reason to explicitly call clk_put() in probe or remove functions. Signed-off-by: Wei Yongjun --- drivers/usb/host/ehci-tegra.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/

Re: [PATCH 00/51] DMA mask changes

2013-09-27 Thread Russell King - ARM Linux
On Thu, Sep 26, 2013 at 10:23:08PM +0200, Rafał Miłecki wrote: > 2013/9/19 Russell King - ARM Linux : > > This email is only being sent to the mailing lists in question, not to > > anyone personally. The list of individuals is far to great to do that. > > I'm hoping no mailing lists reject the pat

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

2013-09-27 Thread Robert Baldyga
This patch add missing error check in ffs_func_bind() function, after ffs_do_descs() funcion call for hs descriptors. Without this check it's possible that the module will try dereference incorrect pointer. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/f_fs.c |3 +++ 1 file changed, 3

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

2013-09-27 Thread Robert Baldyga
This patch fixes validation of maxpacket value given in endpoint descriptor. Added check of maxpacket for bulk endpoints. Correct maxpacket value is: FULL-SPEED HIGH-SPEED BULK 64 512 INTERRUPT64 1024 ISOCHRONOUS 10231024 Signed-off-by: Robert

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

2013-09-27 Thread Robert Baldyga
This patch changes ep maxpacket value from 512 to 1024, becouse it's needed to handle interupt and isochronous endpoints in high-speed mode. This change doesn't affect on driver functioning, becouse fifo size (3072) is still enough for the maximum transaction payload (3*1024 for high-speed high-ban

[PATCH 1/1] USB: EHCI: tegra: Remove incorrect clk_put

2013-09-27 Thread Sachin Kamat
tegra->clk is obtained using devm_clk_get(). Hence clk_put should not be used. Signed-off-by: Sachin Kamat Cc: Stephen Warren --- drivers/usb/host/ehci-tegra.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c

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

2013-09-27 Thread Michal Nazarewicz
On Fri, Sep 27 2013, Robert Baldyga wrote: > This patch add missing error check in ffs_func_bind() function, after > ffs_do_descs() funcion call for hs descriptors. Without this check it's > possible that the module will try dereference incorrect pointer. > > Signed-off-by: Robert Baldyga Acked-b

Re: [PATCH V5 5/9] USB: OHCI: make ohci-at91 a separate driver

2013-09-27 Thread Kevin Hilman
Manjunath, Manjunath Goudar writes: > Separate the TI OHCI Atmel host controller driver from ohci-hcd > host code so that it can be built as a separate driver module. > This work is part of enabling multi-platform kernels on ARM. This broke booting on atmel sama5 boards (and likely others with

'ci_hdrc.0: failed to start' when using gadgetfs

2013-09-27 Thread Fabio Estevam
Hi, I am using mx53 (which uses the chipidea driver) and it works fine with g_ether. Now, I need to test gadgetfs and this is what I get: $ modprobe gadgetfs gadgetfs: USB Gadget filesystem, version 24 Aug 2004 $ mkdir /dev/gadget $ mount -t gadgetfs none /dev/gadget nop ci_hdrc.0: failed to s

[PATCH 2/3] usb: Disable USB 2.0 Link PM before device reset.

2013-09-27 Thread Mathias Nyman
From: Sarah Sharp Before the USB core resets a device, we need to disable the L1 timeout for the roothub, if USB 2.0 Link PM is enabled. Otherwise the port may transition into L1 in between descriptor fetches, before we know if the USB device descriptors changed. LPM will be re-enabled after th

[PATCH 0/3] USB 2.0 Link PM broken (updated series)

2013-09-27 Thread Mathias Nyman
Add a patch to enable Link PM for hardwired devices and BESL capable devices as default. Otherwise this is the same series by Sarah that disables usb2 LPM as default for devices because usb3 devices may falsely claim usb2 LPM support when connected to a usb2 port. Previous series with better cov

[PATCH 3/3] xhci: Enable LPM support only for hardwired or BESL devices

2013-09-27 Thread Mathias Nyman
Some usb3 devices falsely claim they support usb2 hardware Link PM when connected to a usb2 port. We only trust hardwired devices or devices with the later BESL LPM support to be LPM enabled as default. Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci.c | 17 - 1 file cha

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

2013-09-27 Thread Mathias Nyman
From: Sarah Sharp How it's supposed to work: -- USB 2.0 Link PM is a lower power state that some newer USB 2.0 devices support. USB 3.0 devices certified by the USB-IF are required to support it if they are plugged into a USB 2.0 only port, or a USB 2.0 cable is used. U

Re: [PATCH V5 5/9] USB: OHCI: make ohci-at91 a separate driver

2013-09-27 Thread Greg KH
On Fri, Sep 27, 2013 at 08:10:32AM -0700, Kevin Hilman wrote: > Manjunath, > > Manjunath Goudar writes: > > > Separate the TI OHCI Atmel host controller driver from ohci-hcd > > host code so that it can be built as a separate driver module. > > This work is part of enabling multi-platform kerne

Re: [PATCH] Memory mapping for USBFS

2013-09-27 Thread Markus Rechberger
On Thu, Sep 26, 2013 at 2:13 AM, Greg KH wrote: > On Tue, Sep 24, 2013 at 09:12:39PM +0200, Markus Rechberger wrote: >> This patch adds memory mapping support to USBFS for isochronous and bulk >> data transfers, it allows to pre-allocate usb transfer buffers. > > Does libusb support this? > >> The

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

2013-09-27 Thread Alan Stern
On Fri, 27 Sep 2013, Robert Baldyga wrote: > This patch fixes validation of maxpacket value given in endpoint descriptor. > Added check of maxpacket for bulk endpoints. > Correct maxpacket value is: > > FULL-SPEED HIGH-SPEED > BULK 64 512 Don't forget SuperSpeed.

Re: 'ci_hdrc.0: failed to start' when using gadgetfs

2013-09-27 Thread Marek Vasut
Dear Fabio Estevam, > Hi, > > I am using mx53 (which uses the chipidea driver) and it works fine with > g_ether. > > Now, I need to test gadgetfs and this is what I get: > > $ modprobe gadgetfs > gadgetfs: USB Gadget filesystem, version 24 Aug 2004 > > $ mkdir /dev/gadget > $ mount -t gadgetf

Re: [PATCH V5 5/9] USB: OHCI: make ohci-at91 a separate driver

2013-09-27 Thread Alan Stern
On Fri, 27 Sep 2013, Greg KH wrote: > On Fri, Sep 27, 2013 at 08:10:32AM -0700, Kevin Hilman wrote: > > Manjunath, > > > > Manjunath Goudar writes: > > > > > Separate the TI OHCI Atmel host controller driver from ohci-hcd > > > host code so that it can be built as a separate driver module. > >

Re: [PATCH V5 5/9] USB: OHCI: make ohci-at91 a separate driver

2013-09-27 Thread Alan Stern
On Fri, 27 Sep 2013, Kevin Hilman wrote: > Manjunath, > > Manjunath Goudar writes: > > > Separate the TI OHCI Atmel host controller driver from ohci-hcd > > host code so that it can be built as a separate driver module. > > This work is part of enabling multi-platform kernels on ARM. > > This

Re: [PATCH V5 5/9] USB: OHCI: make ohci-at91 a separate driver

2013-09-27 Thread Greg KH
On Fri, Sep 27, 2013 at 11:37:16AM -0400, Alan Stern wrote: > On Fri, 27 Sep 2013, Greg KH wrote: > > > On Fri, Sep 27, 2013 at 08:10:32AM -0700, Kevin Hilman wrote: > > > Manjunath, > > > > > > Manjunath Goudar writes: > > > > > > > Separate the TI OHCI Atmel host controller driver from ohci-

Re: 'ci_hdrc.0: failed to start' when using gadgetfs

2013-09-27 Thread Alan Stern
On Fri, 27 Sep 2013, Marek Vasut wrote: > Dear Fabio Estevam, > > > Hi, > > > > I am using mx53 (which uses the chipidea driver) and it works fine with > > g_ether. > > > > Now, I need to test gadgetfs and this is what I get: > > > > $ modprobe gadgetfs > > gadgetfs: USB Gadget filesystem, ver

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

2013-09-27 Thread Alan Stern
On Fri, 27 Sep 2013, Arokux X wrote: > I have done something simple, but reliable now. I have stripped the > vendors driver, so that it had only ~230 LOC. This driver was still > fully functional and wifi module worked. Then I carefully implanted it > into the mainline kernel, making only minimal

Re: [PATCH 10/27] mmc: vub300: Remove redundant suspend and resume callbacks

2013-09-27 Thread Alan Stern
On Thu, 26 Sep 2013, Ulf Hansson wrote: > Suspend and resume of cards are handled by the protocol layer and > consequently the mmc_suspend|resume_host APIs are marked as deprecated. > > While moving away from using the deprecated APIs, there are nothing > left to be done for the suspend and resum

Re: 'ci_hdrc.0: failed to start' when using gadgetfs

2013-09-27 Thread Fabio Estevam
Hi Alan, On Fri, Sep 27, 2013 at 12:44 PM, Alan Stern wrote: > It is a temporary measure, used only when the file system is set up > initially. The real bind routine is gadgetfs_bind(), which gets called > when userspace configures the gadget. > > In short, this is how it is intended to work.

Re: 'ci_hdrc.0: failed to start' when using gadgetfs

2013-09-27 Thread Alan Stern
On Fri, 27 Sep 2013, Fabio Estevam wrote: > Hi Alan, > > On Fri, Sep 27, 2013 at 12:44 PM, Alan Stern > wrote: > > > It is a temporary measure, used only when the file system is set up > > initially. The real bind routine is gadgetfs_bind(), which gets called > > when userspace configures the

[PATCH] gadget: udc-core: Ignore -EISNAM error from gadgetfs

2013-09-27 Thread Fabio Estevam
From: Fabio Estevam 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 gadgetfs none /dev/gadget nop ci_hdrc.0: failed to start (null): -120 The error comes from gadgetfs_probe(),

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

2013-09-27 Thread Sergei Shtylyov
Hello. On 09/27/2013 02:28 PM, Robert Baldyga wrote: This patch add missing error check in ffs_func_bind() function, after ffs_do_descs() funcion call for hs descriptors. Without this check it's s/funcion/function/. Perhaps it's worth expanding "hs" to "high speed" for clarity? possib

Re: [PATCH 3/3] xhci: Enable LPM support only for hardwired or BESL devices

2013-09-27 Thread Julius Werner
> +#include "../core/usb.h" You might want to move usb_get_hub_port_connect_type() to include/linux/usb.h instead of doing this. Also, I think you need to mark it EXPORT_SYMBOL_GPL in core/hub.c or you could run into trouble when both xhci-hcd and usbcore are compiled as modules. -- To unsubscribe

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

2013-09-27 Thread Paul Zimmerman
> 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 Balbi wrote: > > > > On Tue, Sep 24, 2013 at 03:00:20PM +0530, Manu Gautam wrote: > >> Hi Felipe, > >> > >> I

[PATCH 0/2] usb: wusbcore: transfer ID endianness fixes

2013-09-27 Thread Thomas Pugliese
Hi, This set of patches fixes a few places where the endiannes was not being converted for the dwTransferID field of transfer requests and transfer results. It also adds the xfer ID to some debug prints to aid in bus log analysis. Thomas Pugliese (2): fix endianess issues when using dwTransf

[PATCH 2/2] usb: wusbcore: include the xfer_id in debug prints

2013-09-27 Thread Thomas Pugliese
Include the xfer_id in debug prints for transfers and transfer segments. This makes it much easier to correlate debug logs to USB analyzer logs. Signed-off-by: Thomas Pugliese --- drivers/usb/wusbcore/wa-xfer.c | 94 +--- 1 file changed, 49 insertions(+),

[PATCH 1/2] usb: wusbcore: fix endianess issues when using dwTransferID

2013-09-27 Thread Thomas Pugliese
Add a new function to get the xfer ID in little endian format (wa_xfer_id_le32), and use it instead of wa_xfer_id where appropriate. Signed-off-by: Thomas Pugliese --- drivers/usb/wusbcore/wa-xfer.c | 20 +++- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/driv

Re: [PATCH v1] USBNET: fix handling padding packet

2013-09-27 Thread Ming Lei
On Mon, Sep 23, 2013 at 8:59 PM, Ming Lei wrote: > Commit 638c5115a7949(USBNET: support DMA SG) introduces DMA SG > if the usb host controller is capable of building packet from > discontinuous buffers, but missed handling padding packet when > building DMA SG. > > This patch attachs the pre-alloc

Re: [PATCH v12 0/7] PHY framework

2013-09-27 Thread Greg KH
On Fri, Sep 27, 2013 at 11:53:24AM +0530, Kishon Vijay Abraham I wrote: > Added a generic PHY framework that provides a set of APIs for the PHY drivers > to create/destroy a PHY and APIs for the PHY users to obtain a reference to > the PHY with or without using phandle. > > This framework will be

Re: [PATCH] Memory mapping for USBFS

2013-09-27 Thread Ming Lei
On Wed, Sep 25, 2013 at 3:12 AM, Markus Rechberger wrote: > This patch adds memory mapping support to USBFS for isochronous and bulk > data transfers, it allows to pre-allocate usb transfer buffers. > > The CPU usage decreases 1-2% on my 1.3ghz U7300 notebook when > transferring 20mbyte/sec, it sh

Re: [PATCH] gadget: udc-core: Ignore -EISNAM error from gadgetfs

2013-09-27 Thread Alan Stern
On Fri, 27 Sep 2013, Fabio Estevam wrote: > From: Fabio Estevam > > 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 gadgetfs none /dev/gadget > nop ci_hdrc.0: failed

Re: [PATCH] Memory mapping for USBFS

2013-09-27 Thread Alan Stern
On Sat, 28 Sep 2013, Ming Lei wrote: > On Wed, Sep 25, 2013 at 3:12 AM, Markus Rechberger > wrote: > > This patch adds memory mapping support to USBFS for isochronous and bulk > > data transfers, it allows to pre-allocate usb transfer buffers. > > > > The CPU usage decreases 1-2% on my 1.3ghz U73

Re: [PATCH] Memory mapping for USBFS

2013-09-27 Thread Ming Lei
On Sat, Sep 28, 2013 at 10:29 AM, Alan Stern wrote: > On Sat, 28 Sep 2013, Ming Lei wrote: > >> On Wed, Sep 25, 2013 at 3:12 AM, Markus Rechberger >> wrote: >> > This patch adds memory mapping support to USBFS for isochronous and bulk >> > data transfers, it allows to pre-allocate usb transfer bu

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

2013-09-27 Thread Fabio Estevam
From: Fabio Estevam 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 gadgetfs none /dev/gadget nop ci_hdrc.0: failed to start (null): -120 The error comes from gadgetfs_probe(),