diff options
author | Shashidhar Hiremath <shashidharh@vayavyalabs.com> | 2011-07-29 14:49:50 +0200 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2011-08-13 20:50:24 +0200 |
commit | 9b7bbe1085eb2b0f2d5d81f4116772cb2af497a4 (patch) | |
tree | fb11c59a83dfd6b910df4621961e150b866a776d | |
parent | mmc: cb710: fix possible pci_dev leak in cb710_pci_configure() (diff) | |
download | linux-9b7bbe1085eb2b0f2d5d81f4116772cb2af497a4.tar.xz linux-9b7bbe1085eb2b0f2d5d81f4116772cb2af497a4.zip |
mmc: dw_mmc: Fix mask in IDMAC_SET_BUFFER1_SIZE macro
The mask used inside this macro was assuming Buffer_Size1's [BS1's]
width to be 14 bits, it is actually 13 bits. Modify masks used in
IDMAC_SET_BUFFER1_SIZE such that they use only 13 bits instead of
current 14.
Signed-off-by: Shashidhar Hiremath <shashidharh@vayavyalabs.com>
Acked-by: Will Newton <will.newton@imgtec.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
-rw-r--r-- | drivers/mmc/host/dw_mmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c index 77f0b6b1681d..f13bb49dbc71 100644 --- a/drivers/mmc/host/dw_mmc.c +++ b/drivers/mmc/host/dw_mmc.c @@ -62,7 +62,7 @@ struct idmac_desc { u32 des1; /* Buffer sizes */ #define IDMAC_SET_BUFFER1_SIZE(d, s) \ - ((d)->des1 = ((d)->des1 & 0x03ffc000) | ((s) & 0x3fff)) + ((d)->des1 = ((d)->des1 & 0x03ffe000) | ((s) & 0x1fff)) u32 des2; /* buffer 1 physical address */ |