Skip to content

Commit

Permalink
mmc: dw_mmc: Fix mask in IDMAC_SET_BUFFER1_SIZE macro
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shashidhar Hiremath authored and cjb committed Aug 13, 2011
1 parent 1ccd4b7 commit 9b7bbe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/host/dw_mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down

0 comments on commit 9b7bbe1

Please sign in to comment.