regmap: Add asynchronous I/O support
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 27 Jan 2013 14:07:38 +0000 (22:07 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 29 Jan 2013 04:14:52 +0000 (12:14 +0800)
commit0d509f2b112b21411712f0bf789b372987967e49
tree138bac0e613916bbf725f0ee1939080dfc4dbedb
parent07c320dc31d757b8cb59c64dab320215c929bf02
regmap: Add asynchronous I/O support

Some use cases like firmware download can transfer a lot of data in quick
succession. With high speed buses these use cases can benefit from having
multiple transfers scheduled at once since this allows the bus to minimise
the delay between transfers.

Support this by adding regmap_raw_write_async(), allowing raw transfers to
be scheduled, and regmap_async_complete() to wait for them to finish.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/base/regmap/internal.h
drivers/base/regmap/regmap.c
include/linux/regmap.h