[U-Boot] [PATCH v2 10/22] spi: Add error checking for invalid bus widths

Fabio Estevam festevam at gmail.com
Fri Nov 25 21:16:37 CET 2016


On Fri, Nov 25, 2016 at 5:38 PM, Simon Glass <sjg at chromium.org> wrote:

> So it is correct to print an error, and then continue? This error will
> almost never occur and thus it wastes code space. SPI is sensitive
> because it can be used in SPL. Linux doesn't care about code size as
> much.
>
> So how about either:
> 1. debug() and return an error
> 2. debug() and skip the error

I prefer option 2, thanks.


More information about the U-Boot mailing list