[PATCH] sparc32: add offset in pci_map_sg()

Add sg->offset to sg->dvma_address in pci_map_sg() on sparc32. Without the
offset, transfers to buffers that do not begin on a page boundary will not
work as expected.

Signed-off-by: Jan Andersson <jan.andersson@ieee.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: William Lee Irwin III <wli@holomorphy.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Jan Andersson and committed by Linus Torvalds dbc1333a 8018c27b

+2 -1
+2 -1
arch/sparc/kernel/ioport.c
··· 726 726 /* IIep is write-through, not flushing. */ 727 727 for (n = 0; n < nents; n++) { 728 728 BUG_ON(page_address(sg->page) == NULL); 729 - sg->dvma_address = virt_to_phys(page_address(sg->page)); 729 + sg->dvma_address = 730 + virt_to_phys(page_address(sg->page)) + sg->offset; 730 731 sg->dvma_length = sg->length; 731 732 sg++; 732 733 }