OSDN Git Service

USB: serial: mos7840: Fixed MCS7820 device attach problem
authorDonald Lee <donald@asix.com.tw>
Wed, 14 Mar 2012 07:26:33 +0000 (15:26 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Mar 2012 19:25:26 +0000 (12:25 -0700)
commit093ea2d3a766cb8a4c4de57efec6c0a127a58792
treed97a4cbade1793fd5e32066b4f4b5f4b21591e7e
parent53c6bc24fdc8db87109a5760579cbb060fa644cf
USB: serial: mos7840: Fixed MCS7820 device attach problem

A MCS7820 device supports two serial ports and a MCS7840 device supports
four serial ports. Both devices use the same driver, but the attach function
in driver was unable to correctly handle the port numbers for MCS7820
device. This problem has been fixed in this patch and this fix has been
verified on x86 Linux kernel 3.2.9 with both MCS7820 and MCS7840 devices.

Signed-off-by: Donald Lee <donald@asix.com.tw>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/mos7840.c