]> git.baikalelectronics.ru Git - uboot.git/commit
mmc: Unirqify bcm2835_sdhost and fix writes
authorAlexander Graf <agraf@suse.de>
Wed, 23 May 2018 20:24:51 +0000 (22:24 +0200)
committerAlexander Graf <agraf@suse.de>
Wed, 23 May 2018 20:31:42 +0000 (22:31 +0200)
commiteb10a12b82118a81c1edd2e2df3b5a5a9741b41c
tree0be77836dd56f4465864a851796f4c521d1ef356
parent123379edeb55b4404c4b5152ed349a641ea3018b
mmc: Unirqify bcm2835_sdhost and fix writes

The bcm2835 sdhost driver has a problem with "write multiple" commands.
It seems to boil down to the fact that the controller dislikes its FIFO
to get drained at the end of a block when a write multiple blocks command
is in flight.

The easy fix is to simply get rid of all the IRQ driven logic and make
the driver push as much data into the FIFO as it can. That way we never
drain and we never run into the problem.

Reported-by: Jan Leonhardt <jan@cyberdesigner.net>
Signed-off-by: Alexander Graf <agraf@suse.de>
drivers/mmc/bcm2835_sdhost.c