diff options
-rw-r--r-- | drivers/usb/gadget/pch_udc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/usb/gadget/pch_udc.c b/drivers/usb/gadget/pch_udc.c index 216f648bae6c..0c8dd81dddca 100644 --- a/drivers/usb/gadget/pch_udc.c +++ b/drivers/usb/gadget/pch_udc.c | |||
@@ -2150,7 +2150,10 @@ static void pch_udc_svc_control_out(struct pch_udc_dev *dev) | |||
2150 | pch_udc_set_dma(dev, DMA_DIR_RX); | 2150 | pch_udc_set_dma(dev, DMA_DIR_RX); |
2151 | } else { | 2151 | } else { |
2152 | /* control write */ | 2152 | /* control write */ |
2153 | pch_udc_svc_data_out(dev, UDC_EP0OUT_IDX); | 2153 | /* next function will pickuo an clear the status */ |
2154 | ep->epsts = stat; | ||
2155 | |||
2156 | pch_udc_svc_data_out(dev, 0); | ||
2154 | /* re-program desc. pointer for possible ZLPs */ | 2157 | /* re-program desc. pointer for possible ZLPs */ |
2155 | pch_udc_ep_set_ddptr(ep, ep->td_data_phys); | 2158 | pch_udc_ep_set_ddptr(ep, ep->td_data_phys); |
2156 | pch_udc_set_dma(dev, DMA_DIR_RX); | 2159 | pch_udc_set_dma(dev, DMA_DIR_RX); |