linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] spi: SPI_MICROCHIP_CORE should depend on SOC_MICROCHIP_POLARFIRE
@ 2022-07-11  8:45 Geert Uytterhoeven
  2022-07-11 10:33 ` Conor.Dooley
  0 siblings, 1 reply; 3+ messages in thread
From: Geert Uytterhoeven @ 2022-07-11  8:45 UTC (permalink / raw)
  To: Mark Brown, Conor Dooley, Daire McNamara
  Cc: linux-spi, linux-kernel, Geert Uytterhoeven

The Microchip "hard" FPGA SPI controller is only present on Microchip
PolarFire SoCs.  Hence add a dependency on SOC_MICROCHIP_POLARFIRE, to
prevent asking the user about this driver when configuring a kernel
without Microchip PolarFire SoC support.

Fixes: 9ac8d17694b66d54 ("spi: add support for microchip fpga spi controllers")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 drivers/spi/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig
index e03cd16f4469079e..b1cb7fe129ff86da 100644
--- a/drivers/spi/Kconfig
+++ b/drivers/spi/Kconfig
@@ -585,6 +585,7 @@ config SPI_MESON_SPIFC
 config SPI_MICROCHIP_CORE
 	tristate "Microchip FPGA SPI controllers"
 	depends on SPI_MASTER
+	depends on SOC_MICROCHIP_POLARFIRE || COMPILE_TEST
 	help
 	  This enables the SPI driver for Microchip FPGA SPI controllers.
 	  Say Y or M here if you want to use the "hard" controllers on
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] spi: SPI_MICROCHIP_CORE should depend on SOC_MICROCHIP_POLARFIRE
  2022-07-11  8:45 [PATCH] spi: SPI_MICROCHIP_CORE should depend on SOC_MICROCHIP_POLARFIRE Geert Uytterhoeven
@ 2022-07-11 10:33 ` Conor.Dooley
  2022-07-11 10:46   ` Conor.Dooley
  0 siblings, 1 reply; 3+ messages in thread
From: Conor.Dooley @ 2022-07-11 10:33 UTC (permalink / raw)
  To: geert+renesas, broonie, Daire.McNamara; +Cc: linux-spi, linux-kernel

On 11/07/2022 09:45, Geert Uytterhoeven wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> 
> The Microchip "hard" FPGA SPI controller is only present on Microchip
> PolarFire SoCs.  Hence add a dependency on SOC_MICROCHIP_POLARFIRE, to
> prevent asking the user about this driver when configuring a kernel
> without Microchip PolarFire SoC support.
> 
> Fixes: 9ac8d17694b66d54 ("spi: add support for microchip fpga spi controllers")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

Until I get the "soft" version sorted, makes sense to me.
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>

> ---
>   drivers/spi/Kconfig | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig
> index e03cd16f4469079e..b1cb7fe129ff86da 100644
> --- a/drivers/spi/Kconfig
> +++ b/drivers/spi/Kconfig
> @@ -585,6 +585,7 @@ config SPI_MESON_SPIFC
>   config SPI_MICROCHIP_CORE
>          tristate "Microchip FPGA SPI controllers"
>          depends on SPI_MASTER
> +       depends on SOC_MICROCHIP_POLARFIRE || COMPILE_TEST
>          help
>            This enables the SPI driver for Microchip FPGA SPI controllers.
>            Say Y or M here if you want to use the "hard" controllers on
> --
> 2.25.1
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] spi: SPI_MICROCHIP_CORE should depend on SOC_MICROCHIP_POLARFIRE
  2022-07-11 10:33 ` Conor.Dooley
@ 2022-07-11 10:46   ` Conor.Dooley
  0 siblings, 0 replies; 3+ messages in thread
From: Conor.Dooley @ 2022-07-11 10:46 UTC (permalink / raw)
  To: geert+renesas, broonie, Daire.McNamara; +Cc: linux-spi, linux-kernel

On 11/07/2022 11:33, Conor Dooley wrote:
> On 11/07/2022 09:45, Geert Uytterhoeven wrote:
>> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>>
>> The Microchip "hard" FPGA SPI controller is only present on Microchip
>> PolarFire SoCs.  Hence add a dependency on SOC_MICROCHIP_POLARFIRE, to
>> prevent asking the user about this driver when configuring a kernel
>> without Microchip PolarFire SoC support.
>>
>> Fixes: 9ac8d17694b66d54 ("spi: add support for microchip fpga spi controllers")
>> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> 
> Until I get the "soft" version sorted, makes sense to me.
> Reviewed-by: Conor Dooley <conor.dooley@microchip.com>

Actually, I was thinking about why the "soft" version would change
anything and I realised that this is not correct.

I rescind my R-b.

You can also use this on the HiFive Unleashed Expansion board via
chiplink:
https://raw.githubusercontent.com/polarfire-soc/polarfire-soc-documentation/master/boards/lc-mpfs-dev-kit/images/updated-lc-libero-design.png

I have never tried this so I forgot about it, but just as the PCI
root port is accessible, so is the SPI.

Sorry!



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-07-11 11:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-11  8:45 [PATCH] spi: SPI_MICROCHIP_CORE should depend on SOC_MICROCHIP_POLARFIRE Geert Uytterhoeven
2022-07-11 10:33 ` Conor.Dooley
2022-07-11 10:46   ` Conor.Dooley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).