From: Johan Hovold Date: Wed, 17 Mar 2010 22:05:56 +0000 (+0100) Subject: USB: serial: clean up read processing in generic driver X-Git-Tag: v2.6.35-rc1~471^2~188 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f3d5bae2bdacce6c6c1d116809d6b3d50338df7;p=pandora-kernel.git USB: serial: clean up read processing in generic driver Always process and flush read urb, but only resubmit when not throttled. The new tty-layer supply plenty of slack so there is really no need to cache and delay processing of a single urb while throttled. Note that unthrottle now submits using GFP_KERNEL as we are not in atomic context (so there is no need to save irq state either). Note also that the process_read_urb function could be added to usb_serial_driver should any driver need to do any device specific processing. Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed