mmc: at91_mci: update bytes_xfered value once xfer done
authorNicolas Ferre <nicolas.ferre@atmel.com>
Fri, 30 May 2008 12:18:57 +0000 (14:18 +0200)
committerPierre Ossman <drzeus@drzeus.cx>
Tue, 15 Jul 2008 12:14:42 +0000 (14:14 +0200)
commit4ac24a8722b97d5b4cfc48a4fbd0b2489e358d4d
treef9532aa124b8ab250bf3bec4648ed42621389c3c
parentc5a89c6c0805959f813e8342d6f4040860f6d7db
mmc: at91_mci: update bytes_xfered value once xfer done

Modify bytes_xfered value after a write.

That will report, as accurately as possible, the amount of
sectors that are effectively written.

This update introduces the check of the busy signal given by
the card.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
drivers/mmc/host/at91_mci.c