[okl4-developer] Synchronization in driver framework.
Lukas HANEL
lukas.hanel at st.com
Wed Jun 25 19:54:17 EST 2008
Hi
I am porting a Linux driver to the okl4 driver framework. This driver
uses udelay to wait for the device. More specifically, after some setup,
the initialization function will enable the interrupt and then use
udelay. The interrupt handler will then do some work and change some
variables. After udelay, the init funtion checks this variables.
In a first compilation port, I "implemented" udelay with a "for" loop.
However, I experience, the delay beeing over before the interrupt fires.
So instead of a wait loop I would like to have the execution of
device_enable_impl stalled at some point and to go on after the
execution of device_interrupt_impl. What would be the best / easiest way
to do?
Greetings,
Lukas Hänel
More information about the Developer
mailing list