Skip to contentSkip to conversation

cdc-acm: fix abnormal DATA RX issue for Mediatek Preloader.

PATCH Superseded [email protected] 1 participant 1 message Dec 18, 2018

Subsystems (2)

v5 of 7 Superseded Latest is v7 →

lore
Share & tools
lore
#0 lore raw

PATCH v5 1/1 cdc-acm: fix abnormal DATA RX issue for Mediatek Preloader.

Quoted 34 lines · Macpaul Lin
Quoted 16 lines · Oliver Neukum
Quoted 11 lines · Johan Hovold

On

Review static int acm_pre_reset(struct usb_interface *intf) · line 1665

Quoted 6 lines
(quoted diff) +1 -1
@@ -1655,7 +1662,10 @@ static int acm_pre_reset(struct usb_interface *intf)
 	.driver_info = NO_UNION_NORMAL, /* has no union descriptor */
 	},
 	{ USB_DEVICE(0x0e8d, 0x0003), /* FIREFLY, MediaTek Inc; [email protected] */
-	.driver_info = NO_UNION_NORMAL, /* has no union descriptor */
+	.driver_info = DISABLE_ECHO, /* DISABLE ECHO in termios flag */

I just noticed that you remove the NO_UNION_NORMAL here, which looks wrong and definitely requires a motivation.

Quoted 3 lines

Thanks,
Johan

Quoted 9 lines

Hi,

thank you and thank you Johan.
Unfortunately I cannot take this until the issue with the removed quirk is clarified.

Regards
Oliver

Hi,
Thanks Johan's help on reviewing the updated patches. According to Andrey's patch, the commit said this change is for "Samsung X180 China cellphone" which might be also a Mediatek SoC based phone using Mediatek VID.
https://goo.gl/a9ddNq (I've add a url for reference here).

Quoted 5 lines

But I'm not sure the PID is for Mediatek's BROM or customized Preloader. (Both should be able to apply DISABLE_ECHO flag).
Maybe I can simply update PATCH v6 by removing FIREFLY if any one has problem here.
Let's also loop Andrey for clarification.

Hi all,

After double check the PID/VID officially used (registered) by Mediatek Inc. The following VID/PID maps to the corresponding USB interface of the firmware of cell phone.
VID:0x0e8d, PID:0x0003: Mediatek BROM.
VID:0x0e8d, PID:0x2000: Mediatek Preloader.

I will update Patch v6 for changing Andrey's previous comments.

Thanks.

Regards,
Macpaul Lin.