Commit 5f6225a7 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab Committed by Johan Hovold
Browse files

USB: cdc-acm: ignore Exar XR21V141X when serial driver is built



The Exar XR21V141X can be used in either ACM mode using the cdc-acm
driver or in "custom driver" mode in which further features such as
hardware and software flow control, GPIO control and in-band line-status
reporting are available.

In ACM mode the device always enables RTS/CTS flow control, something
which could prevent transmission in case the CTS input isn't wired up
correctly.

Ensure that cdc_acm will not bind to the device if the custom USB-serial
driver is enabled.

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: default avatarManivannan Sadhasivam <mani@kernel.org>
Link: https://lore.kernel.org/r/20201122170822.21715-4-mani@kernel.org


[ johan: rewrite commit message ]
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
parent c2d405aa
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1901,6 +1901,12 @@ static const struct usb_device_id acm_ids[] = {
	},
#endif

#if IS_ENABLED(CONFIG_USB_SERIAL_XR)
	{ USB_DEVICE(0x04e2, 0x1410),   /* Ignore XR21V141X USB to Serial converter */
	.driver_info = IGNORE_DEVICE,
	},
#endif

	/*Samsung phone in firmware update mode */
	{ USB_DEVICE(0x04e8, 0x685d),
	.driver_info = IGNORE_DEVICE,