alistair23-linux/drivers/usb/musb
Arnd Bergmann 62a6abdd42 usb: musb/ux500: remove duplicate check for dma_is_compatible
When dma_addr_t is 64-bit, we get a warning about an invalid cast
in the call to ux500_dma_is_compatible() from ux500_dma_channel_program():

drivers/usb/musb/ux500_dma.c: In function 'ux500_dma_channel_program':
drivers/usb/musb/ux500_dma.c:210:51: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
  if (!ux500_dma_is_compatible(channel, packet_sz, (void *)dma_addr, len))

The problem is that ux500_dma_is_compatible() is called from the
main musb driver on the virtual address, but here we pass in a
DMA address, so the types are fundamentally different but it works
because the function only checks the alignment of the buffer and
that is the same.

We could work around this by adding another cast, but I have checked
that the buffer we get passed here is already checked before it
gets mapped, so the second check seems completely unnecessary
and removing it must be the cleanest solution.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
2016-03-04 15:14:30 +02:00
..
am35x.c
blackfin.c
blackfin.h
cppi_dma.c
cppi_dma.h
da8xx.c
davinci.c
davinci.h
jz4740.c
Kconfig usb: add HAS_IOMEM dependency to USB_MUSB_HDRC 2016-02-14 17:09:56 -08:00
Makefile
musb_am335x.c
musb_core.c usb: musb: core: call init and shutdown for the usb phy 2015-12-22 12:05:44 -06:00
musb_core.h usb: musb: core: Fix handling of the phy notifications 2015-12-16 10:07:28 -06:00
musb_cppi41.c usb: musb: fix cppi channel teardown for isoch transfer 2015-09-21 14:42:36 -05:00
musb_debug.h
musb_debugfs.c
musb_dma.h
musb_dsps.c usb: common: of_usb_get_dr_mode to usb_get_dr_mode 2015-09-27 10:54:31 -05:00
musb_gadget.c usb: musb: gadget: remove redundant condition 2015-12-16 10:07:28 -06:00
musb_gadget.h
musb_gadget_ep0.c
musb_host.c usb: musb: fix DMA for host mode 2016-02-23 08:51:38 +02:00
musb_host.h
musb_io.h
musb_regs.h
musb_virthub.c
musbhsdma.c usb: musb: use %pad format string from dma_addr_t 2016-03-04 15:14:30 +02:00
musbhsdma.h
omap2430.c usb: musb: Fix unbalanced pm_runtime_enable 2015-12-16 10:07:28 -06:00
omap2430.h
sunxi.c musb: sunxi: Make sunxi musb glue work without MUSB_PIO_ONLY 2015-10-09 16:35:00 -05:00
tusb6010.c
tusb6010.h
tusb6010_omap.c usb: musb: use %pad format string from dma_addr_t 2016-03-04 15:14:30 +02:00
ux500.c usb: musb: ux500: Fix NULL pointer dereference at system PM 2016-02-03 20:03:40 +02:00
ux500_dma.c usb: musb/ux500: remove duplicate check for dma_is_compatible 2016-03-04 15:14:30 +02:00