mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
usb: gadget: net2280: restore ep_cfg after defect7374 workaround
Defect 7374 workaround enables all GPEP as endpoint 0. Restore endpoint number when defect 7374 workaround is disabled. Otherwise, check to match USB endpoint number to hardware endpoint number in net2280_enable() fails. Cc: <[email protected]> # 4.2 Reported-by: Paul Jones <[email protected]> Signed-off-by: Mian Yousaf Kaukab <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
This commit is contained in:
parent
dc87308469
commit
81e9d14a53
1 changed files with 1 additions and 1 deletions
|
|
@ -1913,7 +1913,7 @@ static void defect7374_disable_data_eps(struct net2280 *dev)
|
|||
|
||||
for (i = 1; i < 5; i++) {
|
||||
ep = &dev->ep[i];
|
||||
writel(0, &ep->cfg->ep_cfg);
|
||||
writel(i, &ep->cfg->ep_cfg);
|
||||
}
|
||||
|
||||
/* CSROUT, CSRIN, PCIOUT, PCIIN, STATIN, RCIN */
|
||||
|
|
|
|||
Loading…
Reference in a new issue