Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27791
b: refs/heads/master
c: 6e7a680
h: refs/heads/master
i:
  27789: f822252
  27787: 7de2126
  27783: ce79053
  27775: c068fc7
v: v3
  • Loading branch information
Nicolas Pitre authored and David Woodhouse committed May 17, 2006
1 parent 88f0a28 commit 78cf99b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: df54b52c411befdcf1d0989f939a49163570ad29
refs/heads/master: 6e7a6809c555aeb7cb98544df4d446fbd6f123ec
4 changes: 3 additions & 1 deletion trunk/drivers/mtd/chips/cfi_cmdset_0001.c
Original file line number Diff line number Diff line change
Expand Up @@ -1479,8 +1479,10 @@ static int __xipram do_write_buffer(struct map_info *map, struct flchip *chip,
[...], the device will not accept any more Write to Buffer commands".
So we must check here and reset those bits if they're set. Otherwise
we're just pissing in the wind */
if (chip->state != FL_STATUS)
if (chip->state != FL_STATUS) {
map_write(map, CMD(0x70), cmd_adr);
chip->state = FL_STATUS;
}
status = map_read(map, cmd_adr);
if (map_word_bitsset(map, status, CMD(0x30))) {
xip_enable(map, chip, cmd_adr);
Expand Down

0 comments on commit 78cf99b

Please sign in to comment.