]> git.kernelconcepts.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Feb 2014 19:53:39 +0000 (11:53 -0800)
commita2a720e15f59be60c7ae1c58b5b4ac1003dd5078
treecdc8df4e60b7c896fcfbfd664c088edb14a8c1aa
parentf33b215549938f89aebf862b942366d2aa41c191
VME: Stop using memcpy_[to|from]io() due to unwanted behaviour

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>
drivers/vme/bridges/vme_ca91cx42.c
drivers/vme/bridges/vme_tsi148.c