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
b919c96a
Commit
b919c96a
authored
Mar 11, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
2a0c0e8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
nand_base.c
src/drivers/mtd/nand/nand_base.c
+3
-3
No files found.
src/drivers/mtd/nand/nand_base.c
View file @
b919c96a
...
...
@@ -3731,14 +3731,12 @@ ident_done:
if
(
nand_manuf_ids
[
maf_idx
].
id
==
*
maf_id
)
break
;
}
if
(
chip
->
options
&
NAND_BUSWIDTH_AUTO
)
{
WARN_ON
(
chip
->
options
&
NAND_BUSWIDTH_16
);
chip
->
options
|=
busw
;
nand_set_defaults
(
chip
,
busw
);
}
else
if
(
busw
!=
(
chip
->
options
&
NAND_BUSWIDTH_16
))
{
if
(
*
maf_id
==
NAND_MFR_MICRON
)
nandchip_micron_init
(
mtd
,
*
dev_id
);
/*
* Check, if buswidth is correct. Hardware drivers should set
* chip correct!
...
...
@@ -3775,6 +3773,8 @@ ident_done:
if
(
mtd
->
writesize
>
512
&&
chip
->
cmdfunc
==
nand_command
)
chip
->
cmdfunc
=
nand_command_lp
;
if
(
*
maf_id
==
NAND_MFR_MICRON
)
nandchip_micron_init
(
mtd
,
*
dev_id
);
pr_info
(
"device found, Manufacturer ID: 0x%02x, Chip ID: 0x%02x
\n
"
,
*
maf_id
,
*
dev_id
);
...
...
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