From: Sascha Hauer Date: Tue, 20 Aug 2013 07:54:40 +0000 (+0200) Subject: mtd: m25p80: make CONFIG_M25PXX_USE_FAST_READ safe to enable X-Git-Tag: v3.12-rc1~82^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58146992c956c2104ca8990a621e39a20e9c9f94;p=pandora-kernel.git mtd: m25p80: make CONFIG_M25PXX_USE_FAST_READ safe to enable This patch adds a flag to struct flash_info indicating that fast_read is not supported. This now gives the following logic when determing whether to enable fastread: If the flash chip does not support fast_read, then disable it. Otherwise: 1) enable fast_read if device node contains m25p,fast-read 2) enable fast_read if forced in Kconfig This makes enabling CONFIG_M25PXX_USE_FAST_READ a safe option since we no longer enable the fast_read option unconditionally. For now fast_read is disabled for the everspin mr25h256 and the catalyst devices. Others may need the flag aswell. Signed-off-by: Sascha Hauer Acked-by: Marek Vasut Signed-off-by: Artem Bityutskiy Signed-off-by: Brian Norris Signed-off-by: David Woodhouse --- Reading git-diff-tree failed