Initialization order
Renaud Barbier <[email protected]> Wed, 24 Jun 2026 15:51:49 +0000
| Newsgroups | org.infradead.lists.barebox |
|---|---|
| Message-ID | <SJ0PR07MB976607010E638B0F6CDE5B66ECED2@SJ0PR07MB9766.namprd07.prod.outlook.com> |
Hello, I have a LS1021A connected to a device via SPI bus and PCIe bus. To enable the PCIe bus on this device , I need to write registers via the SPI bus. I created a small SPI driver using the regmap layer to access the chip and I am able to display or write registers via md and mw. I have tried (core)device_initcall opening the device using open_and_lseek but it is either called after ls_pcie_probe or too early and failed What would be the best approach to do this initialization before ls_pcie_probe is called? Cheers, Renaud