mmc: litex_mmc: Set mandatory idle clocks before CMD0
The litex_mmc driver assumes the card is already probed in the BIOS
and skip the phy initialization. This will cause the command fail
like the following when the old card is unplugged and then insert
a new card:
[ 62.923593] litex-mmc
f0004000.mmc: Command (cmd 8) error, status -110
[ 62.949717] litex-mmc
f0004000.mmc: Command (cmd 55) error, status -110
[ 62.976606] litex-mmc
f0004000.mmc: Command (cmd 55) error, status -110
[ 63.002516] litex-mmc
f0004000.mmc: Command (cmd 55) error, status -110
[ 63.028442] litex-mmc
f0004000.mmc: Command (cmd 55) error, status -110
Add required clock settings and initialization for the CMD 0, so it can
probe the new card.
Fixes: 92e099104729 ("mmc: Add driver for LiteX's LiteSDCard interface")
Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
Reviewed-by: Gabriel Somlo <gsomlo@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulfh@kernel.org>