Re: [PATCH] spi: oc-tiny: fix negative loop bound error on for loop

2019-03-31 Thread Mark Brown
On Sat, Mar 30, 2019 at 09:23:00PM +, Colin King wrote: > Fixes: ca632f556697 ("spi: reorganize drivers") Please think about the fixes tags you're applying, this is obviously not the source of the issue. signature.asc Description: PGP signature

Re: [PATCH] spi: oc-tiny: fix negative loop bound error on for loop

2019-03-31 Thread Mukesh Ojha
On 3/31/2019 2:53 AM, Colin King wrote: From: Colin Ian King Currently the for-loop using an unsigned int for the loop counter which is problematic when comparing it to the signed int gt->gpio_cs_count. This is an issue because if the signed int is negative (for example, the call to of_gpio_

Re: [PATCH] spi: oc-tiny: fix negative loop bound error on for loop

2019-03-31 Thread Mukesh Ojha
On 3/31/2019 2:53 AM, Colin King wrote: From: Colin Ian King Currently the for-loop using an unsigned int for the loop counter which is problematic when comparing it to the signed int gt->gpio_cs_count. This is an issue because if the signed int is negative (for example, the call to of_gpio_

[PATCH] spi: oc-tiny: fix negative loop bound error on for loop

2019-03-30 Thread Colin King
From: Colin Ian King Currently the for-loop using an unsigned int for the loop counter which is problematic when comparing it to the signed int gt->gpio_cs_count. This is an issue because if the signed int is negative (for example, the call to of_gpio_count failed) then the negative loop bound i