forked from Minki/linux
usb: dwc3: remove repeated setting of current_dr_role
dwc3_set_prtcap() already sets current_dr_role as DWC3_GCTL_PRTCAP_OTG, so remove the repeated one. Acked-by: Felipe Balbi <balbi@kernel.org> Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com> Link: https://lore.kernel.org/r/20210506072608.32320-1-chunfeng.yun@mediatek.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f42b333f28
commit
374ac7448c
@ -596,7 +596,6 @@ int dwc3_drd_init(struct dwc3 *dwc)
|
|||||||
dwc3_drd_update(dwc);
|
dwc3_drd_update(dwc);
|
||||||
} else {
|
} else {
|
||||||
dwc3_set_prtcap(dwc, DWC3_GCTL_PRTCAP_OTG);
|
dwc3_set_prtcap(dwc, DWC3_GCTL_PRTCAP_OTG);
|
||||||
dwc->current_dr_role = DWC3_GCTL_PRTCAP_OTG;
|
|
||||||
|
|
||||||
/* use OTG block to get ID event */
|
/* use OTG block to get ID event */
|
||||||
irq = dwc3_otg_get_irq(dwc);
|
irq = dwc3_otg_get_irq(dwc);
|
||||||
|
Loading…
Reference in New Issue
Block a user