Re: [PATCH 063/100] usb: dwc3: add count field to event buffer

2013-02-26 Thread Felipe Balbi
On Tue, Feb 26, 2013 at 10:51:45PM +0400, Sergei Shtylyov wrote: > Hello. > > On 26-02-2013 13:34, Felipe Balbi wrote: > > >we can cache the last read value of the event > >buffer count register on this field, for later > >handling. > > >Signed-off-by: Felipe Balbi > >--- > > drivers/usb/dwc3/

Re: [PATCH v10 6/8] usb: chipidea: imx: add internal vbus regulator control

2013-02-26 Thread Felipe Balbi
Hi, On Wed, Feb 27, 2013 at 02:33:17PM +0800, Peter Chen wrote: > - For host, the vbus should always be on. > - For otg, the vbus is off defaultly, the vbus needs to be > turned on/off when usb role switches. > > Signed-off-by: Peter Chen one quick question, if chipidea already has an imx glue

Re: [PATCH V2] usb:musb: musbhsdma: change the number of dma channels according to hardware configuration

2013-02-26 Thread Yingchun Li
Hi, Felipe Does the following patch still break your editor? I have fix the patch and resend it again, but I didn't find the patch in your 'big patch bomb' for v3.10, should I fix something? On Tue, Jan 29, 2013 at 4:22 PM, yingchun li wrote: > According to "musbhdrd usb 2.0 high-speed dual-

[PATCH 2/2] usb: dwc3: workaround: unexpected transtion U3 -> RESUME

2013-02-26 Thread Felipe Balbi
In DWC3 versions < 2.50a configured without Hibernation mode enabled, there will be an extra link status change interrupt if device detects host-initiated U3 exit. In that case, core will generate an unnecessary U3 -> RESUME transition which should be ignored by the driver. Signed-off-by: Felipe

[PATCH 1/2] usb: dwc3: core: define more revisions

2013-02-26 Thread Felipe Balbi
Some new revisions of the DWC3 core have been released, let's add our defines to help implementing known erratas. Signed-off-by: Felipe Balbi --- drivers/usb/dwc3/core.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h index b417506..8bed18

[PATCH v10 8/8] usb: chipidea: imx: fix the error that using uninitialized pointer

2013-02-26 Thread Peter Chen
If the core's probe fails, the platform layer may not get core's private data, if the platform tries to use struct ci13xxx, it will use uninitialized pointer. Besides, if the core's probe fails, the platform layer should know it, and let its probe fail too. Signed-off-by: Peter Chen --- drivers/

[PATCH v10 7/8] usb: chipidea: udc: fix the oops when plugs in usb cable after rmmod gadget

2013-02-26 Thread Peter Chen
When we rmmod gadget, the ci->driver needs to be cleared. Otherwise, we plug in usb cable again, the driver will consider gadget is there, in fact, it is removed. Besides, consolidate the calling of ci->driver->disconnect, when we do rmmod gadget, the gadget's disconnect should be called from udc

[PATCH v10 6/8] usb: chipidea: imx: add internal vbus regulator control

2013-02-26 Thread Peter Chen
- For host, the vbus should always be on. - For otg, the vbus is off defaultly, the vbus needs to be turned on/off when usb role switches. Signed-off-by: Peter Chen --- drivers/usb/chipidea/ci.h |2 + drivers/usb/chipidea/ci13xxx_imx.c | 76 2

[PATCH v10 5/8] usb: chipidea: udc: retire the flag CI13_PULLUP_ON_VBUS

2013-02-26 Thread Peter Chen
(change CI13XXX to CI13 to avoid junk email check) Now, we have handled vbus session in core driver when the vbus interrupt occurs, so our pullup operations are all according to vbus. Of cource, the software can still call .pullup when device connects to host if it wants to connect/disconnect with

[PATCH v10 4/8] usb: chipidea: udc: add pullup/pulldown dp at hw_device_state

2013-02-26 Thread Peter Chen
- During the connect/disconnect host, we need to pullup and pulldown dp - Make sure the dp is not pullup until the vbus is on when flag CI13XXX_PULLUP_ON_VBUS is set - Using hw_device_state when set run/stop bit Signed-off-by: Peter Chen --- drivers/usb/chipidea/udc.c | 10 -- 1 files

[PATCH v10 3/8] usb: chipidea: add otg id switch and vbus connect/disconnect detect

2013-02-26 Thread Peter Chen
The main design flow is the same with msm otg driver, that is the id and vbus interrupt are handled at core driver, others are handled by individual drivers. - At former design, when switch usb role from device->host, it will call udc_stop, it will remove the gadget driver, so when switch role fro

[PATCH v10 2/8] usb: chipidea: add otg file

2013-02-26 Thread Peter Chen
Implement struct usb_otg, In that way, calling otg_set_peripheral will not be failed at udc.c. Signed-off-by: Peter Chen --- drivers/usb/chipidea/Makefile |2 +- drivers/usb/chipidea/ci.h |2 + drivers/usb/chipidea/otg.c| 60 + drivers/us

