mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Michal Simek <michal.simek@amd.com>
To: Mark Brown <broonie@kernel.org>
Cc: Abdurrahman Hussain <abdurrahman@nexthop.ai>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	linux-spi@vger.kernel.org, devicetree@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 3/3] spi: xilinx: use device property accessors.
Date: Mon, 19 Jan 2026 20:17:46 +0100	[thread overview]
Message-ID: <a3fcef3a-d1e9-4b46-b114-3a82575e052e@amd.com> (raw)
In-Reply-To: <b03307f7-93f6-4680-9241-cf28b5456fd0@sirena.org.uk>



On 1/19/26 20:01, Mark Brown wrote:
> On Mon, Jan 19, 2026 at 07:52:35PM +0100, Michal Simek wrote:
>> On 1/19/26 19:38, Mark Brown wrote:
> 
>>> This was specifically targetted at some embedded x86 systems where there
>>> was a goal to reuse device tree bindings for things that just can't be
>>> expressed well in ACPI.  _DSD is generally considered tasteless for more
>>> server style systems, AIUI the general approach preferred by ACPI
>>> forward OSs is to use some combination of DMI quirking and registering
>>> with a per-device ID (like the per generation fake PCI IDs that Intel
>>> uses for all IPs on their SoCs).  Just blindly accepting _DSD can end up
>>> with something that's not used because it's not what the ecosystem
>>> wants.
> 
>> Is it a better way to use auxiliary bus as was recommended by Greg in past
>> on drivers/misc/keba/cp500.c review?
>> https://lore.kernel.org/linux-i2c/2024060203-impeding-curing-e6cd@gregkh/
> 
> The driver there appears to be doing runtime enumeration based on some
> EEPROMs on the system and creating platform devices based on what it
> finds there so it's a bit of a different thing, the aux bus suggestion
> is about what the code that does with the data it got from the EEPROM.
> This patch is for something described directly by firmware so there's no
> way we'd create an aux device, that's purely in kernel.

I don't thing it is actually eeprom because in fpga you can place at certain 
location just memory (or RO memory) to describe what it is inside.
There is also pcie config space which could be used.

Another approach would be to just put record uuid and via firmware interface 
asks for firmware blob which describes different configurations.

Above part is how to find out what is where.

If you know it I think you have multiple options how to wire existing drivers.

1. ACPI - which is what this series is trying to do
2. DT - on x86 not sure if feasible
3. platform drivers - as described above by Greg not an option on PCIe
4. aux bus - for example keba drivers
5. dfl - drivers/fpga/dfl* - used for accelerators.

Pretty much all current Xilinx drivers for soft IPs (spi, i2c, uarts, watchdogs, 
etc) are platform drivers (more OF drivers because platform data are mostly not 
used).

It means I think would be good to get any recommendation which way to go.


> I have no idea what the hardware this series targets is (other than that
> it's using a FPGA) or if there's even a motivation for the change other
> than code inspection.

I think all these cases are very similar. You have x86 with pcie root port which 
is connected directly (or via pcie slot) to fpga. In fpga you have pcie endpoint 
HW which connects other IPs sitting on AXI.

Thanks,
Michal






  reply	other threads:[~2026-01-19 19:18 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-19  7:06 [PATCH v3 0/3] spi: xilinx: switch to device properties and make IRQs optional Abdurrahman Hussain via B4 Relay
2026-01-19  7:06 ` [PATCH v3 1/3] spi: dt-bindings: xilinx: make interrupts optional Abdurrahman Hussain via B4 Relay
2026-01-19  7:06 ` [PATCH v3 2/3] spi: xilinx: make irq optional Abdurrahman Hussain via B4 Relay
2026-01-19  7:06 ` [PATCH v3 3/3] spi: xilinx: use device property accessors Abdurrahman Hussain via B4 Relay
2026-01-19 16:32   ` Mark Brown
2026-01-19 16:47     ` Abdurrahman Hussain
2026-01-19 16:50       ` Mark Brown
2026-01-19 17:15         ` Abdurrahman Hussain
2026-01-19 17:32           ` Mark Brown
2026-01-19 17:47             ` Abdurrahman Hussain
2026-01-19 18:38               ` Mark Brown
2026-01-19 18:52                 ` Michal Simek
2026-01-19 19:01                   ` Mark Brown
2026-01-19 19:17                     ` Michal Simek [this message]
2026-01-19 19:56                       ` Mark Brown
2026-01-19 20:30                         ` Abdurrahman Hussain
2026-01-19 23:20                           ` Mark Brown
2026-01-20  0:20                             ` Abdurrahman Hussain
2026-01-20 18:45                               ` Mark Brown
2026-01-20 19:11                                 ` Abdurrahman Hussain
2026-01-20 20:41                                   ` Andrew Lunn
2026-01-20 20:49                                   ` Andrew Lunn
2026-01-20 21:04                                   ` Mark Brown
2026-01-20 21:28                                     ` Andy Shevchenko
2026-01-20 21:38                                       ` Andy Shevchenko
2026-01-21  8:11                                         ` Michal Simek
2026-01-21  8:40                                           ` Andy Shevchenko
2026-01-20  9:23                         ` Andy Shevchenko
2026-01-20 19:34                           ` Andy Shevchenko
2026-01-19 19:18                     ` Abdurrahman Hussain
2026-01-21 15:10   ` Michal Simek
2026-01-20 19:23 ` (subset) [PATCH v3 0/3] spi: xilinx: switch to device properties and make IRQs optional Mark Brown
2026-01-21  8:15   ` Michal Simek
2026-01-21 11:39     ` Mark Brown
2026-01-21 12:26       ` Michal Simek
2026-01-21 12:35         ` 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=a3fcef3a-d1e9-4b46-b114-3a82575e052e@amd.com \
    --to=michal.simek@amd.com \
    --cc=abdurrahman@nexthop.ai \
    --cc=broonie@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-spi@vger.kernel.org \
    --cc=robh@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®