All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Rangoju, Raju" <raju.rangoju@amd.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: broonie@kernel.org, linux-spi@vger.kernel.org,
	linux-kernel@vger.kernel.org, krishnamoorthi.m@amd.com,
	akshata.mukundshetty@amd.com
Subject: Re: [PATCH v2 3/3] spi: spi_amd: Update Kconfig dependencies
Date: Mon, 9 Jun 2025 16:17:10 +0530	[thread overview]
Message-ID: <d3d1e550-c736-4e26-b397-aaeae50bd647@amd.com> (raw)
In-Reply-To: <CAMuHMdWTwcoFQz39uF0gJUT=X4yC=wn0gYGU5L+jW_JBj0WnGA@mail.gmail.com>



On 5/28/2025 1:02 PM, Geert Uytterhoeven wrote:
> Hi Raju,
> 
> Thanks for your patch, which is now commit dbb79974193a2932 ("spi:
> spi_amd: Update Kconfig dependencies") upstream.
> 
> On Fri, 16 May 2025 at 12:09, Raju Rangoju <Raju.Rangoju@amd.com> wrote:
>> Add X86 and SPI_MEM as dependencies for the spi_amd driver to ensure it is
>> built only on relevant platforms and with the required SPI memory
>> framework.
> 
> This sounds like you are restricting the driver further (BTW, what are
> "relevant platforms"?)...

AMD x86 platforms.

> 
>> Co-developed-by: Akshata MukundShetty <akshata.mukundshetty@amd.com>
>> Signed-off-by: Akshata MukundShetty <akshata.mukundshetty@amd.com>
>> Signed-off-by: Raju Rangoju <Raju.Rangoju@amd.com>
> 
>> --- a/drivers/spi/Kconfig
>> +++ b/drivers/spi/Kconfig
>> @@ -1267,7 +1267,8 @@ config SPI_ZYNQMP_GQSPI
>>   config SPI_AMD
>>          tristate "AMD SPI controller"
>>          depends on PCI
>> -       depends on SPI_MASTER || COMPILE_TEST
>> +       depends on SPI_MASTER || X86 || COMPILE_TEST
> 
> ... but this broadens it instead?
> And how can it be used on X86 if SPI_MASTER=n?
> 
> Seeing an ACPI match table in drivers/spi/spi-amd.c, perhaps you wanted
> to have a dependency on ACPI (or X86 && ACPI) somewhere?
> 
> BTW, as you now have a single Kconfig symbol gating both spi-amd.c
> and spi-amd-pci.c, this means you can no longer build spi-amd.c if
> CONFIG_PCI=n.

Sure Greert. Thanks for the suggestion.
We are planning to have separate Kconfig for both ACPI and PCI based 
drivers in the upcoming series.

> 
>> +       depends on SPI_MEM
>>          help
>>            Enables SPI controller driver for AMD SoC.
> 
> Gr{oetje,eeting}s,
> 
>                          Geert
> 


  reply	other threads:[~2025-06-09 10:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-16 10:06 [PATCH v2 0/3] spi: spi_amd: Add DMA write and Kconfig changes Raju Rangoju
2025-05-16 10:06 ` [PATCH v2 1/3] spi: spi_amd: Remove read{q,b} usage on DMA buffer Raju Rangoju
2025-05-16 10:06 ` [PATCH v2 2/3] spi: spi_amd: Add HIDDMA basic write support Raju Rangoju
2025-05-16 10:06 ` [PATCH v2 3/3] spi: spi_amd: Update Kconfig dependencies Raju Rangoju
2025-05-28  7:32   ` Geert Uytterhoeven
2025-06-09 10:47     ` Rangoju, Raju [this message]
2025-05-20 11:05 ` [PATCH v2 0/3] spi: spi_amd: Add DMA write and Kconfig changes Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d3d1e550-c736-4e26-b397-aaeae50bd647@amd.com \
    --to=raju.rangoju@amd.com \
    --cc=akshata.mukundshetty@amd.com \
    --cc=broonie@kernel.org \
    --cc=geert@linux-m68k.org \
    --cc=krishnamoorthi.m@amd.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-spi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.