diff options
author | Graham Moore <grmoore@opensource.altera.com> | 2015-01-09 10:32:35 -0500 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-01-13 05:32:08 -0500 |
commit | 7c272ac5eefb329501aadbd9f21f86232c0f66a9 (patch) | |
tree | ed1d03596e60e14effee3690ef9021bce0b95daf /drivers/mtd/nand/denali.c | |
parent | a9b679bfd2820f59a0d914dad148f1fb09d3084a (diff) |
mtd: denali: fix incorrect bitmask error in denali_setup_dma
commit 3157d1ed2309 ("mtd: denali: remove unnecessary casts") introduced
an error by using a wrong bitmask.
A uint16_t cast was replaced with & 0xff, should be & 0xffff.
Signed-off-by: Graham Moore <grmoore@opensource.altera.com>
Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/nand/denali.c')
-rw-r--r-- | drivers/mtd/nand/denali.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c index b3b7ca1bafb8..5e397fba419b 100644 --- a/drivers/mtd/nand/denali.c +++ b/drivers/mtd/nand/denali.c | |||
@@ -1041,7 +1041,7 @@ static void denali_setup_dma(struct denali_nand_info *denali, int op) | |||
1041 | index_addr(denali, mode | ((addr >> 16) << 8), 0x2200); | 1041 | index_addr(denali, mode | ((addr >> 16) << 8), 0x2200); |
1042 | 1042 | ||
1043 | /* 3. set memory low address bits 23:8 */ | 1043 | /* 3. set memory low address bits 23:8 */ |
1044 | index_addr(denali, mode | ((addr & 0xff) << 8), 0x2300); | 1044 | index_addr(denali, mode | ((addr & 0xffff) << 8), 0x2300); |
1045 | 1045 | ||
1046 | /* 4. interrupt when complete, burst len = 64 bytes */ | 1046 | /* 4. interrupt when complete, burst len = 64 bytes */ |
1047 | index_addr(denali, mode | 0x14000, 0x2400); | 1047 | index_addr(denali, mode | 0x14000, 0x2400); |