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>
Thu, 28 Nov 2019 17:26:25 +0000 (18:26 +0100)
commita6da8dce18d1002caa4c8f292fb6fefb569662d0
tree922bd87bf7752358a983f378b40dd9dbafaafade
parent6f10c432716f868ef5995c2a24bea0eab59777be
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