[PATCH v10 1/8] Revert "USB: chipidea: add vbus detect for udc"

2013-02-26 Thread Peter Chen
vbus register is at otgsc, and vbus detect does not belong to device function. Revert this patch, and will move vbus detect function to drivers/usb/chipidea/udc.c This reverts commit 8c4fc031954b4eb72daf13d3c907a985a3eee208. Signed-off-by: Peter Chen --- drivers/usb/chipidea/ci.h |1 - dri

[PATCH v10 0/8] Add tested id switch and vbus connect detect support for Chipidea

2013-02-26 Thread Peter Chen
Changes for v10: - Delete [8/9] at v9, ci core's drvdata must be set for further operation. [8/8] Changes for v9: - Some small comments from Alex like: variable comment for otg event additional newline. [3/9] - Import function tell show if the controller has otg capable, if the controller supports

Re: About chipidea tree

2013-02-26 Thread Peter Chen
On Tue, Feb 26, 2013 at 02:47:34PM +0100, Marc Kleine-Budde wrote: > On 02/26/2013 02:25 PM, Alexander Shishkin wrote: > > Marc Kleine-Budde writes: > > > >> On 02/26/2013 11:56 AM, Alexander Shishkin wrote: > >>> Peter Chen writes: > >>> > Hi Alex, > >>> > >>> Hi, > >>> > Do we have a

[PATCH v5 6/6] Hook the DWC2 driver into the build system

2013-02-26 Thread Paul Zimmerman
Add the DWC2 Kconfig and Makefile, and modify the USB Kconfig and Makefile to include them Signed-off-by: Paul Zimmerman --- drivers/usb/dwc2/Kconfig | 35 +++ drivers/usb/dwc2/Makefile | 18 ++ 2 files changed, 53 insertions(+) create mode 10064

[PATCH v5 5/6] PCI bus interface for the DWC2 driver

2013-02-26 Thread Paul Zimmerman
This file contains the PCI bus interface "glue" for the DWC2 driver Signed-off-by: Paul Zimmerman --- drivers/usb/dwc2/pci.c | 199 + 1 file changed, 199 insertions(+) create mode 100644 drivers/usb/dwc2/pci.c diff --git a/drivers/usb/dwc2/pci.c

[PATCH v5 4/6] HCD descriptor DMA support for the DWC2 driver

2013-02-26 Thread Paul Zimmerman
This file contains the code to support the HCD descriptor DMA mode of the controller Signed-off-by: Paul Zimmerman --- drivers/usb/dwc2/hcd_ddma.c | 1179 +++ 1 file changed, 1179 insertions(+) create mode 100644 drivers/usb/dwc2/hcd_ddma.c diff --git a/

[PATCH v5 1/6] usb: common: add a routine to print the OTG state

2013-02-26 Thread Paul Zimmerman
Add a usb_otg_state_string() routine to print the OTG state for debugging Signed-off-by: Paul Zimmerman --- drivers/usb/usb-common.c | 26 ++ include/linux/usb/phy.h | 8 2 files changed, 34 insertions(+) diff --git a/drivers/usb/usb-common.c b/drivers/usb/usb

[PATCH v5 0/6] DWC2 DesignWare HS OTG driver

2013-02-26 Thread Paul Zimmerman
Hi Felipe, Here is v5 of the DWC2 patch set. I think I made all of the changes we agreed on after your last review. You'll be happy to hear that I removed all of the module parameters. I realized it is easy enough for me to maintain a local patch here to add them back when we need to do driver/RT

Re: [PATCH v8 8/8] usb: chipidea: udc: fix the oops when plugs in usb cable after rmmod gadget

