[PATCH] mtd : add parsing code for one kind of Hynix's nand chip

Brian Norris computersforpeace at gmail.com
Sat Sep 15 00:39:43 EDT 2012


On Sun, Aug 19, 2012 at 11:01 PM, Huang Shijie <b32955 at freescale.com> wrote:
> 于 2012年08月18日 10:51, Brian Norris 写道:
>
>> agreed there was no good way to detect these chips without practically
>> hard-coding the ID + parameter configuration. If that's the case, then
>
> Yes, we have to hard-coding the ID for Hynix. But there is already a
> hard-coding for SAMSUNG.

It's not exactly hard-coding, as there is a recognizable pattern that
covers a class of different chips: all Samsung MLC with 6-byte ID
strings.

> so I think the hard-coding is accecpted, aren't we?

We try to do as little hard-coding as possible, as it can blow up as a
larger maintainability problem. But as we see, we may need real
hard-coding.

Brian



More information about the linux-mtd mailing list