Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-elphel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
linux-elphel
Commits
8fdd077f
Commit
8fdd077f
authored
Sep 26, 2019
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated comments
parent
c426463d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
4 deletions
+19
-4
nandchip-micron.c
src/drivers/mtd/nand/raw/nandchip-micron.c
+19
-4
No files found.
src/drivers/mtd/nand/raw/nandchip-micron.c
View file @
8fdd077f
...
...
@@ -69,9 +69,17 @@ static int mt29f_read_user_prot_reg(struct mtd_info *mtd, loff_t from,
ops
.
len
=
len
;
ops
.
datbuf
=
buf
;
ops
.
oobbuf
=
NULL
;
// old, triggers chip->ecc.read_page() which enables/disables ondie ECC at each call
/* OLD: will trigger chip->ecc.read_page
* depending on the implementation it might not work.
* E.g., the default hook function in nand_micron.c will set/reset
* ondie ecc feature for each nand_do_read call,
* see, micron_nand_read_page_on_die_ecc()
* So, setting the mode to raw is a safer bet.
*/
//ops.mode = 0;
// new, triggers chip->ecc.read_page_raw()
// NEW: will trigger chip->ecc.read_page_raw
ops
.
mode
=
MTD_OPS_RAW
;
/*
...
...
@@ -120,9 +128,16 @@ static int mt29f_write_user_prot_reg(struct mtd_info *mtd, loff_t to,
ops
.
datbuf
=
buf
;
ops
.
oobbuf
=
NULL
;
// old
/* OLD: will trigger chip->ecc.write_page
* depending on the implementation it might not work.
* E.g., the default hook function in nand_micron.c will set/reset
* ondie ecc feature for each nand_do_write call,
* see, micron_nand_write_page_on_die_ecc()
* So, setting the mode to raw is a safer bet.
*/
//ops.mode = 0;
// need raw mode
// NEW: will trigger chip->ecc.write_page_raw
ops
.
mode
=
MTD_OPS_RAW
;
/*
...
...
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