Re: usb3 disk drive not being recognized properly

2013-04-16 Thread vekin
vekin writes: > > I have a Seagate backup plus 3TB usb3 drive that seems to be recognized. > I get no /dev/sdx device associated with it unless I unplug it and plug it in > after the kernel is loaded. > I only now just realized that the problem only occurs when I use "reboot" not "shutdown -h n

Why usb's remote wakeup relys on CONFIG_USB_SUSPEND

2013-04-16 Thread linux fddl
I am a new fish of linux usb host driver developper. Recently, when developping the host's PM function, I found that usb's remote wakeup relys on CONFIG_USB_SUSPEND. I do not know why we need such a restriction. Is it means if a usb host driver without the implementation of runtime suspend also ca

[PATCH] usbfs: Always allow ctrl requests with USB_RECIP_ENDPOINT on the ctrl ep

2013-04-16 Thread Hans de Goede
When usbfs receives a ctrl-request from userspace it calls check_ctrlrecip, which for a request with USB_RECIP_ENDPOINT tries to map this to an interface to see if this interface is claimed, except for ctrl-requests with a type of USB_TYPE_VENDOR. When trying to use this device: http://www.akaipro

[PATCH net,stable-3.8] net: cdc_mbim: remove bogus sizeof()

2013-04-16 Thread Bjørn Mork
The intention was to test against the constant, not the size of the constant. Signed-off-by: Bjørn Mork --- This should go to stable-3.8 (and stable-3.9 if too late for v3.9). Thanks. Bjørn drivers/net/usb/cdc_mbim.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver

Re: [PATCH v3 1/6] drivers: phy: add generic PHY framework

2013-04-16 Thread Kishon Vijay Abraham I
Hi, On Tuesday 16 April 2013 01:20 AM, Grant Likely wrote: On Mon, 15 Apr 2013 17:56:10 +0530, Kishon Vijay Abraham I wrote: Hi, On Monday 15 April 2013 05:04 PM, Grant Likely wrote: On Wed, 20 Mar 2013 14:42:00 +0530, Kishon Vijay Abraham I wrote: The PHY framework provides a set of API

[RFC PATCH 1/2] USB: OHCI: prepare to make ohci-hcd a library module

2013-04-16 Thread manjunath . goudar
From: Manjunath Goudar This patch prepares ohci-hcd for being split up into a core library and separate platform driver modules. A generic ohci_hc_driver structure is created, containing all the "standard" values, and a new mechanism is added whereby a driver module can specify a set of override

[RFC PATCH 2/2] USB: OHCI: make ohci-pci a separate driver

2013-04-16 Thread manjunath . goudar
From: Manjunath Goudar This patch splits the PCI portion of ohci-hcd out into its own separate driver module, called ohci-pci. Consistently with the current practice, the decision whether to build this module is not user-configurable. If OHCI_PCI are enabled then the module will be built, alway

Re: Why usb's remote wakeup relys on CONFIG_USB_SUSPEND

2013-04-16 Thread Alan Stern
On Tue, 16 Apr 2013, linux fddl wrote: > I am a new fish of linux usb host driver developper. > Recently, when developping the host's PM function, I found that usb's > remote wakeup relys on CONFIG_USB_SUSPEND. I do not know why we need > such a restriction. > Is it means if a usb host driver wit

Re: [PATCH] usbfs: Always allow ctrl requests with USB_RECIP_ENDPOINT on the ctrl ep

2013-04-16 Thread Alan Stern
On Tue, 16 Apr 2013, Hans de Goede wrote: > When usbfs receives a ctrl-request from userspace it calls check_ctrlrecip, > which for a request with USB_RECIP_ENDPOINT tries to map this to an interface > to see if this interface is claimed, except for ctrl-requests with a type of > USB_TYPE_VENDOR.

Re: [PATCH] usbfs: Always allow ctrl requests with USB_RECIP_ENDPOINT on the ctrl ep

2013-04-16 Thread Sergei Shtylyov
Hello. On 16-04-2013 13:08, Hans de Goede wrote: When usbfs USBFS support has been removed some months ago. Maybe you meant 'usbdevfs'?.. receives a ctrl-request from userspace it calls check_ctrlrecip, which for a request with USB_RECIP_ENDPOINT tries to map this to an interface to see

Re: [PATCH 1/2 v5] usbnet: allow status interrupt URB to always be active

2013-04-16 Thread Oliver Neukum
On Tuesday 16 April 2013 09:15:45 Ming Lei wrote: > On Mon, Apr 15, 2013 at 11:59 PM, Dan Williams wrote: > > > > So, what was the general consensus on this one? I know Oliver signed > > off on it, but the discussion about memflags seemed to die out without a > > specific conclusion. davem might

Re: [PATCH] usbfs: Always allow ctrl requests with USB_RECIP_ENDPOINT on the ctrl ep

2013-04-16 Thread Sergei Shtylyov
On 16-04-2013 18:12, Sergei Shtylyov wrote: When usbfs USBFS support has been removed some months ago. Maybe you meant 'usbdevfs'?.. Or was it vice versa, or is there two entities dubbed 'usbfs'? Anyway, here's the commit removing CONFIG_USB_DEVICEFS (under /proc/bus/usb/): https

Re: Driver for PL-2303 HX not working

2013-04-16 Thread Karsten Malcher
Am 15.04.2013 18:16, schrieb Greg KH: If you can't do the bisection, can you point me at the exact device you are using here so I can buy one and try to track this down? It seems that exact the same adapter is out of stock. But this seems to be nearly exact the same one: http://cgi.ebay.com/ws

Re: [PATCH] usbfs: Always allow ctrl requests with USB_RECIP_ENDPOINT on the ctrl ep

2013-04-16 Thread Alan Stern
On Tue, 16 Apr 2013, Sergei Shtylyov wrote: > On 16-04-2013 18:12, Sergei Shtylyov wrote: > > >> When usbfs > > > USBFS support has been removed some months ago. Maybe you meant > > 'usbdevfs'?.. > > Or was it vice versa, or is there two entities dubbed 'usbfs'? Anyway, > here's the c

Re: Linux USB file storage gadget with new UDC

2013-04-16 Thread victor yeo
Hi, >> >In fact, this problem starts even _before_ the INQUIRY command is >> >received. The log shows that the UDC driver calls the >> >bulk_out_complete routine over and over, even though no packet was >> >received and ka2000_ack_irq didn't run. The same thing happens after >> >the INQUIRY is r

Re: usb3 disk drive not being recognized properly

2013-04-16 Thread Alan Stern
On Tue, 16 Apr 2013, vekin wrote: > I have a Seagate backup plus 3TB usb3 drive that seems to be recognized. > I get no /dev/sdx device associated with it unless I unplug it and plug it in > after the kernel is loaded. > > I can see this. > Bus 004 Device 002: ID 0bc2:a0a1 Seagate RSS LLC > But

RE: USB2.0 disk format failure in windows guest

2013-04-16 Thread Alan Stern
On Tue, 16 Apr 2013, Gonglei (Arei) wrote: > > > Yes, this disk was using EHCI, since guest QEMU and Linux kernel both > > > prints matching EHCI logs, such as transfer types and transfer sizes. > > > There are many buck-out URBs whose sizes are 31 or 4064 that are not > > > multiples of 512. Sinc

Re: Linux USB file storage gadget with new UDC

2013-04-16 Thread Alan Stern
On Tue, 16 Apr 2013, victor yeo wrote: > From the usbmon trace and driver log, i can only see that TEST UNIT > READY command is sent out but UDC driver does not receive it. May i > ask, under what circumstances, is gadget driver calling > start_transfer() to schedule reading from bulk-out endpoint

Re: [PATCH 1/2] USB: ehci-omap: Don't select any PHY driver

2013-04-16 Thread Alan Stern
On Mon, 15 Apr 2013, Roger Quadros wrote: > Don't select NOP_USB_XCEIV. Instead, board config > must select USB_PHY and the appropriate PHY driver. > > Also add a hint in Kconfig so that users enabling > this driver manually enable the right PHY drivers as well. > > Gets rid of the below warning

Re: [PATCH 2/2] USB: ehci-omap: Improve PHY error handling

2013-04-16 Thread Alan Stern
On Mon, 15 Apr 2013, Roger Quadros wrote: > As the USB PHY layer never returns NULL we don't need > to check for that condition. > > If we fail to get the PHY device it could be due > to missing USB PHY drivers. Give this hint to the user > in the error message. > > CC: Alan Stern > Signed-off-

Re: Regression in 3735ba8db8e6ea22ad3ff524328926d8d780a884 with Freescale P1020

2013-04-16 Thread Alan Stern
On Mon, 15 Apr 2013, Michael Braun wrote: > Hi, > > I'm running OpenWRT Kernel 3.8.3 (which already has > f66dea709cd9309b2ee9f715697818001fb518de and > 5ed338778f917a035f0f0a52327fc4f72e36f7a1 applied) on a P1020WLAN (QorlQ, > PPC) device. > Before updating the kernel from 3.3.0, USB host sup

