Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

USB: Allow initialization of broken keyspan serial adapters.

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>

authored by

Clark Rawlins and committed by
Greg Kroah-Hartman
82247053 4756febb

+4
+4
drivers/usb/serial/keyspan.h
··· 637 637 .description = "Keyspan - (without firmware)", 638 638 .id_table = keyspan_pre_ids, 639 639 .num_interrupt_in = NUM_DONT_CARE, 640 + .num_interrupt_out = NUM_DONT_CARE, 640 641 .num_bulk_in = NUM_DONT_CARE, 641 642 .num_bulk_out = NUM_DONT_CARE, 642 643 .num_ports = 1, ··· 652 651 .description = "Keyspan 1 port adapter", 653 652 .id_table = keyspan_1port_ids, 654 653 .num_interrupt_in = NUM_DONT_CARE, 654 + .num_interrupt_out = NUM_DONT_CARE, 655 655 .num_bulk_in = NUM_DONT_CARE, 656 656 .num_bulk_out = NUM_DONT_CARE, 657 657 .num_ports = 1, ··· 680 678 .description = "Keyspan 2 port adapter", 681 679 .id_table = keyspan_2port_ids, 682 680 .num_interrupt_in = NUM_DONT_CARE, 681 + .num_interrupt_out = NUM_DONT_CARE, 683 682 .num_bulk_in = NUM_DONT_CARE, 684 683 .num_bulk_out = NUM_DONT_CARE, 685 684 .num_ports = 2, ··· 708 705 .description = "Keyspan 4 port adapter", 709 706 .id_table = keyspan_4port_ids, 710 707 .num_interrupt_in = NUM_DONT_CARE, 708 + .num_interrupt_out = NUM_DONT_CARE, 711 709 .num_bulk_in = NUM_DONT_CARE, 712 710 .num_bulk_out = NUM_DONT_CARE, 713 711 .num_ports = 4,