[PATCH 15/16] misc: lan966x_pci: Add dtso nodes in order to support SFPs
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Wed Apr 9 07:14:44 PDT 2025
On Wed, 9 Apr 2025 16:04:51 +0200
Andrew Lunn <andrew at lunn.ch> wrote:
> And you need some way to map the PCI ID to the correct .dtso file.
> Maybe that is just a lookup table in the driver, or maybe you can pack
> the .dtso file into a kernel module with the correct
> MODULE_DEVICE_TABLE(pci, ...) so that PCI probing pulls in the
> specific driver module with the .dtso, which via dependencies pulls in
> the core driver which can actually make use of the .dtso?
Well, check the already upstream driver:
https://elixir.bootlin.com/linux/v6.13.7/source/drivers/misc/lan966x_pci.c
It indeed binds on the PCI ID, and the driver bundles the .dtbo.
Best regards,
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
More information about the linux-arm-kernel
mailing list