OSDN Git Service

ARM: 6237/1: mmci: use sg_miter API to fix multi-page sg handling
authorRabin Vincent <rabin.vincent@stericsson.com>
Wed, 21 Jul 2010 11:44:58 +0000 (12:44 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 27 Jul 2010 09:48:44 +0000 (10:48 +0100)
commit4ce1d6cbf07271ab8f7cc47c3e27edeac08b58a7
treeff2c3397828cda8d8455893f336e497bcdd6cb44
parent2c39c9e149f45ec15a6985cb06ec8f6d904bb35e
ARM: 6237/1: mmci: use sg_miter API to fix multi-page sg handling

The mmci driver's SG list iteration logic assumes that each SG entry
spans only one page, and only maps and flushes one page of the sg.  This
is not a valid assumption.  Fix it by converting the driver to the
sg_miter API, which correctly handles sgs which span multiple pages.

Acked-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/mmc/host/mmci.c
drivers/mmc/host/mmci.h