Re: [PATCH v3 4/8] mux: sparx5: Add Sparx5 SPI mux driver

From: Lars Povlsen
Date: Thu Jul 02 2020 - 07:33:37 EST



Lars Povlsen writes:

> The Sparx5 mux driver may be used to control selecting between two
> alternate SPI bus segments connected to the SPI controller
> (spi-dw-mmio).
>
> Signed-off-by: Lars Povlsen <lars.povlsen@xxxxxxxxxxxxx>
> ---
> drivers/mux/Makefile | 2 +
> drivers/mux/sparx5-spi.c | 138 +++++++++++++++++++++++++++++++++++++++
> 2 files changed, 140 insertions(+)
> create mode 100644 drivers/mux/sparx5-spi.c
>
...
> +
> +#define SPARX5_MAX_CS 16
> +
> +struct mux_sparx5 {
> + struct regmap *syscon;
> + u8 bus[SPARX5_MAX_CS];
> + int cur_bus;
> +};

Yeah, "cur_bus" is a leftover. I'll remove it.

--
Lars Povlsen,
Microchip