2013-02-26 Thread Peter Chen
On Tue, Feb 26, 2013 at 08:21:41PM +0200, Felipe Balbi wrote: > Hi, > > On Sun, Feb 17, 2013 at 11:09:53AM +0800, Peter Chen wrote: > > @@ -1373,6 +1375,8 @@ static int ci13xxx_vbus_session(struct usb_gadget > > *_gadget, int is_active) > > hw_device_state(ci, ci->ep0out->qh.d

Re: [PATCH v9 8/9] usb: chipidea: tell platform layer the ci core probe's result

2013-02-26 Thread Peter Chen
On Tue, Feb 26, 2013 at 11:42:34AM +0200, Felipe Balbi wrote: > On Sun, Feb 17, 2013 at 05:24:42PM +0800, Peter Chen wrote: > > If the probe fails, the ci13xxx_add_device will not return error, > > (bus_probe_device doesn't has return value) > > therefore, the platform layer can't know whether core

Re: [PATCH v2] usb: xhci: add the suspend/resume functionality

2013-02-26 Thread Sarah Sharp
Ok, I've added this patch to my for-usb-next-queue branch. I'll be sending it off to Greg for 3.10 after 3.9-rc1 is out and he's accepting pull requests again. Sarah Sharp On Mon, Feb 11, 2013 at 12:58:00PM +0200, Felipe Balbi wrote: > From: Vikas Sajjan > > Adds power management support to xH

Re: [RESEND PATCH] USB: xhci - fix bit definitions for IMAN register

2013-02-26 Thread Sarah Sharp
Hi Dmitry, Thanks for catching this. I've applied it to my for-usb-linus-queue, and I'll be sending it to Greg as a bug fix after 3.9-rc1 is out. Sarah Sharp On Mon, Feb 25, 2013 at 10:56:01AM -0800, Dmitry Torokhov wrote: > According to XHCI specification (5.5.2.1) the IP is bit 0 and IE is bi

Re: [PATCH] usb/net/asix_devices: Add USBNET HG20F9 ethernet dongle

2013-02-26 Thread David Miller
From: David Miller Date: Tue, 26 Feb 2013 17:28:56 -0500 (EST) > Applied, thanks Glen. Actually, I had to revert, this doesn't even compile against current sources: CC [M] drivers/net/usb/asix_devices.o drivers/net/usb/asix_devices.c:941:14: error: ‘asix_rx_fixup’ undeclared here (not in a

Re: [PATCH] usb/net/asix_devices: Add USBNET HG20F9 ethernet dongle

2013-02-26 Thread David Miller
From: Glen Turner Date: Tue, 26 Feb 2013 14:47:12 +1030 > This USB ethernet adapter was purchased in anodyne packaging > marked "USB2.0 to LAN" from the computer store adjacent to > linux.conf.au 2013 in Canberra (Australia). A web search > shows other recent purchasers in Lancaster (UK) and Seat

Re: [PATCH] usb/net/asix_devices: Add USBNET HG20F9 ethernet dongle

2013-02-26 Thread Richard Ash
On Tue, 26 Feb 2013 00:10:22 -0500 (EST) David Miller wrote: > It didn't make it to any of the lists, that's why you are the > only person who saw the original patch. I've got it (the original send) here, so it seems to have gone through to linux-usb@vger.kernel.org (or at least some of it) witho

Re: [PATCH 076/100] usb: gadget: udc-core: copy dma-related parameters from parent

2013-02-26 Thread Felipe Balbi
On Tue, Feb 26, 2013 at 10:59:12PM +0400, Sergei Shtylyov wrote: > Hello. > > On 26-02-2013 13:34, Felipe Balbi wrote: > > >gadget's device pointer now is guaranteed to > >have valid dma_mask, dma_parms and coherent_dma_mask > >fields since we're always copying from our > >parent device. > > >Si

[PATCH 081/103] USB: spcp8x5: clean up modem status retrieval

2013-02-26 Thread Johan Hovold
Clean up modem status retrieval. Signed-off-by: Johan Hovold --- drivers/usb/serial/spcp8x5.c | 18 +++--- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/drivers/usb/serial/spcp8x5.c b/drivers/usb/serial/spcp8x5.c index 5779dd8..e0093dd 100644 --- a/drivers/usb/serial

[PATCH 038/103] USB: usb_wwan: remove bogus disconnect test in close

2013-02-26 Thread Johan Hovold
Remove bogus (and unnecessary) test for serial->dev being NULL in close. The device is never cleared, and close is never called after a completed disconnect anyway. Signed-off-by: Johan Hovold --- drivers/usb/serial/usb_wwan.c | 25 - 1 file changed, 12 insertions(+), 13

[PATCH 083/103] USB: spcp8x5: add proper modem-status support

2013-02-26 Thread Johan Hovold
Fetch modem status on carrier_raised and tiocmget. This driver appeared to support modem-status but only read the modem status registers once at open and then used that cached value for all further enquires. Signed-off-by: Johan Hovold --- drivers/usb/serial/spcp8x5.c | 27 ++---

[PATCH 028/103] USB: serial: remove port number from generic-driver debug

2013-02-26 Thread Johan Hovold
Remove redundant port number from debug output (already printed as part of device name). Signed-off-by: Johan Hovold --- drivers/usb/serial/generic.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/usb/serial/generic.c b/drivers/usb/serial/generic.c index 4

[PATCH 018/103] USB: ti_usb_3410_5052: fix TIOCMIWAIT and disconnect

2013-02-26 Thread Johan Hovold
Make sure to wake up any process sleeping on the modem-status-change queue at port remove. Currently a process waiting on modem status changes will not be woken on device disconnect. Note that we need to use the disconnected flag to detect disconnect as the port private data may have been freed w

[PATCH 037/103] USB: sierra: remove bogus disconnect test in close

2013-02-26 Thread Johan Hovold
Remove bogus (and unnecessary) test for serial->dev being NULL in close. The device is never cleared, and close is never called after a completed disconnect anyway. Signed-off-by: Johan Hovold --- drivers/usb/serial/sierra.c | 39 +-- 1 file changed, 17 inser

[PATCH 058/103] USB: ark3116: switch to generic get_icount implementation

2013-02-26 Thread Johan Hovold
Switch to the generic get_icount implementation. Signed-off-by: Johan Hovold --- drivers/usb/serial/ark3116.c | 49 +--- 1 file changed, 14 insertions(+), 35 deletions(-) diff --git a/drivers/usb/serial/ark3116.c b/drivers/usb/serial/ark3116.c index 4188f

[PATCH 041/103] USB: ssu100: remove custom close operation

2013-02-26 Thread Johan Hovold
The generic close operation will be used if the close field is left uninitialised. Signed-off-by: Johan Hovold --- drivers/usb/serial/ssu100.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/usb/serial/ssu100.c b/drivers/usb/serial/ssu100.c index 8bb8579..adbca36 100644 --- a/dr

[PATCH 022/103] USB: pl2303: use interface device for debug

2013-02-26 Thread Johan Hovold
Use interface rather than usb-serial device for debugging interface related operations. This gives more descriptive messages, such as [ 905.669436] pl2303 1-4.1:1.0: 0x40:0x1:0x8:0x0 0 rather than [ 341.943535] usb 1-4.1: 0x40:0x1:0x8:0x0 0 Signed-off-by: Johan Hovold --- drivers/usb/seri

[PATCH 054/103] USB: serial: add generic get_icount implementation

2013-02-26 Thread Johan Hovold
Add generic get_icount implementation that subdrivers relying on the port interrupt counters can use. Signed-off-by: Johan Hovold --- drivers/usb/serial/generic.c | 27 +++ include/linux/usb/serial.h | 2 ++ 2 files changed, 29 insertions(+) diff --git a/drivers/usb/s

[PATCH 077/103] USB: spcp8x5: remove broken TIOCMIWAIT support

2013-02-26 Thread Johan Hovold
Remove broken TIOCMIWAIT support. This drivers appears to implement TIOCMIWAIT but has no means of receiving modem-status interrupts. Signed-off-by: Johan Hovold --- drivers/usb/serial/spcp8x5.c | 67 1 file changed, 67 deletions(-) diff --git a/dri

[PATCH 072/103] USB: mos7840: switch to generic TIOCMIWAIT implementation

2013-02-26 Thread Johan Hovold
Switch to the generic TIOCMIWAIT implementation. Signed-off-by: Johan Hovold --- drivers/usb/serial/mos7840.c | 48 ++-- 1 file changed, 2 insertions(+), 46 deletions(-) diff --git a/drivers/usb/serial/mos7840.c b/drivers/usb/serial/mos7840.c index bdf57d

[PATCH 071/103] USB: mos7840: switch to generic get_icount implementation

2013-02-26 Thread Johan Hovold
Switch to the generic get_icount implementation. Note that the interrupt counters will no longer be reset at open which is in accordance with which how the other drivers work. Signed-off-by: Johan Hovold --- drivers/usb/serial/mos7840.c | 56 +++- 1 file

[PATCH 098/103] USB: quatech2: always disable uart on close

2013-02-26 Thread Johan Hovold
Always try to disable the uart on close. Since the switch to tty ports, close will be called as part of shutdown before disconnect returns. Hence there is no need to check the disconnected flag, and we can put devices in disabled states also on driver unbind. Signed-off-by: Johan Hovold --- dri

[PATCH 068/103] USB: mct_u232: switch to generic TIOCMIWAIT implementation

2013-02-26 Thread Johan Hovold
Switch to the generic TIOCMIWAIT implementation. Signed-off-by: Johan Hovold --- drivers/usb/serial/mct_u232.c | 61 ++- 1 file changed, 2 insertions(+), 59 deletions(-) diff --git a/drivers/usb/serial/mct_u232.c b/drivers/usb/serial/mct_u232.c index 0889

[PATCH 070/103] USB: mos7840: remove smp barriers from icount handling

2013-02-26 Thread Johan Hovold
Remove SMP memory barriers from icount handling and rely on the barriers implied by wait_event, sleep and locks, while using the port lock to guarantee atomicity. This is a step in moving over to the generic icount implementations. Signed-off-by: Johan Hovold --- drivers/usb/serial/mos7840.c |

[PATCH 056/103] USB: ftio_sio: switch to generic TIOCMIWAIT implementation

2013-02-26 Thread Johan Hovold
Switch to the generic TIOCMIWAIT implementation which does not suffer from the races involved when using the deprecated sleep_on functions. Signed-off-by: Johan Hovold --- drivers/usb/serial/ftdi_sio.c | 39 ++- 1 file changed, 2 insertions(+), 37 deletions(-)

[PATCH 074/103] USB: pl2303: add custom tiocmiwait operation

2013-02-26 Thread Johan Hovold
Break out TIOCMIWAIT handling from custom ioctl operation and use tiocmiwait operation field instead. Signed-off-by: Johan Hovold --- drivers/usb/serial/pl2303.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c

[PATCH 021/103] USB: iuu_phoenix: remove unnecessary urb kill on close

2013-02-26 Thread Johan Hovold
Remove kill of interrupt-in urb on close as it has never been submitted. Signed-off-by: Johan Hovold --- drivers/usb/serial/iuu_phoenix.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/serial/iuu_phoenix.c b/drivers/usb/serial/iuu_phoenix.c index ff77027..a3bfcb3 100644 --- a/dri

[PATCH 027/103] USB: serial: remove redundant allocation error messages

2013-02-26 Thread Johan Hovold
Failed allocations already get an OOM message and a stack dump. Signed-off-by: Johan Hovold --- drivers/usb/serial/usb-serial.c | 37 + 1 file changed, 9 insertions(+), 28 deletions(-) diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-seri

[PATCH 019/103] USB: ftdi_sio: remove obsolete port data refcounting

2013-02-26 Thread Johan Hovold
Remove the port data refcounting and release the private data explicitly at port remove. The port data refcounting was used to make sure the port data was not freed until the last tty reference was closed. Since moving over to tty ports, the underlying assumptions are no longer valid as close is n

[PATCH 040/103] USB: ssu100: remove explicit initialisation of disconnect

2013-02-26 Thread Johan Hovold
The disconnect callback is set to the generic implementation by usb-serial core if NULL. Signed-off-by: Johan Hovold --- drivers/usb/serial/ssu100.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/serial/ssu100.c b/drivers/usb/serial/ssu100.c index 8891203..8bb8579 100644 --- a/dr

[PATCH 014/103] USB: oti6858: fix TIOCMIWAIT and disconnect

2013-02-26 Thread Johan Hovold
Make sure to wake up any process sleeping on the modem-status-change queue at port remove. Currently a process waiting on modem status changes will not necessarily be woken on device disconnect. Note that we need to use the disconnected flag to detect disconnect as the port private data may have

[PATCH 048/103] USB: serial: rename port release

2013-02-26 Thread Johan Hovold
Rename port_release so that all usb_serial_port functions have a common prefix. Signed-off-by: Johan Hovold --- drivers/usb/serial/usb-serial.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c index 2c32f84.

[PATCH 060/103] USB: ch341: replace custom ioctl operation with tiocmiwait

2013-02-26 Thread Johan Hovold
Replace custom ioctl operation with tiocmiwait. Signed-off-by: Johan Hovold --- drivers/usb/serial/ch341.c | 25 +++-- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/drivers/usb/serial/ch341.c b/drivers/usb/serial/ch341.c index 7acb155..d556c94 100644 --- a/dr

[PATCH 089/103] USB: cypress_m8: remove bogus disconnect test from close

2013-02-26 Thread Johan Hovold
Remove disconnected test from close which did not protect any device IO at all. Signed-off-by: Johan Hovold --- drivers/usb/serial/cypress_m8.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/usb/serial/cypress_m8.c b/drivers/usb/serial/cypress_m8.c index 23b77eb..f6a7d88 10064

[PATCH 031/103] USB: digi_acceleport: remove bogus disconnect test in close

2013-02-26 Thread Johan Hovold
Remove bogus (and unnecessary) test for serial->dev being NULL in close. The device is never cleared, and close is never called after a completed disconnect anyway. Signed-off-by: Johan Hovold --- drivers/usb/serial/digi_acceleport.c | 92 ++-- 1 file changed, 45

[PATCH 026/103] USB: serial: clean up debug info

2013-02-26 Thread Johan Hovold
Remove redundant port number from debug output (already printed as part of device name). Signed-off-by: Johan Hovold --- drivers/usb/serial/usb-serial.c | 39 --- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/drivers/usb/serial/usb-serial.c b

[PATCH 057/103] USB: ftdi_sio: switch to generic get_icount implementation

2013-02-26 Thread Johan Hovold
Switch to the generic get_icount implementation. Signed-off-by: Johan Hovold --- drivers/usb/serial/ftdi_sio.c | 24 +--- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c index 478f2b4..4f9bfe5 100644

[PATCH 015/103] USB: pl2303: fix TIOCMIWAIT and disconnect

2013-02-26 Thread Johan Hovold
Make sure to wake up any process sleeping on the modem-status-change queue at port remove. Currently a process waiting on modem status changes will not be woken on device disconnect. Note that we need to use the disconnected flag to detect disconnect as the port private data may have been freed w

[PATCH 075/103] USB: quatech2: switch to generic get_icount implementation

2013-02-26 Thread Johan Hovold
Switch to the generic get_icount implementation. Signed-off-by: Johan Hovold --- drivers/usb/serial/quatech2.c | 50 +++ 1 file changed, 12 insertions(+), 38 deletions(-) diff --git a/drivers/usb/serial/quatech2.c b/drivers/usb/serial/quatech2.c index 897

[PATCH 062/103] USB: f81232: add custom tiocmiwait operation

2013-02-26 Thread Johan Hovold
Break out TIOCMIWAIT handling from custom ioctl operation and use tiocmiwait operation field instead. Signed-off-by: Johan Hovold --- drivers/usb/serial/f81232.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/usb/serial/f81232.c b/drivers/usb/serial/f81232.c

[PATCH 090/103] USB: io_ti: always disable uart on close

2013-02-26 Thread Johan Hovold
Always try to disable the uart on close. Since the switch to tty ports, close will be called as part of shutdown before disconnect returns. Hence there is no need to check the disconnected flag, and we can put devices in disabled states also on driver unbind. Signed-off-by: Johan Hovold --- dri

[PATCH 045/103] USB: serial: clean up generic-operation handling

2013-02-26 Thread Johan Hovold
Most USB serial drivers are, and should be, using as much of the generic implementation as possible. Rename the fixup_generic function to a more descriptive name. Reword the related debug message in a more neutral tone (and remember to add the missing newline). Finally, move the operations initial

[PATCH 099/103] USB: visor: always disable uart on close

2013-02-26 Thread Johan Hovold
Always try to disable the uart on close. Since the switch to tty ports, close will be called as part of shutdown before disconnect returns. Hence there is no need to check the disconnected flag, and we can put devices in disabled states also on driver unbind. Signed-off-by: Johan Hovold --- dri

[PATCH 095/103] USB: opticon: remove disconnect test from tiocmset

2013-02-26 Thread Johan Hovold
Remove unnecessary disconnect test in tiocmset. No ioctls will be made after disconnect returns. Signed-off-by: Johan Hovold --- drivers/usb/serial/opticon.c | 16 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/drivers/usb/serial/opticon.c b/drivers/usb/serial/op

[PATCH 094/103] USB: opticon: fix return value of tiocmset

2013-02-26 Thread Johan Hovold
Make sure we return 0 or a negative error number appropriate for userspace on errors. Currently 1 rather than 0 is returned on successful operation. Signed-off-by: Johan Hovold --- drivers/usb/serial/opticon.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/driv

[PATCH 047/103] USB: serial: fix port release

2013-02-26 Thread Johan Hovold
We should not call kill_traffic (and usb_kill_urb) once disconnect returns. Any pending urbs are killed at disconnect and new submissions are prevented by usb_unbind_interface (and usb_disable_interface). Signed-off-by: Johan Hovold --- drivers/usb/serial/usb-serial.c | 7 --- 1 file changed

[PATCH 086/103] USB: ti_usb_3410_5052: switch to generic get_icount implementation

2013-02-26 Thread Johan Hovold
Switch to the generic get_icount implementation. Signed-off-by: Johan Hovold --- drivers/usb/serial/ti_usb_3410_5052.c | 44 ++- 1 file changed, 7 insertions(+), 37 deletions(-) diff --git a/drivers/usb/serial/ti_usb_3410_5052.c b/drivers/usb/serial/ti_usb_3410_

[PATCH 069/103] USB: mos7720: remove broken get_icount and TIOCMIWAIT

2013-02-26 Thread Johan Hovold
Remove broken get_icount and TIOCMIWAIT support. The driver has an icount structure but it is never been updated which makes get_icount rather pointless and causes TIOCMIWAIT to always return -EIO. Note that the TIOCMIWAIT implementation has always been broken and would not work even if icount su

[PATCH 032/103] USB: iuu_phoenix: remove bogus disconnect test in close

2013-02-26 Thread Johan Hovold
Remove bogus (and unnecessary) test for serial->dev being NULL in close. The device is never cleared, and close is never called after a completed disconnect anyway. Signed-off-by: Johan Hovold --- drivers/usb/serial/iuu_phoenix.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(

[PATCH 064/103] USB: io_edgeport: switch to generic TIOCMIWAIT implementation

2013-02-26 Thread Johan Hovold
Switch to the generic TIOCMIWAIT implementation. Signed-off-by: Johan Hovold --- drivers/usb/serial/io_edgeport.c | 37 + drivers/usb/serial/io_tables.h | 4 2 files changed, 5 insertions(+), 36 deletions(-) diff --git a/drivers/usb/serial/io_edgeport

[PATCH 093/103] USB: mos7720: always disable uart on close

2013-02-26 Thread Johan Hovold
Always try to disable the uart on close. Since the switch to tty ports, close will be called as part of shutdown before disconnect returns. Hence there is no need to check the disconnected flag, and we can put devices in disabled states also on driver unbind. Signed-off-by: Johan Hovold --- dri

[PATCH 063/103] USB: io_edgeport: switch to generic get_icount implementation

2013-02-26 Thread Johan Hovold
Switch to the generic get_icount implementation. Note that the interrupt counters will no longer be reset at open which is in accordance with which how the other drivers work. Signed-off-by: Johan Hovold --- drivers/usb/serial/io_edgeport.c | 45 +++- drivers

[PATCH 035/103] USB: keyspan_pda: remove bogus disconnect test in close

2013-02-26 Thread Johan Hovold
Remove bogus (and unnecessary) test for serial->dev being NULL in close. The device is never cleared, and close is never called after a completed disconnect anyway. Signed-off-by: Johan Hovold --- drivers/usb/serial/keyspan_pda.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) d

[PATCH 025/103] USB: serial: remove redundant comments

2013-02-26 Thread Johan Hovold
Remove redundant comments and fix some minor coding style issues. Signed-off-by: Johan Hovold --- drivers/usb/serial/usb-serial.c | 20 +--- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c index a5e8

[PATCH 091/103] USB: kl5kusb105: always disable uart on close

2013-02-26 Thread Johan Hovold
Always try to disable the uart on close. Since the switch to tty ports, close will be called as part of shutdown before disconnect returns. Hence there is no need to check the disconnected flag, and we can put devices in disabled states also on driver unbind. Signed-off-by: Johan Hovold --- dri

[PATCH 051/103] USB: serial: fix usb-serial bus device removal

2013-02-26 Thread Johan Hovold
Make sure to unregister the tty device before calling subdriver port_remove. This way remove will reverse probe, and specifically any port data released in port_remove will be available throughout tty unregister. Reported-by: Peter Hurley Signed-off-by: Johan Hovold --- drivers/usb/serial/bus.

[PATCH 067/103] USB: mct_u232: switch to generic get_icount implementation

2013-02-26 Thread Johan Hovold
Switch to the generic get_icount implementation. Signed-off-by: Johan Hovold --- drivers/usb/serial/mct_u232.c | 40 1 file changed, 4 insertions(+), 36 deletions(-) diff --git a/drivers/usb/serial/mct_u232.c b/drivers/usb/serial/mct_u232.c index 6a2957d

[PATCH 042/103] USB: serial: fix generic disconnect implementation

2013-02-26 Thread Johan Hovold
There is no need for the generic disconnect callback to stop the read and write urbs a second time as this has already been taken care of by close (which is called from hangup as part of disconnect). Signed-off-by: Johan Hovold --- drivers/usb/serial/generic.c | 12 +--- 1 file changed,

[PATCH 020/103] USB: kl5kusb105: remove unnecessary urb kill on close

2013-02-26 Thread Johan Hovold
Remove kill of interrupt-in urb on close as it has never been submitted. Signed-off-by: Johan Hovold --- drivers/usb/serial/kl5kusb105.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/usb/serial/kl5kusb105.c b/drivers/usb/serial/kl5kusb105.c index 769d910..57fd001 100644 --- a/dri

[PATCH 087/103] USB: ti_usb_3410_5052: switch to generic TIOCMIWAIT implementation

2013-02-26 Thread Johan Hovold
Switch to the generic TIOCMIWAIT implementation which does not suffer from the races involved when using the deprecated sleep_on functions. Signed-off-by: Johan Hovold --- drivers/usb/serial/ti_usb_3410_5052.c | 30 +++--- 1 file changed, 3 insertions(+), 27 deletions(-)

[PATCH 034/103] USB: keyspan_pda: remove bogus disconnect test from dtr_rts

2013-02-26 Thread Johan Hovold
Remove bogus (and unnecessary) test for serial->dev being NULL in dtr_rts. The device is never cleared, and disconnect is handled for dtr_rts in usb-serial core anyway. Signed-off-by: Johan Hovold --- drivers/usb/serial/keyspan_pda.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions

[PATCH 065/103] USB: io_ti: switch to generic get_icount implementation

2013-02-26 Thread Johan Hovold
Switch to the generic get_icount implementation. Note that the interrupt counters will no longer be reset at open which is in accordance with which how the other drivers work. Signed-off-by: Johan Hovold --- drivers/usb/serial/io_ti.c | 39 --- 1 file changed

[PATCH 046/103] USB: cyberjack: fix disconnect handling

2013-02-26 Thread Johan Hovold
Make sure the interrupt urb submitted in port_probe is killed in port_remove. The interrupt-urb completion handler references the port and may get called after port_remove has returned and the port has been unregistered (although this is currently prevented by usb-serial core as we are using a non

[PATCH 030/103] USB: cyberjack: remove bogus disconnect test in close

2013-02-26 Thread Johan Hovold
Remove bogus (and unnecessary) test for serial->dev being NULL in close. The device is never cleared, and close is never called after a completed disconnect anyway. Signed-off-by: Johan Hovold --- drivers/usb/serial/cyberjack.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff

[PATCH 103/103] USB: serial: update copyright information

2013-02-26 Thread Johan Hovold
Update copyright information. Signed-off-by: Johan Hovold --- drivers/usb/serial/ftdi_sio.c | 2 +- drivers/usb/serial/generic.c| 2 +- drivers/usb/serial/usb-serial.c | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/f

[PATCH 029/103] USB: ark3116: remove bogus disconnect test in close

2013-02-26 Thread Johan Hovold
Remove bogus (and unnecessary) test for serial->dev being NULL in close. The device is never cleared, and close is never called after a completed disconnect anyway. Signed-off-by: Johan Hovold --- drivers/usb/serial/ark3116.c | 17 +++-- 1 file changed, 7 insertions(+), 10 deletions

[PATCH 049/103] USB: fix urb-poison imbalance

2013-02-26 Thread Johan Hovold
The calls to usb_poison_urb and usb_unpoison_urb are expected to be balanced. However, if an urb that has not yet been submitted is poisoned, its reject counter will not be increased as its ep-field is NULL. A consecutive call to unpoison will thus in fact poison the urb as its reject counter will

[PATCH 080/103] USB: spcp8x5: pass usb-serial port to control functions

2013-02-26 Thread Johan Hovold
Pass usb-serial port to the control functions for uart status and work mode. Use port device for debugging and use dev_err to report errors. Signed-off-by: Johan Hovold --- drivers/usb/serial/spcp8x5.c | 54 +++- 1 file changed, 28 insertions(+), 26 delet

[PATCH 052/103] USB: serial: add tiocmiwait subdriver operation

2013-02-26 Thread Johan Hovold
Add tiocmiwait operation to struct usb_serial_driver. Signed-off-by: Johan Hovold --- drivers/usb/serial/usb-serial.c | 15 +++ include/linux/usb/serial.h | 1 + 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial

[PATCH 050/103] USB: serial: use urb poison to reliably kill traffic

2013-02-26 Thread Johan Hovold
Use usb_poison_urb to reliably kill all urbs on disconnect and suspend. This way there will be no question that the urbs cannot be resubmitted by buggy subdrivers. Signed-off-by: Johan Hovold --- drivers/usb/serial/usb-serial.c | 55 +++-- 1 file changed, 37

[PATCH 044/103] USB: serial: remove generic release callback

2013-02-26 Thread Johan Hovold
Remove empty generic release implementation and make the release callback non-mandatory (like attach, probe and disconnect). Signed-off-by: Johan Hovold --- drivers/usb/serial/generic.c| 5 - drivers/usb/serial/usb-serial.c | 3 +-- include/linux/usb/serial.h | 1 - 3 files changed,

[PATCH 061/103] USB: cypress_m8: replace custom ioctl operation with tiocmiwait

2013-02-26 Thread Johan Hovold
Replace custom ioctl operation with tiocmiwait. Signed-off-by: Johan Hovold --- drivers/usb/serial/cypress_m8.c | 81 + 1 file changed, 34 insertions(+), 47 deletions(-) diff --git a/drivers/usb/serial/cypress_m8.c b/drivers/usb/serial/cypress_m8.c index

[PATCH 084/103] USB: ssu100: switch to generic get_icount implementation

2013-02-26 Thread Johan Hovold
Switch to the generic get_icount implementation. Signed-off-by: Johan Hovold --- drivers/usb/serial/ssu100.c | 55 + 1 file changed, 15 insertions(+), 40 deletions(-) diff --git a/drivers/usb/serial/ssu100.c b/drivers/usb/serial/ssu100.c index adbca36

[PATCH 079/103] USB: spcp8x5: clean up code

2013-02-26 Thread Johan Hovold
Clean up this driver somewhat. Signed-off-by: Johan Hovold --- drivers/usb/serial/spcp8x5.c | 72 +++- 1 file changed, 37 insertions(+), 35 deletions(-) diff --git a/drivers/usb/serial/spcp8x5.c b/drivers/usb/serial/spcp8x5.c index f34930c..a5c3a36 100644

[PATCH 100/103] USB: garmin_gps: remove bogus disconnect test in close

2013-02-26 Thread Johan Hovold
Remove bogus disconnect test for serial device being NULL in close. This can never happen as close is guaranteed to be called before the last tty reference is dropped (and port->serial is cleared). Signed-off-by: Johan Hovold --- drivers/usb/serial/garmin_gps.c | 4 1 file changed, 4 deleti

[PATCH 082/103] USB: spcp8x5: reimplement device type detection

2013-02-26 Thread Johan Hovold
Reimplement device type detection using the device id table and quirks. Device type was used to detect one device type which did not support to control functions. Add quirks to the device table and store them in the private port data at probe instead. Signed-off-by: Johan Hovold --- drivers/usb

[PATCH 053/103] USB: serial: add generic TIOCMIWAIT implementation

2013-02-26 Thread Johan Hovold
Add generic TIOCMIWAIT implementation which correctly handles USB-device disconnects, does not rely on the deprecated sleep_on functions and hence does not suffer from the races currently affecting several usb-serial drivers. This makes it much easier to add TIOCMIWAIT support to subdrivers as the

[PATCH 096/103] USB: pl2303: fix return value of tiocmset

2013-02-26 Thread Johan Hovold
Make sure we return 0 or a negative error number appropriate for userspace on errors. Signed-off-by: Johan Hovold --- drivers/usb/serial/pl2303.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c index 4b709585..8

[PATCH 076/103] USB: quatech2: switch to generic TIOCMIWAIT implementation

2013-02-26 Thread Johan Hovold
Switch to the generic TIOCMIWAIT implementation. Signed-off-by: Johan Hovold --- drivers/usb/serial/quatech2.c | 48 ++- 1 file changed, 2 insertions(+), 46 deletions(-) diff --git a/drivers/usb/serial/quatech2.c b/drivers/usb/serial/quatech2.c index 8ce8

[PATCH 066/103] USB: io_ti: switch to generic TIOCMIWAIT implementation

2013-02-26 Thread Johan Hovold
Switch to the generic TIOCMIWAIT implementation which does not suffer from the races involved when using the deprecated sleep_on functions. Signed-off-by: Johan Hovold --- drivers/usb/serial/io_ti.c | 38 -- 1 file changed, 4 insertions(+), 34 deletions(-) di

  1   2   3   4   >