Message ID | 1349850366-4731-1-git-send-email-computersforpeace@gmail.com |
---|---|
State | Accepted |
Commit | bc86cf7af2ebda88056538e8edff852ee627f76a |
Headers | show |
On Tue, 2012-10-09 at 23:26 -0700, Brian Norris wrote: > I have heuristically determined that all the chips that use > the new table have ID strings which wrap around after the 6th byte. I'd be happier if we had confirmation of that from Samsung...
On Tue, Oct 9, 2012 at 11:31 PM, David Woodhouse <dwmw2@infradead.org> wrote: > On Tue, 2012-10-09 at 23:26 -0700, Brian Norris wrote: >> I have heuristically determined that all the chips that use >> the new table have ID strings which wrap around after the 6th byte. > > I'd be happier if we had confirmation of that from Samsung... I can see if that's possible, but I think it's unlikely. They don't even bother following standards (ONFI). Is this an obstacle to merging? Brian
On Tue, 2012-10-09 at 23:39 -0700, Brian Norris wrote: > I can see if that's possible, but I think it's unlikely. They don't > even bother following standards (ONFI). Is this an obstacle to > merging? No. I already pushed it.
Dear David Woodhouse, > On Tue, 2012-10-09 at 23:39 -0700, Brian Norris wrote: > > I can see if that's possible, but I think it's unlikely. They don't > > even bother following standards (ONFI). Is this an obstacle to > > merging? > > No. I already pushed it. Thanks guys! Best regards, Marek Vasut
Hi David, On Wed, Oct 10, 2012 at 12:48 AM, David Woodhouse <dwmw2@infradead.org> wrote: > On Tue, 2012-10-09 at 23:39 -0700, Brian Norris wrote: >> I can see if that's possible, but I think it's unlikely. They don't >> even bother following standards (ONFI). Is this an obstacle to >> merging? > > No. I already pushed it. This is a "bump" for a 3.7-rc pull request. This regression has been noticed by others. Thanks, Brian
Dear Brian Norris, > Hi David, > > On Wed, Oct 10, 2012 at 12:48 AM, David Woodhouse <dwmw2@infradead.org> wrote: > > On Tue, 2012-10-09 at 23:39 -0700, Brian Norris wrote: > >> I can see if that's possible, but I think it's unlikely. They don't > >> even bother following standards (ONFI). Is this an obstacle to > >> merging? > > > > No. I already pushed it. > > This is a "bump" for a 3.7-rc pull request. This regression has been > noticed by others. [whine] my nand doesn't work ;-) Thanks for keeping eye on this, Brian. Best regards, Marek Vasut
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index ec6841d..d5ece6e 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c @@ -2983,13 +2983,14 @@ static void nand_decode_ext_id(struct mtd_info *mtd, struct nand_chip *chip, /* * Field definitions are in the following datasheets: * Old style (4,5 byte ID): Samsung K9GAG08U0M (p.32) - * New style (6 byte ID): Samsung K9GAG08U0F (p.44) + * New Samsung (6 byte ID): Samsung K9GAG08U0F (p.44) * Hynix MLC (6 byte ID): Hynix H27UBG8T2B (p.22) * - * Check for ID length, cell type, and Hynix/Samsung ID to decide what - * to do. + * Check for ID length, non-zero 6th byte, cell type, and Hynix/Samsung + * ID to decide what to do. */ - if (id_len == 6 && id_data[0] == NAND_MFR_SAMSUNG) { + if (id_len == 6 && id_data[0] == NAND_MFR_SAMSUNG && + id_data[5] != 0x00) { /* Calc pagesize */ mtd->writesize = 2048 << (extid & 0x03); extid >>= 2;