From: Chunfeng Yun Date: Thu, 6 May 2021 07:26:08 +0000 (+0800) Subject: usb: dwc3: remove repeated setting of current_dr_role X-Git-Tag: accepted/tizen/unified/20230118.172025~6887^2~176 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=374ac7448caa73d689b50fd3c4fb59e40f1ab0b1;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Chunfeng Yun Link: https://lore.kernel.org/r/20210506072608.32320-1-chunfeng.yun@mediatek.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/dwc3/drd.c b/drivers/usb/dwc3/drd.c index e2b68bb..8fcbac1 100644 --- a/drivers/usb/dwc3/drd.c +++ b/drivers/usb/dwc3/drd.c @@ -596,7 +596,6 @@ int dwc3_drd_init(struct dwc3 *dwc) dwc3_drd_update(dwc); } else { dwc3_set_prtcap(dwc, DWC3_GCTL_PRTCAP_OTG); - dwc->current_dr_role = DWC3_GCTL_PRTCAP_OTG; /* use OTG block to get ID event */ irq = dwc3_otg_get_irq(dwc);