sh: maple: Support block reads and writes.
authorAdrian McMenamin <adrian@mcmen.demon.co.uk>
Fri, 27 Feb 2009 07:07:32 +0000 (16:07 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 27 Feb 2009 07:07:32 +0000 (16:07 +0900)
commitb233b28eac0cc37d07c2d007ea08c86c778c5af4
tree636f91b57d675d1886d8b3ab4aca8d8488d65d90
parent41480ae7a383dcffa497decdd97b3cb2caaa18ec
sh: maple: Support block reads and writes.

This patch updates the maple bus to support asynchronous block reads
and writes as well as generally improving the quality of the code and
supporting concurrency (all needed to support the Dreamcast visual
memory unit - a driver will also be posted for that).

Changes in the bus driver necessitate some changes in the two maple bus
input drivers that are currently in mainline.

As well as supporting block reads and writes this code clean up removes
some poor handling of locks, uses an atomic status variable to serialise
access to devices and more robusly handles the general performance
problems of the bus.

Signed-off-by: Adrian McMenamin <adrian@mcmen.demon.co.uk>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/input/joystick/maplecontrol.c
drivers/input/keyboard/maple_keyb.c
drivers/sh/maple/maple.c
include/linux/maple.h