linux_dsm_epyc7002/drivers/mtd/onenand
Peter Ujfalusi 3621311695 mtd: onenand: omap2: Simplify the DMA setup for various paths
We have 4 functions containing almost identical DMA setup code. Create one
function which can set up the DMA for both read and write and use this in
place for the setup code in the driver.
The new function will use wait_for_completion_io_timeout() and it will
figure out the best data_type to be used for the transfer instead of
hardwiring 32 or 16 bit data.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Acked-by: Roger Quadros <rogerq@ti.com>
Tested-by: Tony Lindgren <tony@atomide.com>
Tested-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
2018-01-12 15:34:17 +01:00
..
generic.c mtd: onenand: generic: show parent device in sysfs 2015-10-13 12:56:37 -07:00
Kconfig mtd: onenand: Remove obsolete url from Kconfig help 2017-12-14 13:34:20 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
omap2.c mtd: onenand: omap2: Simplify the DMA setup for various paths 2018-01-12 15:34:17 +01:00
onenand_base.c mtd: silence some uninitialized variable warnings 2016-07-09 18:14:39 -07:00
onenand_bbt.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
samsung.c mtd: onenand: samsung: Remove a useless include 2017-12-18 17:37:52 +01:00
samsung.h mtd: onenand: Trivial cleanup in samsung.h 2014-01-11 12:00:25 -08:00