aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/mos7840.c
diff options
context:
space:
mode:
authorPreston Fick <preston.fick@silabs.com>2012-02-24 13:42:39 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-04-02 09:52:33 -0700
commit30f0518605762cf1dbf3379acc573cf129cbf593 (patch)
tree93a355ffeee0f6885e60d61d6e1b54b2ec52a341 /drivers/usb/serial/mos7840.c
parent39531b9566659b87cc585807e797eaf2dde4d563 (diff)
downloadkernel_samsung_smdk4412-30f0518605762cf1dbf3379acc573cf129cbf593.zip
kernel_samsung_smdk4412-30f0518605762cf1dbf3379acc573cf129cbf593.tar.gz
kernel_samsung_smdk4412-30f0518605762cf1dbf3379acc573cf129cbf593.tar.bz2
usb: cp210x: Update to support CP2105 and multiple interface devices
commit a5360a53a7ccad5ed9ccef210b94fef13c6e5529 upstream. This patch updates the cp210x driver to support CP210x multiple interface devices devices from Silicon Labs. The existing driver always sends control requests to interface 0, which is hardcoded in the usb_control_msg function calls. This only allows for single interface devices to be used, and causes a bug when using ports on an interface other than 0 in the multiple interface devices. Here are the changes included in this patch: - Updated the device list to contain the Silicon Labs factory default VID/PID for multiple interface CP210x devices - Created a cp210x_port_private struct created for each port on startup, this struct holds the interface number - Added a cp210x_release function to clean up the cp210x_port_private memory created on startup - Modified usb_get_config and usb_set_config to get a pointer to the cp210x_port_private struct, and use the interface number there in the usb_control_message wIndex param Signed-off-by: Preston Fick <preston.fick@silabs.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/mos7840.c')
0 files changed, 0 insertions, 0 deletions