]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ieee1394: sbp2: stricter dma_sync
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Sat, 9 Aug 2008 18:13:00 +0000 (20:13 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Wed, 15 Oct 2008 20:21:07 +0000 (22:21 +0200)
commit0a77b17c855c4ec1c87ed80e0f280095a4ee1f4f
treee5665d7f5be5b0f7200bdcb9582936ae37490727
parent68e2aa793ed55b0c1461b4ab92554bb5ad152724
ieee1394: sbp2: stricter dma_sync

Two dma_sync_single_for_cpu() were called in the wrong place.
Luckily they were merely for DMA_TO_DEVICE, hence nobody noticed.

Also reorder the matching dma_sync_single_for_device() a little bit
so that they reside in the same functions as their counterparts.
This also avoids syncing the s/g table for requests which don't use it.

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