[PATCH 2/4] [RFC] [MTD] cfi_probe: remove Intel chip workaround

Uwe Kleine-König Uwe.Kleine-Koenig at digi.com
Fri Jul 25 16:45:50 EDT 2008


Hi David,

David Woodhouse wrote:
> On Tue, 2008-07-22 at 09:38 +0200, Uwe Kleine-König wrote:
> > For me this workaround breaks detection of a M29W128GL flash because it
> > doesn't switch to CFI Query mode after writing 0xff.
> >
> > This workaround was introduced in 2004 between v2.6.8-rc1 and
> > v2.6.8-rc2 in CVS revision 1.77 of cfi_probe.c.  ("Send 0xFF to switch Intel
> > chips back to read mode too. Some of them ignore 0xF0")
> >
> > Alternatively writing 0xff *before* 0xf0 works with the M29W128GL.
> 
> That's probably what you should do then; your patch as it stands would
> break Intel chips, wouldn't it?
IMHO it depends on how common these chips are today.  If they still are,
I'd like to test exchanging the two commands with them before apply it.
After all it might not work for them?!  And if there were only a few and
they don't exist anymore today I would like to remove the workaround for
them.  That's why I marked my patch as RFC.

As you committed that workaround you might know which chips are/were
affected.  And you might even be able to test it and/or judge if the
workaround is still needed today.

Best regards,
Uwe

-- 
Uwe Kleine-König, Software Engineer
Digi International GmbH Branch Breisach, Küferstrasse 8, 79206 Breisach, Germany
Tax: 315/5781/0242 / VAT: DE153662976 / Reg. Amtsgericht Dortmund HRB 13962



More information about the linux-mtd mailing list