mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
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>
This commit is contained in:
parent
1ccd4b7bfd
commit
9b7bbe1085
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ struct idmac_desc {
|
||||||
|
|
||||||
u32 des1; /* Buffer sizes */
|
u32 des1; /* Buffer sizes */
|
||||||
#define IDMAC_SET_BUFFER1_SIZE(d, s) \
|
#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 */
|
u32 des2; /* buffer 1 physical address */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue