From: Tom Rini Date: Tue, 4 Aug 2020 11:03:26 -0400 Subject: [PATCH 02/31] mtd: spi-nor: Tidy up error handling / debug code In-Reply-To: <20200719161601.495421-3-sjg@chromium.org> References: <20200719161601.495421-1-sjg@chromium.org> <20200719161601.495421-3-sjg@chromium.org> Message-ID: <20200804150326.GB6965@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, Jul 19, 2020 at 10:15:32AM -0600, Simon Glass wrote: > The -ENODEV error value in spi_nor_read_id() is incorrect since there > clearly is a device - it just cannot be supported. Use -ENOMEDIUM instead > which has the virtue of being less common. > > Fix the return value in spi_nor_scan(). > > Also there are a few printf() statements which should be debug() since > they bloat the code with unused strings at present. Fix those while here. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: