Peter Crosthwaite 656f416c65 sd/sdhci.c: Only reset data_count on new commands
The data_count variable was being reset on every transfer, including
DMA transfer resumptions. This is incorrect, it should only be set
on a new command.

Manifests as a bug when using ADMA and there is a timer delay between
ADMA frames where the fifo is left in a non empty state.

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Reviewed-by: Igor Mitsyanko <i.mitsyanko@gmail.com>
Message-id: 15a98609cc32315211b0963091a8efd67522e160.1369370934.git.peter.crosthwaite@xilinx.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2013-06-03 17:17:44 +01:00
..
2013-05-18 16:35:12 +04:00
2013-06-01 14:25:39 +04:00
2013-05-01 13:06:07 +02:00
2013-04-19 11:36:33 +02:00
2013-04-29 08:27:50 -05:00
2013-05-26 11:37:58 +00:00
2013-04-24 11:50:18 -05:00
2013-04-20 17:54:52 +00:00
2013-04-19 11:36:33 +02:00
2013-05-18 16:35:12 +04:00
2013-05-18 16:35:12 +04:00
2013-05-01 20:55:21 +04:00
2013-06-03 11:37:44 +02:00
2013-05-18 16:35:12 +04:00
2013-05-24 18:42:19 +02:00
2013-05-26 11:37:58 +00:00
2013-04-27 10:35:30 +00:00
2013-06-01 14:25:38 +04:00
2013-06-03 11:38:03 +02:00
2013-04-29 08:27:50 -05:00