ieee1394: sbp2: optimize DMA direction of s/g tables
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Sun, 4 Feb 2007 19:54:57 +0000 (20:54 +0100)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Sun, 29 Apr 2007 22:00:27 +0000 (00:00 +0200)
commit2446a79f4f0a5e88e5d8316dac407d66ac10f70d
tree9adb9c7816ef80c39b33d141efefc35803f17717
parent0555659d63c285ceb7ead3115532e1b71b0f27a7
ieee1394: sbp2: optimize DMA direction of s/g tables

Unlike the name suggests, "cmd->scatter_gather_element" holds only the
s/g table, not the actual s/g elements.  Since the table is only read
but never written by the device, DMA_BIDIRECTIONAL can be replaced by
DMA_TO_DEVICE which may be cheaper on some architectures.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/ieee1394/sbp2.c