mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
mmc: dw_mmc: miscaculated the fifo-depth with wrong bit operation
In FIFOTH register, the RX_WMark field (bits[27:16]) defaults to FIFO_DEPTH - 1. When reading it, bits[26:16] were being used, so fix it to use the mask 0xfff instead of 0x7ff. Signed-off-by: Jaehoon Chung <[email protected]> Reviewed-by: James Hogan <[email protected]> Signed-off-by: Chris Ball <[email protected]>
This commit is contained in:
parent
069c9f1428
commit
8234e86960
1 changed files with 1 additions and 1 deletions
|
|
@ -1949,7 +1949,7 @@ static int dw_mci_probe(struct platform_device *pdev)
|
|||
* should put it in the platform data.
|
||||
*/
|
||||
fifo_size = mci_readl(host, FIFOTH);
|
||||
fifo_size = 1 + ((fifo_size >> 16) & 0x7ff);
|
||||
fifo_size = 1 + ((fifo_size >> 16) & 0xfff);
|
||||
} else {
|
||||
fifo_size = host->pdata->fifo_depth;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue