summaryrefslogtreecommitdiffstats
path: root/drivers/spi/tle62x0.c
diff options
context:
space:
mode:
authorSekhar Nori <nsekhar@ti.com>2010-10-01 14:51:40 +0530
committerSekhar Nori <nsekhar@ti.com>2010-11-18 18:38:34 +0530
commit903ca25b219e28e3513ca4c2ff379fcdf19e057e (patch)
treec1b4ef45ca1925ea056974f4f78b6606014b6b4a /drivers/spi/tle62x0.c
parenta4f4497b86a689aa8c827d4ebe0d00c4eba66f76 (diff)
downloadblackbird-obmc-linux-903ca25b219e28e3513ca4c2ff379fcdf19e057e.tar.gz
blackbird-obmc-linux-903ca25b219e28e3513ca4c2ff379fcdf19e057e.zip
spi: davinci: do not allocate DMA channels during SPI device setup
Do not allocate (and de-allocate) SPI DMA channels during setup (and cleanup) for each SPI device. Instead, allocate the DMA channels once duing probe and use them for the life time of the driver. This makes sense since there are dedicated DMA channels meant for SPI use. This also helps remove the unnecessary DMA "sync_dev" variables being used to store DMA channel information. Also, the "use_dma" platform variable is now eliminated since it is possible to check if the platform supports DMA or not based upon whether DMA resources can be found or not. Tested-By: Michael Williamson <michael.williamson@criticallink.com> Tested-By: Brian Niebuhr <bniebuhr@efjohnson.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Diffstat (limited to 'drivers/spi/tle62x0.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud