diff options
Diffstat (limited to 'drivers/mtd/chips')
-rw-r--r-- | drivers/mtd/chips/cfi_cmdset_0002.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/drivers/mtd/chips/cfi_cmdset_0002.c b/drivers/mtd/chips/cfi_cmdset_0002.c index 9d68ab919f31..324fee4024a9 100644 --- a/drivers/mtd/chips/cfi_cmdset_0002.c +++ b/drivers/mtd/chips/cfi_cmdset_0002.c | |||
@@ -392,9 +392,19 @@ static struct cfi_fixup fixup_table[] = { | |||
392 | static void cfi_fixup_major_minor(struct cfi_private *cfi, | 392 | static void cfi_fixup_major_minor(struct cfi_private *cfi, |
393 | struct cfi_pri_amdstd *extp) | 393 | struct cfi_pri_amdstd *extp) |
394 | { | 394 | { |
395 | if (cfi->mfr == CFI_MFR_SAMSUNG && cfi->id == 0x257e && | 395 | if (cfi->mfr == CFI_MFR_SAMSUNG) { |
396 | extp->MajorVersion == '0') | 396 | if (extp->MajorVersion == '0' && extp->MinorVersion == '0') { |
397 | extp->MajorVersion = '1'; | 397 | /* |
398 | * Samsung K8P2815UQB and K8D6x16UxM chips | ||
399 | * report major=0 / minor=0. | ||
400 | */ | ||
401 | printk(KERN_NOTICE " Fixing Samsung's Amd/Fujitsu" | ||
402 | " Extended Query version to 1.%c\n", | ||
403 | extp->MinorVersion); | ||
404 | extp->MajorVersion = '1'; | ||
405 | } | ||
406 | } | ||
407 | |||
398 | /* | 408 | /* |
399 | * SST 38VF640x chips report major=0xFF / minor=0xFF. | 409 | * SST 38VF640x chips report major=0xFF / minor=0xFF. |
400 | */ | 410 | */ |