Skip to content

Commit

Permalink
[MTD] [NAND] Fix endianess bug in ndfc.c
Browse files Browse the repository at this point in the history
The writel() call accidentally clears all bits in the NDFC_CCR
register (endianess problem). Now __raw_writel() is used instead.

Tested on Bamboo with NAND on chip select 0 and chip select 1.

Signed-off-by: Stefan Roese <sr@denx.de>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
Stefan Roese authored and dwmw2 committed Nov 28, 2006
1 parent ddacff1 commit 4010db5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/nand/ndfc.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ static void ndfc_select_chip(struct mtd_info *mtd, int chip)
ccr |= NDFC_CCR_BS(chip + pchip->chip_offset);
} else
ccr |= NDFC_CCR_RESET_CE;
writel(ccr, ndfc->ndfcbase + NDFC_CCR);
__raw_writel(ccr, ndfc->ndfcbase + NDFC_CCR);
}

static void ndfc_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int ctrl)
Expand Down

0 comments on commit 4010db5

Please sign in to comment.