]> rtime.felk.cvut.cz Git - linux-imx.git/commit
firewire: ohci: remove superfluous posted write flushes
authorClemens Ladisch <clemens@ladisch.de>
Mon, 16 May 2011 06:10:10 +0000 (08:10 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Thu, 2 Jun 2011 11:58:33 +0000 (13:58 +0200)
commitdd6254e5c0efe01ad255188898cb3dadf98cb56d
tree3417d788024a41ad5f28689fc1ef5095ae2a4b7f
parentbf337b15c28ae25904a73e7e2e0de2f9c4f0e9f8
firewire: ohci: remove superfluous posted write flushes

The call to flush_writes() in context_stop() is superfluous because
another register read is done immediately afterwards.

The call to flush_writes() in ar_context_run() does not need to be done
individually for each AR context, so move it to ohci_enable().  This
also makes ohci_enable() clearer because it no longer depends on a side
effect of ar_context_run() to flush its own register writes.

Finally, the setting of a context's wake bit does not need to be flushed
because neither the driver logic nor the API require the CPU to wait for
this action.  This removes the last MMIO reads from the packet queueing
code paths.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/ohci.c