[PATCH][0/4] usb: sm501 ohci controller patches | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
usb: sm501 ohci controller patches [1/4] usb: dma bounce buffer support using HCD_BOUNCE flag [2/4] usb: only set URB_NO_TRANSFER_DMA_MAP when dma is enabled [3/4] usb: ohci-sm501 driver [4/4] usb: use single ohci_start() The sm501 usb host controller is a regular ohci implementation but with the exception that it can only do dma to a certain area of memory. This memory is sm501 specific and the mfd driver for sm501 currently divides this memory between the framebuffer and the usb host controller. To support the sm501 usb host controller we need to allocate all usb data from this sm501 memory. The function dma_declare_coherent_memory() helps us with that - all dma_alloc_coherent() calls will end up allocating such memory. The USB core does however sometimes seem to allocate data using kmalloc, so to fully support that behaviour we need to add bounce buffer support. These bounce buffers can be requested using the flag HCD_BOUNCE. It is of course possible to implement these bounce buffers using dma map functions such as dma_map_single(), but such a solution will be architecture specific. This seems to be more of a chip specific problem to me, so I prefer to have bounce buffer support in the usb core. So the two main patches provide HCD_BOUNCE support and the ohci-sm501 driver, and the two other ones remove duplicated code and fix a dma flag issue. Signed-off-by: Magnus Damm <damm@xxxxxxxxxx> --- drivers/usb/core/buffer.c | 7 drivers/usb/core/hcd.c | 115 ++++++++++++++ drivers/usb/core/hcd.h | 1 drivers/usb/core/message.c | 3 drivers/usb/host/ohci-au1xxx.c | 24 --- drivers/usb/host/ohci-ep93xx.c | 19 -- drivers/usb/host/ohci-hcd.c | 23 ++ drivers/usb/host/ohci-lh7a404.c | 22 -- drivers/usb/host/ohci-pnx4008.c | 18 -- drivers/usb/host/ohci-pnx8550.c | 24 --- drivers/usb/host/ohci-ppc-of.c | 21 -- drivers/usb/host/ohci-ppc-soc.c | 20 -- drivers/usb/host/ohci-s3c2410.c | 21 -- drivers/usb/host/ohci-sa1111.c | 21 -- drivers/usb/host/ohci-sm501.c | 301 ++++++++++++++++++++++++++++++++++++--- 15 files changed, 433 insertions(+), 207 deletions(-) ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ linux-usb-devel@xxxxxxxxxxxxxxxxxxxxx To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
[Home] [Video for Linux] [Photo] [Yosemite Forum] [Yosemite Photos] [Video Projectors] [PDAs] [Hacking TiVo] [Linux Kernel] [Linux SCSI] [XFree86] [Devices] [Big List of Linux Books] [Free Dating]
![]() |