Re: [U-Boot] [PATCH v3] spi: Add error checking for invalid bus widths

2016-12-06 Thread Jagan Teki
On Mon, Dec 5, 2016 at 7:24 AM, Simon Glass wrote: > Hi Jagan, > > On 1 December 2016 at 05:45, Jagan Teki wrote: >> On Wed, Nov 30, 2016 at 8:30 AM, Simon Glass wrote: >>> At present an invalid bus width prints a message but does not

Re: [U-Boot] [PATCH v3] spi: Add error checking for invalid bus widths

2016-12-04 Thread Simon Glass
Hi Jagan, On 1 December 2016 at 05:45, Jagan Teki wrote: > On Wed, Nov 30, 2016 at 8:30 AM, Simon Glass wrote: >> At present an invalid bus width prints a message but does not return an >> error. This is the opposite of the correct behaviour. Adjust it to

Re: [U-Boot] [PATCH v3] spi: Add error checking for invalid bus widths

2016-12-01 Thread Jagan Teki
On Wed, Nov 30, 2016 at 8:30 AM, Simon Glass wrote: > At present an invalid bus width prints a message but does not return an > error. This is the opposite of the correct behaviour. Adjust it to avoid > code bloat in the common case, and avoid hard-to-debug failure in the >

[U-Boot] [PATCH v3] spi: Add error checking for invalid bus widths

2016-11-29 Thread Simon Glass
At present an invalid bus width prints a message but does not return an error. This is the opposite of the correct behaviour. Adjust it to avoid code bloat in the common case, and avoid hard-to-debug failure in the uncommon case. Signed-off-by: Simon Glass --- Changes in v3: