[patch 05/06] ti_usb, device setup: without any artificial errors, use configuration changing
pp-by: Oleg Verych
---
i.e. no more uGLYdev with sysfs
Alan, i'm looking forward to deal with this crutch :-E
drivers/usb/serial/ti_usb_3410_5052.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
Index: linux-source-2.6.18/drivers/usb/serial/ti_usb_3410_5052.c
===================================================================
--- linux-source-2.6.18.orig/drivers/usb/serial/ti_usb_3410_5052.c 2007-02-23 09:13:05.314141000 +0100
+++ linux-source-2.6.18/drivers/usb/serial/ti_usb_3410_5052.c 2007-02-23 09:13:08.846361750 +0100
@@ -387,13 +387,13 @@
usb_reset_device(dev);
}
- status = -ENODEV;
+ status = 0x01E; /* positive status -- device to be reconfigured */
goto free_tdev;
}
- /* the second configuration must be set (in sysfs by hotplug script) */
if (dev->actconfig->desc.bConfigurationValue == TI_BOOT_CONFIG) {
- status = -ENODEV;
+ (void) usb_driver_set_configuration(dev, TI_ACTIVE_CONFIG);
+ status = 0xA1B;
goto free_tdev;
}
--
Reply to: