Skip to content

Commit e530bb8

Browse files
tmlindFelipe Balbi
authored andcommitted
usb: musb: Remove ifdefs for musb_host_rx in musb_host.c part4
Remove ifdefs for musb_host_rx to get closer to building in all the DMA drivers. Signed-off-by: Tony Lindgren <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
1 parent cff84bd commit e530bb8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/usb/musb/musb_host.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1857,9 +1857,8 @@ void musb_host_rx(struct musb *musb, u8 epnum)
18571857
}
18581858

18591859
/* we are expecting IN packets */
1860-
#if defined(CONFIG_USB_INVENTRA_DMA) || defined(CONFIG_USB_UX500_DMA) || \
1861-
defined(CONFIG_USB_TI_CPPI41_DMA)
1862-
if (dma) {
1860+
if ((musb_dma_inventra(musb) || musb_dma_ux500(musb) ||
1861+
musb_dma_cppi41(musb)) && dma) {
18631862
struct dma_controller *c;
18641863
u16 rx_count;
18651864
int ret, length;
@@ -1976,7 +1975,6 @@ void musb_host_rx(struct musb *musb, u8 epnum)
19761975
musb_writew(epio, MUSB_RXCSR, val);
19771976
}
19781977
}
1979-
#endif /* Mentor DMA */
19801978

19811979
if (!dma) {
19821980
unsigned int received_len;

0 commit comments

Comments
 (0)