Re: [PATCH resend 3/5] mpc8xxx_spi: put max_cs to use

2020-03-31 Thread Tom Rini
On Tue, Feb 11, 2020 at 03:20:24PM +, Rasmus Villemoes wrote: > Currently, max_cs is write-only; it's just set in > mpc8xxx_spi_ofdata_to_platdata and not otherwise used. > > My mpc8309 was always resetting during an "sf probe 0". It turns out > dm_gpio_set_dir_flags() was being called with

[PATCH resend 3/5] mpc8xxx_spi: put max_cs to use

2020-02-11 Thread Rasmus Villemoes
Currently, max_cs is write-only; it's just set in mpc8xxx_spi_ofdata_to_platdata and not otherwise used. My mpc8309 was always resetting during an "sf probe 0". It turns out dm_gpio_set_dir_flags() was being called with garbage, since nothing had initialized priv->gpios[0] - our device tree used