Commit 557d543e authored by Tony Lindgren's avatar Tony Lindgren Committed by Felipe Balbi

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: default avatarTony Lindgren <tony@atomide.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 069a3fd1
...@@ -1734,9 +1734,8 @@ void musb_host_rx(struct musb *musb, u8 epnum) ...@@ -1734,9 +1734,8 @@ void musb_host_rx(struct musb *musb, u8 epnum)
*/ */
/* FIXME this is _way_ too much in-line logic for Mentor DMA */ /* FIXME this is _way_ too much in-line logic for Mentor DMA */
if (!musb_dma_inventra(musb) && !musb_dma_ux500(musb) &&
#if !defined(CONFIG_USB_INVENTRA_DMA) && !defined(CONFIG_USB_UX500_DMA) (rx_csr & MUSB_RXCSR_H_REQPKT)) {
if (rx_csr & MUSB_RXCSR_H_REQPKT) {
/* REVISIT this happened for a while on some short reads... /* REVISIT this happened for a while on some short reads...
* the cleanup still needs investigation... looks bad... * the cleanup still needs investigation... looks bad...
* and also duplicates dma cleanup code above ... plus, * and also duplicates dma cleanup code above ... plus,
...@@ -1757,7 +1756,7 @@ void musb_host_rx(struct musb *musb, u8 epnum) ...@@ -1757,7 +1756,7 @@ void musb_host_rx(struct musb *musb, u8 epnum)
musb_writew(epio, MUSB_RXCSR, musb_writew(epio, MUSB_RXCSR,
MUSB_RXCSR_H_WZC_BITS | rx_csr); MUSB_RXCSR_H_WZC_BITS | rx_csr);
} }
#endif
if (dma && (rx_csr & MUSB_RXCSR_DMAENAB)) { if (dma && (rx_csr & MUSB_RXCSR_DMAENAB)) {
xfer_len = dma->actual_len; xfer_len = dma->actual_len;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment