]> git.baikalelectronics.ru Git - kernel.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)
commit9811eb38197f699168e1838a8dda8183494e56e5
tree3417d788024a41ad5f28689fc1ef5095ae2a4b7f
parent2f93ccaca44eb33dfa6e9ae9106312f9b7e137f9
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