Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
470b0a90
Commit
470b0a90
authored
Oct 23, 2006
by
David Woodhouse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MTD] NAND: Disable ECC checking on CAFÉ since it's broken for now
Signed-off-by:
David Woodhouse
<
dwmw2@infradead.org
>
parent
fbad5696
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
drivers/mtd/nand/cafe.c
drivers/mtd/nand/cafe.c
+5
-2
No files found.
drivers/mtd/nand/cafe.c
View file @
470b0a90
...
...
@@ -67,6 +67,9 @@ module_param(skipbbt, int, 0644);
static
int
debug
=
0
;
module_param
(
debug
,
int
,
0644
);
static
int
checkecc
=
0
;
module_param
(
checkecc
,
int
,
0644
);
/* Hrm. Why isn't this already conditional on something in the struct device? */
#define cafe_dev_dbg(dev, args...) do { if (debug) dev_dbg(dev, ##args); } while(0)
...
...
@@ -214,7 +217,7 @@ static void cafe_nand_cmdfunc(struct mtd_info *mtd, unsigned command,
writel
(
cafe
->
ctl2
|
0x100
|
NAND_CMD_READSTART
,
cafe
->
mmio
+
CAFE_NAND_CTRL2
);
do_command:
#if
1
#if
0
/* http://dev.laptop.org/ticket/200
ECC on read only works if we read precisely 0x80e bytes */
if (cafe->datalen == 2112)
...
...
@@ -382,7 +385,7 @@ static int cafe_nand_read_page(struct mtd_info *mtd, struct nand_chip *chip,
chip
->
read_buf
(
mtd
,
buf
,
mtd
->
writesize
);
chip
->
read_buf
(
mtd
,
chip
->
oob_poi
,
mtd
->
oobsize
);
if
(
readl
(
cafe
->
mmio
+
CAFE_NAND_ECC_RESULT
)
&
(
1
<<
18
))
{
if
(
checkecc
&&
readl
(
cafe
->
mmio
+
CAFE_NAND_ECC_RESULT
)
&
(
1
<<
18
))
{
unsigned
short
syn
[
8
];
int
i
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment