]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
VME: Stop using memcpy_[to|from]io() due to unwanted behaviour
authorMartyn Welch <martyn.welch@ge.com>
Thu, 6 Feb 2014 13:35:36 +0000 (13:35 +0000)
committerJiri Slaby <jslaby@suse.cz>
Wed, 19 Nov 2014 22:44:31 +0000 (23:44 +0100)
commit181bbf73ff2088b53b1c9978f372225689c8b6e2
tree80a0dc412eb99540a0fabf2c4ef51f58cad48a15
parentff286b4678fd95286afef33e5b740a2e0d5f9983
VME: Stop using memcpy_[to|from]io() due to unwanted behaviour

commit a2a720e15f59be60c7ae1c58b5b4ac1003dd5078 upstream.

The ca91cx42 and tsi148 VME bridges use the width of reads and writes on the
PCI bus in part to control the width of the cycles on the VME bus. It is
important that we can control the width of cycles on the VME bus as some VME
hardware requires cycles of a specific width. The memcpy_toio() and
memcpy_fromio() functions do not provide sufficient control, so instead loop
using ioread functions.

Reported-by: Michael Kenney <mfkenney@gmail.com>
Signed-off-by: Martyn Welch <martyn.welch@ge.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/vme/bridges/vme_ca91cx42.c
drivers/vme/bridges/vme_tsi148.c