Johan, Confirming that makes my device work again. Thank you. Eric On Thu, Oct 21, 2010 at 2:49 AM, Johan Hovold <jhovold@xxxxxxxxx> wrote: > Hi Eric, > > On Wed, Oct 20, 2010 at 12:21:06AM -0600, Eric Shattow Eprecocious wrote: >> I have a purple "U232-P9(2.4)" USB to Serial adapter. The distributor >> I bought it from made a big deal about the purple color distinguishing >> this from other similar adapters. >> >> This adapter works with kernel 2.6.34.7 and breaks with kernel 2.6.35, > > I'm pretty sure this patch will fix the problem you're experiencing. > Care to give it > a try? > > (I'm sending this patch through gmail -- hope that does not mess anything (e.g. > formatting) up. Can resend it later today otherwise). > > Thanks, > Johan > > > >From 3f9ff29016edbfcda051bdefd8d13c549bc8ef6e Mon Sep 17 00:00:00 2001 > From: Johan Hovold <jhovold@xxxxxxxxx> > Date: Thu, 21 Oct 2010 10:40:20 +0200 > Subject: [PATCH] USB: mct_u232: fix broken close > > Fix regression introduced by commit > f26788da3b342099d2b02d99ba1cb7f154d6ef7b (USB: serial: refactor generic > close) which broke driver close(). > > This driver uses non-standard semantics for the read urb which makes the > generic close function fail to kill it (the read urb is actually an > interrupt urb and therefore bulk_in size is zero). > > Reported-by: Eric Shattow "Eprecocious" <lucent@xxxxxxxxx> > Cc: stable <stable@xxxxxxxxxx> > Signed-off-by: Johan Hovold <jhovold@xxxxxxxxx> > --- > Âdrivers/usb/serial/mct_u232.c | Â Â7 +++++-- > Â1 files changed, 5 insertions(+), 2 deletions(-) > > diff --git a/drivers/usb/serial/mct_u232.c b/drivers/usb/serial/mct_u232.c > index 7aa01b9..2849f8c 100644 > --- a/drivers/usb/serial/mct_u232.c > +++ b/drivers/usb/serial/mct_u232.c > @@ -549,9 +549,12 @@ static void mct_u232_close(struct usb_serial_port *port) > Â{ > Â Â Â Âdbg("%s port %d", __func__, port->number); > > - Â Â Â usb_serial_generic_close(port); > - Â Â Â if (port->serial->dev) > + Â Â Â if (port->serial->dev) { > + Â Â Â Â Â Â Â /* shutdown our urbs */ > + Â Â Â Â Â Â Â usb_kill_urb(port->write_urb); > + Â Â Â Â Â Â Â usb_kill_urb(port->read_urb); > Â Â Â Â Â Â Â Âusb_kill_urb(port->interrupt_in_urb); > + Â Â Â } > Â} /* mct_u232_close */ > > > -- > 1.7.3.1 > -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html