USB: cp210x: Remove double usb_control_msg from cp210x_set_config
authorMichael Brunner <mibru@gmx.de>
Wed, 10 Mar 2010 22:26:37 +0000 (23:26 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 19 Mar 2010 14:24:23 +0000 (07:24 -0700)
commite549a17f698e266373f6757bd068d1e98397b4c0
treeed8a5c743f6df8784adbfc11b1587026a25dc2ea
parent7f56cfd253d929c06ce4ed5bfb99a8c6805075c9
USB: cp210x: Remove double usb_control_msg from cp210x_set_config

This patch removes a double usb_control_msg that sets the cp210x
configuration registers a second time when calling cp210x_set_config.
For data sizes >2 the second write gets corrupted.
The patch has been created against 2.6.34-rc1, but all cp210x driver
revisions are affected.

Signed-off-by: Michael Brunner <mibru@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/cp210x.c