Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
20ba89a3
Commit
20ba89a3
authored
Dec 16, 2005
by
Kyungmin Park
Committed by
Linus Torvalds
Dec 18, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] mtd onenand driver: fix unlock problem in DDP
parent
37b1cc39
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
drivers/mtd/onenand/onenand_base.c
drivers/mtd/onenand/onenand_base.c
+6
-4
No files found.
drivers/mtd/onenand/onenand_base.c
View file @
20ba89a3
...
@@ -1296,6 +1296,12 @@ static int onenand_unlock(struct mtd_info *mtd, loff_t ofs, size_t len)
...
@@ -1296,6 +1296,12 @@ static int onenand_unlock(struct mtd_info *mtd, loff_t ofs, size_t len)
/* Block lock scheme */
/* Block lock scheme */
for
(
block
=
start
;
block
<
end
;
block
++
)
{
for
(
block
=
start
;
block
<
end
;
block
++
)
{
/* Set block address */
value
=
onenand_block_address
(
this
,
block
);
this
->
write_word
(
value
,
this
->
base
+
ONENAND_REG_START_ADDRESS1
);
/* Select DataRAM for DDP */
value
=
onenand_bufferram_address
(
this
,
block
);
this
->
write_word
(
value
,
this
->
base
+
ONENAND_REG_START_ADDRESS2
);
/* Set start block address */
/* Set start block address */
this
->
write_word
(
block
,
this
->
base
+
ONENAND_REG_START_BLOCK_ADDRESS
);
this
->
write_word
(
block
,
this
->
base
+
ONENAND_REG_START_BLOCK_ADDRESS
);
/* Write unlock command */
/* Write unlock command */
...
@@ -1309,10 +1315,6 @@ static int onenand_unlock(struct mtd_info *mtd, loff_t ofs, size_t len)
...
@@ -1309,10 +1315,6 @@ static int onenand_unlock(struct mtd_info *mtd, loff_t ofs, size_t len)
&
ONENAND_CTRL_ONGO
)
&
ONENAND_CTRL_ONGO
)
continue
;
continue
;
/* Set block address for read block status */
value
=
onenand_block_address
(
this
,
block
);
this
->
write_word
(
value
,
this
->
base
+
ONENAND_REG_START_ADDRESS1
);
/* Check lock status */
/* Check lock status */
status
=
this
->
read_word
(
this
->
base
+
ONENAND_REG_WP_STATUS
);
status
=
this
->
read_word
(
this
->
base
+
ONENAND_REG_WP_STATUS
);
if
(
!
(
status
&
ONENAND_WP_US
))
if
(
!
(
status
&
ONENAND_WP_US
))
...
...
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