Re: USB2.0 disk format failure in windows guest

2013-04-16 Thread Gerd Hoffmann
Hi, > Fixing this will require qemu to copy the beginning and ending parts of > these non-aligned qTDs into separate bounce buffers so that the URB > length can be divisible by 512. Worth trying: http://www.kraxel.org/cgit/qemu/log/?h=usb.80 It puts the qemu usb passthrough code upside down.

[PATCH] usb: musb: gadget: fix enumeration on heavy-loaded systems

2013-04-16 Thread Ruslan Bilovol
>From musb point of view, the Address Assignment sequence during device enumeration is next: - first ep0 interrupt: * read the address from USB_REQ_SET_ADDRESS request * set up CSR0L.DataEnd bit (that is ACK signalization for the host) - second ep0 interrupt: * i

[PATCH 12/12] USB: symbolserial: move private-data allocation to port_probe

2013-04-16 Thread Johan Hovold
Allocate port-private data in port-probe rather than in attach. Signed-off-by: Johan Hovold --- drivers/usb/serial/symbolserial.c | 30 +++--- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/drivers/usb/serial/symbolserial.c b/drivers/usb/serial/symbolser

[PATCH 03/12] USB: omninet: clean up protocol defines

2013-04-16 Thread Johan Hovold
Remove redundant data-offset define, which was really just the header length. Add payload-size define and use the bulk-out size define for the actual bulk-out size. Signed-off-by: Johan Hovold --- drivers/usb/serial/omninet.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-)

[PATCH 04/12] USB: omninet: refactor read-urb processing

2013-04-16 Thread Johan Hovold
Refactor read-urb processing, and add sanity checks on header and data lengths. Signed-off-by: Johan Hovold --- drivers/usb/serial/omninet.c | 25 ++--- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/drivers/usb/serial/omninet.c b/drivers/usb/serial/omninet.c

[PATCH 01/12] USB: omninet: use kzalloc for private data

2013-04-16 Thread Johan Hovold
Make sure the port private data, which contains the write sequence number, is cleared at allocation. Signed-off-by: Johan Hovold --- drivers/usb/serial/omninet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/serial/omninet.c b/drivers/usb/serial/omninet.c index

[PATCH 00/12] USB: serial: patches for 3.10

2013-04-16 Thread Johan Hovold
These patches against usb-next replace the omninet custom read implementation with the generic one, fix some port-data abuse in mct_u232, and make kobil_sct and symbolserial use the port interrupt urbs rather than private ones, while cleaning up all four drivers somwehat. All patches have been com

[PATCH 06/12] USB: kobil_sct: fix broken debug code

2013-04-16 Thread Johan Hovold
Replace broken and commented-out debug code with usb_serial_debug_data. Signed-off-by: Johan Hovold --- drivers/usb/serial/kobil_sct.c | 20 ++-- 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/drivers/usb/serial/kobil_sct.c b/drivers/usb/serial/kobil_sct.c index 9

[PATCH 08/12] USB: kobil_sct: use port interrupt-out urb

2013-04-16 Thread Johan Hovold
Use the port interrupt-out urb rather than abusing the port write_urb pointer and allocating a new urb at every open (but the first...). Note that the write_urb abuse would have led to a double free should there ever be interfaces with a bulk-out endpoint. Signed-off-by: Johan Hovold --- driver

[PATCH 10/12] USB: symbolserial: use port interrupt-in urb

2013-04-16 Thread Johan Hovold
Use the port interrupt-in urb rather managing a private one. Signed-off-by: Johan Hovold --- drivers/usb/serial/symbolserial.c | 102 +- 1 file changed, 12 insertions(+), 90 deletions(-) diff --git a/drivers/usb/serial/symbolserial.c b/drivers/usb/serial/sym

[PATCH 05/12] USB: omninet: switch to generic read implementation

2013-04-16 Thread Johan Hovold
Switch to the more efficient generic read implementation. Signed-off-by: Johan Hovold --- drivers/usb/serial/omninet.c | 43 +++ 1 file changed, 3 insertions(+), 40 deletions(-) diff --git a/drivers/usb/serial/omninet.c b/drivers/usb/serial/omninet.c inde

[PATCH 09/12] USB: mct_u232: clean up read implementation

