Citeren Paul Fertser <fercer...@gmail.com>:

Hi John,

John Crispin <blo...@openwrt.org> writes:
looks good to me but i will run this past linux-mtd and ask them for an
opinion before merging it.

This patch was meant as a quick "hack" rather than a complete solution,
that's why I didn't bother adding proper commit message, S-o-b etc. But
since I'm the author, I can do that promptly, whenever that's needed.

The main limitation is that I checked only a single datasheet (likely
Winbond) so other models might require different treatment.

The way to exit 4-byte addressing mode, can be determined by looking at the SFDP (JEDEC Standard JESD216B). As you already suspected, there are many possibilities. The method required, can be derived from the 16th DWORD from the JEDEC Basic Flash Parameter Table (page 28).

Another is
that such a patch is mostly a bad substitute for proper hardware design.

Not really. There may not be a hardware reset line if the flash is running in x4 data mode.

Regards, Arjen
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to