]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit296b00130812b9fbec0ef7b76c147253b7207eda
tree026a53b486adef409cf544b2f190ab2d6ed22120
parentad207da8b4dbef0a4f11317c5e768f98c95e1184
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