aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2015-05-01 15:29:34 -0400
committerFelipe Balbi <balbi@ti.com>2015-05-07 14:36:17 -0400
commit557d543e3f18acf4aa3b9e1860ef38e106696673 (patch)
treea2850a3a766310763c4ccbf9ea95c6d4d8bc1c7b /drivers/usb
parent069a3fd19aa4108ee24dd8a3c3e4ef393b9f99ef (diff)
usb: musb: Remove ifdefs for musb_host_rx in musb_host.c part2
Remove ifdefs for musb_host_rx to get closer to building in all the DMA drivers. Signed-off-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/musb/musb_host.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c
index bf725f0bbd98..6f2356377962 100644
--- a/drivers/usb/musb/musb_host.c
+++ b/drivers/usb/musb/musb_host.c
@@ -1734,9 +1734,8 @@ void musb_host_rx(struct musb *musb, u8 epnum)
1734 */ 1734 */
1735 1735
1736 /* FIXME this is _way_ too much in-line logic for Mentor DMA */ 1736 /* FIXME this is _way_ too much in-line logic for Mentor DMA */
1737 1737 if (!musb_dma_inventra(musb) && !musb_dma_ux500(musb) &&
1738#if !defined(CONFIG_USB_INVENTRA_DMA) && !defined(CONFIG_USB_UX500_DMA) 1738 (rx_csr & MUSB_RXCSR_H_REQPKT)) {
1739 if (rx_csr & MUSB_RXCSR_H_REQPKT) {
1740 /* REVISIT this happened for a while on some short reads... 1739 /* REVISIT this happened for a while on some short reads...
1741 * the cleanup still needs investigation... looks bad... 1740 * the cleanup still needs investigation... looks bad...
1742 * and also duplicates dma cleanup code above ... plus, 1741 * and also duplicates dma cleanup code above ... plus,
@@ -1757,7 +1756,7 @@ void musb_host_rx(struct musb *musb, u8 epnum)
1757 musb_writew(epio, MUSB_RXCSR, 1756 musb_writew(epio, MUSB_RXCSR,
1758 MUSB_RXCSR_H_WZC_BITS | rx_csr); 1757 MUSB_RXCSR_H_WZC_BITS | rx_csr);
1759 } 1758 }
1760#endif 1759
1761 if (dma && (rx_csr & MUSB_RXCSR_DMAENAB)) { 1760 if (dma && (rx_csr & MUSB_RXCSR_DMAENAB)) {
1762 xfer_len = dma->actual_len; 1761 xfer_len = dma->actual_len;
1763 1762