[PATCH] [MTD] [CHIPS] stm_flash: new ST PSD4256G compatible flash chip driver

David Woodhouse dwmw2 at infradead.org
Tue Sep 22 19:20:50 EDT 2009


On Tue, 2009-09-22 at 19:05 -0400, Mike Frysinger wrote:
> 
> the only problem i have here is with the need to 0xff pad the mfr/dev
> id's.  any idea what's up with that ?  the device is 16bit and i set
> my .width in my board resources to 2, but the id field is only 8bit,
> so in 16bit mode the id is padded with 0xff instead of 0x00.

Hm, odd -- but I wouldn't lose sleep over it.

However, the datasheet suggests that the high byte is unspecified. Could
it be returning the value of the flash data at that location, rather
than a constant 0xFF? If so, we'd need to add a flag to the jedec match
table to make it match only the low byte?

Or maybe I'd make you do your own probe in that case, rather than
polluting jedec_probe.c... :)

-- 
David Woodhouse                            Open Source Technology Centre
David.Woodhouse at intel.com                              Intel Corporation




More information about the linux-mtd mailing list