Re: [PATCH 15/16] misc: lan966x_pci: Add dtso nodes in order to support SFPs
From: Thomas Petazzoni
Date: Wed Apr 09 2025 - 10:16:19 EST
On Wed, 9 Apr 2025 16:04:51 +0200
Andrew Lunn <andrew@xxxxxxx> 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