2013-04-16 Thread Johan Hovold
The device uses the second interrupt-in endpoint of the interface for reading. Stop abusing the port read urb and store a pointer to the second interrupt-in urb as port-private data instead. Signed-off-by: Johan Hovold --- drivers/usb/serial/mct_u232.c | 37 +++--

[PATCH 11/12] USB: symbolserial: remove unused private data

2013-04-16 Thread Johan Hovold
Use port device for debug messages in interrupt-urb callback and remove unused private data. Signed-off-by: Johan Hovold --- drivers/usb/serial/symbolserial.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/usb/serial/symbolserial.c b/drivers/usb/serial/symbolse

[PATCH 07/12] USB: kobil_sct: remove unused endpoint address

2013-04-16 Thread Johan Hovold
Remove unused interrupt-in endpoint address from private data. Signed-off-by: Johan Hovold --- drivers/usb/serial/kobil_sct.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/usb/serial/kobil_sct.c b/drivers/usb/serial/kobil_sct.c index da1a372..5bcfd57 100644 --- a/drivers/usb

[PATCH 02/12] USB: omninet: clean up protocol description

2013-04-16 Thread Johan Hovold
Clean up and fix typos in protocol comment. Signed-off-by: Johan Hovold --- drivers/usb/serial/omninet.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/usb/serial/omninet.c b/drivers/usb/serial/omninet.c index ea1105c..ec16b92 100644 --- a/drivers/usb/s

Re: [PATCH 07/10] staging: dwc2: Don't always return IRQ_HANDLED in dwc2_hcd_intr()

2013-04-16 Thread Matthijs Kooijman
Hi Felipe, > "by by this commit message" ?? Hmm, not sure what my brain was doing there. Will be fixed in the next version. > > --- a/drivers/staging/dwc2/hcd_intr.c > > +++ b/drivers/staging/dwc2/hcd_intr.c > > @@ -2083,7 +2083,8 @@ irqreturn_t dwc2_hcd_intr(struct dwc2_hsotg *hsotg) > >

Re: [PATCH 03/10] staging: dwc2: move some interrupt enabling around

2013-04-16 Thread Matthijs Kooijman
Hi Paul, > > Before, the DISCONNINT interrupt was enabled in > > dwc2_enable_host_interrupts, but handled in dwc2_handle_common_intr, > > while the RXFLVL interrupt was enabled in dwc2_enable_commont_interrupts > > and handled in dwc_handle_hcd_intr. > > I guess you meant dwc2_hcd_intr, not dwc_h

Re: [PATCH 10/10] staging: dwc2: properly separate common and host interrupt enabling

2013-04-16 Thread Matthijs Kooijman
Hi Paul, > > --- a/drivers/staging/dwc2/core.c > > +++ b/drivers/staging/dwc2/core.c ... > > + /* Enable common interrupts without disturbing host mode interrupts */ > > + intmsk = readl(hsotg->regs + GINTMSK); > > + intmsk |= GINTSTS_DISCONNINT | GINTSTS_MODEMIS | GINTSTS_OTGINT | > > +

Re: [PATCH 02/10] staging: dwc2: do not handle PRTINT in dwc2_handle_common_intr

2013-04-16 Thread Matthijs Kooijman
Hi Paul, On Mon, Apr 15, 2013 at 10:22:12PM +, Paul Zimmerman wrote: > Resending as plain text. > > > From: Matthijs Kooijman [mailto:matth...@stdin.nl] > > Sent: Monday, April 15, 2013 7:14 AM > > > > For host mode, this interrupt is already handled by the hcd interrupt > > handler. The com

RE: [PATCH] usb: musb: gadget: fix enumeration on heavy-loaded systems

2013-04-16 Thread B, Ravi
> -Original Message- > From: linux-usb-ow...@vger.kernel.org [mailto:linux-usb- > ow...@vger.kernel.org] On Behalf Of Bilovol, Ruslan > Sent: Tuesday, April 16, 2013 9:12 PM > To: Balbi, Felipe; gre...@linuxfoundation.org; linux-usb@vger.kernel.org; > linux-ker...@vger.kernel.org > Subject:

Re: [PATCH v4 00/11] usb: musb: add back support for host mode

2013-04-16 Thread Daniel Mack
On 10.04.2013 21:55, Daniel Mack wrote: > Hi all, > > here are some patches to separate the HCD and gadget part of the musb > driver so they can be deselected in Kconfig. They also make the driver > keep track of the configured port mode that is set from DT, so the > actual runtime configuration c

RE: [PATCH 10/10] staging: dwc2: properly separate common and host interrupt enabling

