mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* Initialization order
@ 2026-06-24 15:51 Renaud Barbier
  2026-06-24 20:18 ` Ahmad Fatoum
  0 siblings, 1 reply; 4+ messages in thread
From: Renaud Barbier @ 2026-06-24 15:51 UTC (permalink / raw)
  To: Barebox List

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




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-06-25 10:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-24 15:51 Initialization order Renaud Barbier
2026-06-24 20:18 ` Ahmad Fatoum
2026-06-25  9:02   ` Renaud Barbier
2026-06-25 10:56     ` Ahmad Fatoum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox