diff options
Diffstat (limited to 'drivers/usb/gadget/amd5536udc.c')
-rw-r--r-- | drivers/usb/gadget/amd5536udc.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/usb/gadget/amd5536udc.c b/drivers/usb/gadget/amd5536udc.c index f8dd7269d79c..6e42aab75806 100644 --- a/drivers/usb/gadget/amd5536udc.c +++ b/drivers/usb/gadget/amd5536udc.c | |||
@@ -278,7 +278,7 @@ static int udc_enable_dev_setup_interrupts(struct udc *dev) | |||
278 | return 0; | 278 | return 0; |
279 | } | 279 | } |
280 | 280 | ||
281 | /* Calculates fifo start of endpoint based on preceeding endpoints */ | 281 | /* Calculates fifo start of endpoint based on preceding endpoints */ |
282 | static int udc_set_txfifo_addr(struct udc_ep *ep) | 282 | static int udc_set_txfifo_addr(struct udc_ep *ep) |
283 | { | 283 | { |
284 | struct udc *dev; | 284 | struct udc *dev; |
@@ -2137,7 +2137,7 @@ static irqreturn_t udc_data_out_isr(struct udc *dev, int ep_ix) | |||
2137 | if (use_dma) { | 2137 | if (use_dma) { |
2138 | /* BNA event ? */ | 2138 | /* BNA event ? */ |
2139 | if (tmp & AMD_BIT(UDC_EPSTS_BNA)) { | 2139 | if (tmp & AMD_BIT(UDC_EPSTS_BNA)) { |
2140 | DBG(dev, "BNA ep%dout occured - DESPTR = %x \n", | 2140 | DBG(dev, "BNA ep%dout occurred - DESPTR = %x \n", |
2141 | ep->num, readl(&ep->regs->desptr)); | 2141 | ep->num, readl(&ep->regs->desptr)); |
2142 | /* clear BNA */ | 2142 | /* clear BNA */ |
2143 | writel(tmp | AMD_BIT(UDC_EPSTS_BNA), &ep->regs->sts); | 2143 | writel(tmp | AMD_BIT(UDC_EPSTS_BNA), &ep->regs->sts); |
@@ -2151,7 +2151,7 @@ static irqreturn_t udc_data_out_isr(struct udc *dev, int ep_ix) | |||
2151 | } | 2151 | } |
2152 | /* HE event ? */ | 2152 | /* HE event ? */ |
2153 | if (tmp & AMD_BIT(UDC_EPSTS_HE)) { | 2153 | if (tmp & AMD_BIT(UDC_EPSTS_HE)) { |
2154 | dev_err(&dev->pdev->dev, "HE ep%dout occured\n", ep->num); | 2154 | dev_err(&dev->pdev->dev, "HE ep%dout occurred\n", ep->num); |
2155 | 2155 | ||
2156 | /* clear HE */ | 2156 | /* clear HE */ |
2157 | writel(tmp | AMD_BIT(UDC_EPSTS_HE), &ep->regs->sts); | 2157 | writel(tmp | AMD_BIT(UDC_EPSTS_HE), &ep->regs->sts); |
@@ -2354,7 +2354,7 @@ static irqreturn_t udc_data_in_isr(struct udc *dev, int ep_ix) | |||
2354 | /* BNA ? */ | 2354 | /* BNA ? */ |
2355 | if (epsts & AMD_BIT(UDC_EPSTS_BNA)) { | 2355 | if (epsts & AMD_BIT(UDC_EPSTS_BNA)) { |
2356 | dev_err(&dev->pdev->dev, | 2356 | dev_err(&dev->pdev->dev, |
2357 | "BNA ep%din occured - DESPTR = %08lx \n", | 2357 | "BNA ep%din occurred - DESPTR = %08lx \n", |
2358 | ep->num, | 2358 | ep->num, |
2359 | (unsigned long) readl(&ep->regs->desptr)); | 2359 | (unsigned long) readl(&ep->regs->desptr)); |
2360 | 2360 | ||
@@ -2367,7 +2367,7 @@ static irqreturn_t udc_data_in_isr(struct udc *dev, int ep_ix) | |||
2367 | /* HE event ? */ | 2367 | /* HE event ? */ |
2368 | if (epsts & AMD_BIT(UDC_EPSTS_HE)) { | 2368 | if (epsts & AMD_BIT(UDC_EPSTS_HE)) { |
2369 | dev_err(&dev->pdev->dev, | 2369 | dev_err(&dev->pdev->dev, |
2370 | "HE ep%dn occured - DESPTR = %08lx \n", | 2370 | "HE ep%dn occurred - DESPTR = %08lx \n", |
2371 | ep->num, (unsigned long) readl(&ep->regs->desptr)); | 2371 | ep->num, (unsigned long) readl(&ep->regs->desptr)); |
2372 | 2372 | ||
2373 | /* clear HE */ | 2373 | /* clear HE */ |
@@ -2384,7 +2384,7 @@ static irqreturn_t udc_data_in_isr(struct udc *dev, int ep_ix) | |||
2384 | req = list_entry(ep->queue.next, | 2384 | req = list_entry(ep->queue.next, |
2385 | struct udc_request, queue); | 2385 | struct udc_request, queue); |
2386 | /* | 2386 | /* |
2387 | * length bytes transfered | 2387 | * length bytes transferred |
2388 | * check dma done of last desc. in PPBDU mode | 2388 | * check dma done of last desc. in PPBDU mode |
2389 | */ | 2389 | */ |
2390 | if (use_dma_ppb_du) { | 2390 | if (use_dma_ppb_du) { |
@@ -2784,7 +2784,7 @@ static irqreturn_t udc_control_in_isr(struct udc *dev) | |||
2784 | /* write fifo */ | 2784 | /* write fifo */ |
2785 | udc_txfifo_write(ep, &req->req); | 2785 | udc_txfifo_write(ep, &req->req); |
2786 | 2786 | ||
2787 | /* lengh bytes transfered */ | 2787 | /* lengh bytes transferred */ |
2788 | len = req->req.length - req->req.actual; | 2788 | len = req->req.length - req->req.actual; |
2789 | if (len > ep->ep.maxpacket) | 2789 | if (len > ep->ep.maxpacket) |
2790 | len = ep->ep.maxpacket; | 2790 | len = ep->ep.maxpacket; |