From: Wolfgang Denk Date: Thu, 20 Dec 2012 00:12:08 +0100 Subject: [U-Boot] [PATCH 2/2] spi: Add SPI flash test In-Reply-To: <1348878482-1730-2-git-send-email-sjg@chromium.org> References: <1348878482-1730-1-git-send-email-sjg@chromium.org> <1348878482-1730-2-git-send-email-sjg@chromium.org> Message-ID: <20121219231208.173DB202B12@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Simon Glass, In message <1348878482-1730-2-git-send-email-sjg@chromium.org> you wrote: > It is useful to have a basic SPI flash test, which tests that the SPI chip, > the SPI bus and the driver are behaving. > > This test erases part of the flash, writes data and reads it back as a > sanity check that all is well. > > Use CONFIG_SF_TEST to enable it. Adding dead code ? Please don't. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de No, I'm not going to explain it. If you can't figure it out, you didn't want to know anyway... :-) - Larry Wall in <1991Aug7.180856.2854@netlabs.com>