From: Vardan Mikayelyan <mvardan@synopsys.com> Date: Thu, 26 May 2016 01:06:58 +0000 (-0700) Subject: UPSTREAM: usb: dwc2: gadget: Remove unnecessary code X-Git-Tag: firefly_0821_release~849 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c31fe3bb2ee55b3f16d02b9d20f1b5d1e101462a;p=firefly-linux-kernel-4.4.55.git UPSTREAM: usb: dwc2: gadget: Remove unnecessary code This chunk is not needed here. There is no functionality depend on this, so if no-op, I think we do not need to have this interrupt unmasked. Change-Id: I74a0861ce66e23888c001b7cf1833b7cce715362 Tested-by: John Keeping <john@metanate.com> Signed-off-by: Vardan Mikayelyan <mvardan@synopsys.com> Signed-off-by: John Youn <johnyoun@synopsys.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com> Signed-off-by: Huang, Tao <huangtao@rock-chips.com> (cherry picked from commit 7c01b99154c5819bb811100738880a1341bca64a) --- diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c index 34c63e94f1f5..1487968f590c 100644 --- a/drivers/usb/dwc2/gadget.c +++ b/drivers/usb/dwc2/gadget.c @@ -657,14 +657,6 @@ static void dwc2_hsotg_start_req(struct dwc2_hsotg *hsotg, dwc2_hsotg_write_fifo(hsotg, hs_ep, hs_req); } - /* - * clear the INTknTXFEmpMsk when we start request, more as a aide - * to debugging to see what is going on. - */ - if (dir_in) - dwc2_writel(DIEPMSK_INTKNTXFEMPMSK, - hsotg->regs + DIEPINT(index)); - /* * Note, trying to clear the NAK here causes problems with transmit * on the S3C6400 ending up with the TXFIFO becoming full.