2013-04-16 Thread Paul Zimmerman
> From: Matthijs Kooijman [mailto:matth...@stdin.nl] > Sent: Tuesday, April 16, 2013 9:47 AM > > > > --- a/drivers/staging/dwc2/core.c > > > +++ b/drivers/staging/dwc2/core.c > ... > > > + /* Enable common interrupts without disturbing host mode interrupts */ > > > + intmsk = readl(hsotg->regs + G

RE: [PATCH 02/10] staging: dwc2: do not handle PRTINT in dwc2_handle_common_intr

2013-04-16 Thread Paul Zimmerman
> From: Matthijs Kooijman [mailto:matth...@stdin.nl] > Sent: Tuesday, April 16, 2013 9:53 AM > > On Mon, Apr 15, 2013 at 10:22:12PM +, Paul Zimmerman wrote: > > > > > From: Matthijs Kooijman [mailto:matth...@stdin.nl] > > > Sent: Monday, April 15, 2013 7:14 AM > > > > > > For host mode, this i

Re: [PATCH 02/10] staging: dwc2: do not handle PRTINT in dwc2_handle_common_intr

2013-04-16 Thread Matthijs Kooijman
Hi Paul, > No, the interrupt is strictly a host interrupt. But due to the > design of the hardware, there's a race condition: Say the user > unplugs the A connector from the host. The disconnect interrupt gets > triggered, and the driver starts to process it. But unplugging the > A connector also

RE: [PATCH 02/10] staging: dwc2: do not handle PRTINT in dwc2_handle_common_intr

2013-04-16 Thread Paul Zimmerman
> From: Matthijs Kooijman [mailto:matth...@stdin.nl] > Sent: Tuesday, April 16, 2013 12:03 PM > > > No, the interrupt is strictly a host interrupt. But due to the > > design of the hardware, there's a race condition: Say the user > > unplugs the A connector from the host. The disconnect interrupt

RE: USB PCI quirk issue

2013-04-16 Thread Bulkow, David
Excellent. The quirk is no longer triggering resource issues. This leaves an issue with dev->enable_cnt in pci_disable_device. We still get the message 'disabling already-disabled device'. I was hoping by not having the resource errors, enable_cnt would be more accurate. This occurs after: - c

Re: [PATCH net,stable-3.8] net: cdc_mbim: remove bogus sizeof()

2013-04-16 Thread David Miller
From: Bjørn Mork Date: Tue, 16 Apr 2013 12:17:07 +0200 > The intention was to test against the constant, not the size of > the constant. > > Signed-off-by: Bjørn Mork Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@

[PATCH v3 0/4] Add USB support to R8A7778/BOCK-W

2013-04-16 Thread Sergei Shtylyov
Hello. Here's the set of 4 patches against the Simon Horman's 'renesas.git' repo, 'renesas-next-20130416' tag and the R8A7779/Marzen patchset I've posted. It was created to add support of R8A7778/BOCK-W USB to the platform code and the USB common PHY driv

[PATCH v3 1/4] rcar-phy: add R8A7778 support

2013-04-16 Thread Sergei Shtylyov
The driver currently only supports R8A7779 SoC. Compared to it, R8A7778 USB-PHY has extra register range containing two high-speed signal quality characteristic control registers which should be set up during USB-PHY startup depending on whether a ferrite bead is in use or not. So, we now handle

[PATCH v3 2/4] ARM: shmobile: r8a7778: add USB support

2013-04-16 Thread Sergei Shtylyov
Add USB clock and EHCI, OHCI, and USB PHY platform devices for R8A7778 SoC; add a function to register PHY device with board-specific platform data and register EHCI and OHCI platfrom devices from the init_late() board method. Also, don't forget to enable CONFIG_ARCH_HAS_[EO]HCI options for R8A7

[PATCH v3 3/4] ARM: shmobile: BOCK-W: add USB support

2013-04-16 Thread Sergei Shtylyov
Register the USB PHY device from bockw_init(), passing the platform data to it. Set machine's init_late() method to r8a7778_init_late() in order for [EO]HCI to get registered too... The patch has been tested on the BOCK-W board. Signed-off-by: Sergei Shtylyov --- Changes since version 2: - ref

[PATCH v3 4/4] ARM: shmobile: BOCK-W: enable USB in defconfig

2013-04-16 Thread Sergei Shtylyov
Enable USB platform EHCI/OHCI and common PHY drivers in 'bockw_defconfig'. Enable USB storage driver and SCSI disk driver that it needs as well... Signed-off-by: Sergei Shtylyov --- arch/arm/configs/bockw_defconfig | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) Index: rene

