OSDN Git Service

USB: serial: mos7840: add USB ID to support Moxa UPort 2210
authorPavel Löbl <pavel@loebl.cz>
Fri, 1 Nov 2019 07:01:50 +0000 (08:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 1 Dec 2019 08:17:42 +0000 (09:17 +0100)
commit84743898d60bd9ac8a3ad0cac53aa01d508175bb
tree8990fbf836547ca43708e919f6f5ece5741e33bb
parent356440a79b6b2faf796a65b9915b0882e9f1f73b
USB: serial: mos7840: add USB ID to support Moxa UPort 2210

commit e696d00e65e81d46e911f24b12e441037bf11b38 upstream.

Add USB ID for MOXA UPort 2210. This device contains mos7820 but
it passes GPIO0 check implemented by driver and it's detected as
mos7840. Hence product id check is added to force mos7820 mode.

Signed-off-by: Pavel Löbl <pavel@loebl.cz>
Cc: stable <stable@vger.kernel.org>
[ johan: rename id defines and add vendor-id check ]
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/mos7840.c