]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/most/most_usb.c
staging: most: make interface drivers allocate coherent memory
authorChristian Gromm <christian.gromm@microchip.com>
Tue, 8 May 2018 09:45:03 +0000 (11:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 May 2018 11:41:50 +0000 (13:41 +0200)
commit3598cec585f8d54ece41edeb123ce1c97a4516d3
tree026a53b486adef409cf544b2f190ab2d6ed22120
parent7e6e228873945ccb46895f1f5e29187814ea1d8d
staging: most: make interface drivers allocate coherent memory

On arm64/aarch64 architectures the allocation of coherent memory needs a
device that has the dma_ops properly set. That's why the core module of
the MOST driver is no longer able to allocate this type or memory. This
patch moves the allocation process down to the interface drivers where
the proper devices exist (e.g. platform device or USB system software).

Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/core.c
drivers/staging/most/core.h
drivers/staging/most/dim2/dim2.c
drivers/staging/most/usb/usb.c