Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 231708
b: refs/heads/master
c: e637276
h: refs/heads/master
v: v3
  • Loading branch information
Guillaume LECERF authored and David Woodhouse committed Jan 6, 2011
1 parent a13c559 commit 51fdc8f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 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: eaca491f75af5afa9265a6bdfcbbfff6837634ab
refs/heads/master: e637276370cb11068ab185c342eac5a78e5415b4
16 changes: 13 additions & 3 deletions trunk/drivers/mtd/chips/cfi_cmdset_0002.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,9 +392,19 @@ static struct cfi_fixup fixup_table[] = {
static void cfi_fixup_major_minor(struct cfi_private *cfi,
struct cfi_pri_amdstd *extp)
{
if (cfi->mfr == CFI_MFR_SAMSUNG && cfi->id == 0x257e &&
extp->MajorVersion == '0')
extp->MajorVersion = '1';
if (cfi->mfr == CFI_MFR_SAMSUNG) {
if (extp->MajorVersion == '0' && extp->MinorVersion == '0') {
/*
* Samsung K8P2815UQB and K8D6x16UxM chips
* report major=0 / minor=0.
*/
printk(KERN_NOTICE " Fixing Samsung's Amd/Fujitsu"
" Extended Query version to 1.%c\n",
extp->MinorVersion);
extp->MajorVersion = '1';
}
}

/*
* SST 38VF640x chips report major=0xFF / minor=0xFF.
*/
Expand Down

0 comments on commit 51fdc8f

Please sign in to comment.