Re: [U-Boot] [PATCH v2] spi: kirkwood: avoid divide by zero crash

2017-11-12 Thread Goldschmidt Simon
On Mon, Nov 13, 2017 at 06:26 AM, Baruch Siach wrote: >On Sun, Nov 12, 2017 at 08:42:28PM +0100, Heinrich Schuchardt wrote: >> On 11/12/2017 04:30 PM, Baruch Siach wrote: >> > Calling .set_speed with zero speed is definitely a bug. Instead of >> > crashing, set hz to 1 so that we get the lowest

Re: [U-Boot] [PATCH v2] spi: kirkwood: avoid divide by zero crash

2017-11-12 Thread Heinrich Schuchardt
On 11/12/2017 04:30 PM, Baruch Siach wrote: Calling .set_speed with zero speed is definitely a bug. Instead of crashing, set hz to 1 so that we get the lowest possible frequency rate. Did this actually occur? Why? Signed-off-by: Baruch Siach --- v2: Don't fail; set

[U-Boot] [PATCH v2] spi: kirkwood: avoid divide by zero crash

2017-11-12 Thread Baruch Siach
Calling .set_speed with zero speed is definitely a bug. Instead of crashing, set hz to 1 so that we get the lowest possible frequency rate. Signed-off-by: Baruch Siach --- v2: Don't fail; set lowest rate (Jagan) --- drivers/spi/kirkwood_spi.c | 3 +++ 1 file changed, 3