]> git.karo-electronics.de Git - karo-tx-linux.git/commit
USB: Allow initialization of broken keyspan serial adapters.
authorClark Rawlins <clark.rawlins@escient.com>
Wed, 2 Apr 2008 23:15:09 +0000 (23:15 +0000)
committerChris Wright <chrisw@sous-sol.org>
Sat, 19 Apr 2008 01:53:22 +0000 (18:53 -0700)
commitff66974a0f9a9f938f182c49f1464ba54a31e553
tree26a3eb06fe9ed9f3cc24185fcd6ad75e4e1e3149
parenta5b76cbbbe0fb76270f7babce48bda9b8806f9ea
USB: Allow initialization of broken keyspan serial adapters.

upstream commit: 822470537d0fc1dee38a2a9c8b8c398bfbb332bb

Fixes the keyspan driver after the addition of additional
checking of driver requirements introduced in usb-serial.c
commit 063a2da8f01806906f7d7b1a1424b9afddebc443.  The initialization
of the keyspan usb_serial_driver structs were not initializing the
num_interrupt_out field and the additional checking was rejecting
the end point so the driver wouldn't finish initializing.

This commit initializes the fields to NUM_DONT_CARE.
It works for the keyspan USA-49WG and doesn't break the USA-19HS
which are the two keyspan devices I have to test with.

Signed-off-by: Clark Rawlins <clark.rawlins@escient.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
drivers/usb/serial/keyspan.h