Re: [PATCH] sh: maple: Update the maple bus driver to support block reads and writes
From: Paul Mundt <hidden>
Date: 2009-02-27 07:10:38
Also in:
linux-sh, lkml
From: Paul Mundt <hidden>
Date: 2009-02-27 07:10:38
Also in:
linux-sh, lkml
On Sat, Feb 14, 2009 at 08:16:45PM +0000, Adrian McMenamin wrote:
On Sat, 2009-02-14 at 20:06 +0000, Adrian McMenamin wrote:quoted
Greg, 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). I have posted versions of this before but am here following the patch grouping suggested and have also tested this code and unlike earlier versions it shows no signs of suffering from race conditions - so I hope you will be happy to queue it for inclusion. Changes in the bus driver necessitate some changes in the two maple bus input drivers that are currently in mainline. (Maple is SEGA's proprietary serial bus for the Dreamcast. It is capable of comm speeds of up to 2Mbs.) 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.Apologies, some of the VMU patch slipped into that. Here is a completely clean version. Signed-off-by: Adrian McMenamin <redacted>
Applied, thanks.