Skip to content

Commit 6d853c9

Browse files
seebegregkh
authored andcommitted
usb: cdc-acm: Add DISABLE_ECHO for Renesas USB Download mode
Renesas R-Car and RZ/G SoCs have a firmware download mode over USB. However, on reset a banner string is transmitted out which is not expected to be echoed back and will corrupt the protocol. Cc: stable <[email protected]> Acked-by: Oliver Neukum <[email protected]> Signed-off-by: Chris Brandt <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 4df694a commit 6d853c9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

drivers/usb/class/cdc-acm.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1693,6 +1693,15 @@ static const struct usb_device_id acm_ids[] = {
16931693
{ USB_DEVICE(0x0870, 0x0001), /* Metricom GS Modem */
16941694
.driver_info = NO_UNION_NORMAL, /* has no union descriptor */
16951695
},
1696+
{ USB_DEVICE(0x045b, 0x023c), /* Renesas USB Download mode */
1697+
.driver_info = DISABLE_ECHO, /* Don't echo banner */
1698+
},
1699+
{ USB_DEVICE(0x045b, 0x0248), /* Renesas USB Download mode */
1700+
.driver_info = DISABLE_ECHO, /* Don't echo banner */
1701+
},
1702+
{ USB_DEVICE(0x045b, 0x024D), /* Renesas USB Download mode */
1703+
.driver_info = DISABLE_ECHO, /* Don't echo banner */
1704+
},
16961705
{ USB_DEVICE(0x0e8d, 0x0003), /* FIREFLY, MediaTek Inc; [email protected] */
16971706
.driver_info = NO_UNION_NORMAL, /* has no union descriptor */
16981707
},

0 commit comments

Comments
 (0)