Commit c4aeae3e authored by Tony Lindgren's avatar Tony Lindgren

musb_hdrc: Trivial compile fixes for gadget after updating kernel

Host fixes to follow.
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent dff99b71
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
#include <linux/clk.h> #include <linux/clk.h>
#include <linux/device.h> #include <linux/device.h>
#include <linux/usb/ch9.h> #include <linux/usb/ch9.h>
#include <linux/usb_gadget.h> #include <linux/usb/gadget.h>
#include <linux/usb.h> #include <linux/usb.h>
#include <linux/usb/otg.h> #include <linux/usb/otg.h>
#include <linux/usb/musb.h> #include <linux/usb/musb.h>
......
...@@ -172,12 +172,12 @@ static void tusb_omap_dma_cb(int lch, u16 ch_status, void *data) ...@@ -172,12 +172,12 @@ static void tusb_omap_dma_cb(int lch, u16 ch_status, void *data)
DBG(3, "Using PIO for remaining %lu bytes\n", pio); DBG(3, "Using PIO for remaining %lu bytes\n", pio);
buf = phys_to_virt((u32)chdat->dma_addr) + chdat->transfer_len; buf = phys_to_virt((u32)chdat->dma_addr) + chdat->transfer_len;
if (chdat->tx) { if (chdat->tx) {
consistent_sync(phys_to_virt((u32)chdat->dma_addr), dma_cache_maint(phys_to_virt((u32)chdat->dma_addr),
chdat->transfer_len, DMA_TO_DEVICE); chdat->transfer_len, DMA_TO_DEVICE);
musb_write_fifo(hw_ep, pio, buf); musb_write_fifo(hw_ep, pio, buf);
} else { } else {
musb_read_fifo(hw_ep, pio, buf); musb_read_fifo(hw_ep, pio, buf);
consistent_sync(phys_to_virt((u32)chdat->dma_addr), dma_cache_maint(phys_to_virt((u32)chdat->dma_addr),
chdat->transfer_len, DMA_FROM_DEVICE); chdat->transfer_len, DMA_FROM_DEVICE);
} }
channel->actual_len += pio; channel->actual_len += pio;
...@@ -303,9 +303,9 @@ static int tusb_omap_dma_program(struct dma_channel *channel, u16 packet_sz, ...@@ -303,9 +303,9 @@ static int tusb_omap_dma_program(struct dma_channel *channel, u16 packet_sz,
/* Since we're recycling dma areas, we need to clean or invalidate */ /* Since we're recycling dma areas, we need to clean or invalidate */
if (chdat->tx) { if (chdat->tx) {
consistent_sync(phys_to_virt(dma_addr), len, DMA_TO_DEVICE); dma_cache_maint(phys_to_virt(dma_addr), len, DMA_TO_DEVICE);
} else } else
consistent_sync(phys_to_virt(dma_addr), len, DMA_FROM_DEVICE); dma_cache_maint(phys_to_virt(dma_addr), len, DMA_FROM_DEVICE);
/* Use 16-bit transfer if dma_addr is not 32-bit aligned */ /* Use 16-bit transfer if dma_addr is not 32-bit aligned */
if ((dma_addr & 0x3) == 0) { if ((dma_addr & 0x3) == 0) {
......
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