mmc: rtsx: Configure SD_CFG2 register in sd_rw_multi
authorWei WANG <wei_wang@realsil.com.cn>
Tue, 20 Nov 2012 03:24:36 +0000 (11:24 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 21 Nov 2012 15:07:54 +0000 (16:07 +0100)
commit38d324df75e6642ea6f71bc67765cc5b8c4f751b
tree98b474592a038e238052780f34f41af30defdff6
parent759f2598ef3876637e40d99a4ceb7a3d83a4d8d3
mmc: rtsx: Configure SD_CFG2 register in sd_rw_multi

For Realtek card reader, internal regsiter SD_CFG2 should be configured
before transferring data.
The default value of SD_CFG2 is proper for writing data. But for reading
sequence, the timing is not good enough. So in some extreme circumstance,
card reader may sample the response data from the card as good even if
the data is wrong. And this will cause the bad consequence.
In the prior version, the value of this register has been calculated,
but forgotten to write back to the internal register.

Signed-off-by: Wei WANG <wei_wang@realsil.com.cn>
Acked-by: Chris Ball <cjb@laptop.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mmc/host/rtsx_pci_sdmmc.c