Re: [PATCH v2] spi: mediatek: single device does not require cs_gpios

From: Matthias Brugger
Date: Tue Nov 17 2015 - 05:49:22 EST




On 14/11/15 03:27, lei liu wrote:
On Mon, 2015-11-09 at 12:14 +0800, Nicolas Boichat wrote:
When only one device is present, it is not necessary to specify
cs_gpios, as the CS line can be controlled by the hardware
module.

Without this patch, older device tree bindings used before
37457607 "spi: mediatek: mt8173 spi multiple devices support"
would cause a panic on boot. This fixes the crash, and
re-introduces backward compatibility.

Signed-off-by: Nicolas Boichat <drinkcat@xxxxxxxxxxxx>

Acked-by: Leilk Liu <leilk.liu@xxxxxxxxxxxx>


Please make sure this fix get applied to v4.3 as well.

Thanks,
Matthias
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/