[RFC] [PATCH] isp1760-hcd: Re-add 195ns timing delay for processing SKIPMAP

2013-04-16 Thread Richard Retanubun
Hi I am using an isp1763 on MPC8360 and linux-3.0.0-2 from debian. The driver is ported from Sebastian's original isp1760 and I am forward porting to Arvid's version. I noticed that a custom timing delay is missing on the new isp1760. This delay is added in [1] and an mmiowb() is added in [2]

Re: [PATCH v3 1/4] rcar-phy: add R8A7778 support

2013-04-16 Thread Sergei Shtylyov
On 04/17/2013 01:32 AM, I wrote: The driver currently only supports R8A7779 SoC. Compared to it, R8A7778 USB-PHY has extra register range containing two high-speed signal quality characteristic control registers which should be set up during USB-PHY startup depending on whether a ferrite bead

[PATCH v3.1 1/4] rcar-phy: add R8A7778 support

2013-04-16 Thread Sergei Shtylyov
The driver currently only supports R8A7779 SoC. Compared to it, R8A7778 USB-PHY has extra register range containing two high-speed signal quality characteristic control registers which should be set up during USB-PHY startup depending on whether a ferrite bead is in use or not. So, we now handle

Re: [PATCH v2 0/9] Reorganize R8A7779/Marzen USB code

2013-04-16 Thread Kuninori Morimoto
Hi Sergei > >>> I'm going to post R8A7778/BOCK-W series following this one, and > >>> all the > >>> patches in 1st series should additionally be tested on BOCK-W. Well, I > >>> probably can hold up posting version 3 until I have the second > >>> series verified. > >>> BTW, about R8A77

Re: [V9 PATCH 00/12] mv-usb phy driver

2013-04-16 Thread Chao Xie
On Wed, Apr 17, 2013 at 9:17 AM, Chao Xie wrote: > > On Sun, Apr 7, 2013 at 6:29 PM, Chao Xie wrote: >> >> The patches create the mv-usb phy driver >> >> >> directly use devm_usb_get_phy_dev return value for error return. >> >> v9->v8 >> Remove u2o_xxx. >> Add prefix for register definition

Re: [PATCH 1/2 v5] usbnet: allow status interrupt URB to always be active

2013-04-16 Thread Ming Lei
On Tue, Apr 16, 2013 at 3:57 PM, Oliver Neukum wrote: > On Tuesday 16 April 2013 09:15:45 Ming Lei wrote: >> On Mon, Apr 15, 2013 at 11:59 PM, Dan Williams wrote: >> > >> > So, what was the general consensus on this one? I know Oliver signed >> > off on it, but the discussion about memflags seem

[PATCH 1/1] usb: gadget/uvc: Add support to allocate UVC payload and header as SG elements

2013-04-16 Thread Bhupesh Sharma
This patch adds the support in UVC webcam gadget to allocate UVC header and payload as Scatter-Gather elements which can be used on a SG-capable UDC controller. A module parameter has been introduced for the same. One can set the module parameter 'sg_mode' to 1 to turn on this feature (by default

RE: [Test Application PATCH 0/2] UVC gadget test application enhancements

2013-04-16 Thread Bhupesh SHARMA
Hi Laurent, > Hi Bhupesh, > > On Wednesday 10 April 2013 18:37:42 Bhupesh SHARMA wrote: > > Hi Laurent, > > > > > This patchset tries to enhance the UVC gadget test application and > > > is based on Laurent's git tree available here (project: uvc-gadget.git): > > > git://git.ideasonboard.org/uvc-

[PATCH] usb: storage: Add usb_stor_dbg, reduce object size

2013-04-16 Thread Joe Perches
Reduce the size of the objects by consolidating the duplicated USB_STORAGE into a single function. Add function usb_stor_dbg to emit debugging messages. Always validate the format and arguments. Reduce the number of uses of CONFIG_USB_STORAGE_DEBUG. Reduces size of objects ~7KB when CONFIG_USB_ST

Re: [PATCH 1/2 v5] usbnet: allow status interrupt URB to always be active

2013-04-16 Thread Oliver Neukum
On Wednesday 17 April 2013 09:56:33 Ming Lei wrote: > On Tue, Apr 16, 2013 at 3:57 PM, Oliver Neukum wrote: > > Generally, saying that somebody else has a problem is not an argument > > as long as the fix is very simple. Of course it is a corner case, but why > > fail to solve it as long as the c