@@ -1220,27 +1220,26 @@ static int acm_probe(struct usb_interface *intf,
if (cmgmd)
call_intf_num = cmgmd->bDataInterface;
- if (!union_header) {
- if (call_intf_num > 0) {
+ combined_interfaces = (quirks & NO_DATA_INTERFACE) != 0;
+
+ if (!union_header || combined_interfaces) {
+ if (call_intf_num > 0 && !combined_interfaces) {
dev_dbg(&intf->dev, "No union descriptor, using call management descriptor\n");
- /* quirks for Droids MuIn LCD */
- if (quirks & NO_DATA_INTERFACE) {
- data_interface = usb_ifnum_to_if(usb_dev, 0);
- } else {
- data_intf_num = call_intf_num;
- data_interface = usb_ifnum_to_if(usb_dev, data_intf_num);
- }
+ data_intf_num = call_intf_num;
+ data_interface = usb_ifnum_to_if(usb_dev, data_intf_num);
control_interface = intf;
} else {
if (intf->cur_altsetting->desc.bNumEndpoints != 3) {
dev_dbg(&intf->dev,"No union descriptor, giving up\n");
return -ENODEV;
- } else {
+ }
+
+ if (!combined_interfaces) {
dev_warn(&intf->dev,"No union descriptor, testing for castrated device\n");
combined_interfaces = 1;
- control_interface = data_interface = intf;
- goto look_for_collapsed_interface;
}
+ control_interface = data_interface = intf;
+ goto look_for_collapsed_interface;
}
} else {
data_intf_num = union_header->bSlaveInterface0;
@@ -1807,6 +1806,19 @@ static const struct usb_device_id acm_ids[] = {
.driver_info = CLEAR_HALT_CONDITIONS,
},
+ { USB_DEVICE_INTERFACE_CLASS(0x2a59, 0x0010, USB_CDC_SUBCLASS_ACM), /* Whistler TRX-1 */
+ .driver_info = NO_DATA_INTERFACE,
+ },
+ { USB_DEVICE_INTERFACE_CLASS(0x2a59, 0x0011, USB_CDC_SUBCLASS_ACM), /* Whistler TRX-2 */
+ .driver_info = NO_DATA_INTERFACE,
+ },
+ { USB_DEVICE_INTERFACE_CLASS(0x2a59, 0x0012, USB_CDC_SUBCLASS_ACM), /* Whistler TRX-1e */
+ .driver_info = NO_DATA_INTERFACE,
+ },
+ { USB_DEVICE_INTERFACE_CLASS(0x2a59, 0x0013, USB_CDC_SUBCLASS_ACM), /* Whistler TRX-2e */
+ .driver_info = NO_DATA_INTERFACE,
+ },
+
/* Nokia S60 phones expose two ACM channels. The first is
* a modem and is picked up by the standard AT-command
* information below. The second is 'vendor-specific' but