On Wed, Nov 19, 2014 at 11:38:48PM +0100, Gilles Chanteperdrix wrote: > I do not know what to say. At software level, it is not really hard > to get the I-pipe code to trigger a write to a register when the > first RT irq is enabled in a bank and another write when the last RT > irq gets disabled, because we keep track of that in the > enable_irqdesc/disable_irqdesc callbacks.
Sure, but other power management calls to the hardware is allowed to change the register too at any time. By setting the flag I make sure the other calls will NEVER enable smartidle. So making it a dtb option means the board maker gets to specify that they want smartidle off for a given piece of hardware. I did want to make it only get changed when an IRQ was enabled but that was a mess given it is in a totally different part of the code. > Now, I suspect hwmod is made to be transparent, and called when > initializing the bank, way before an irq is enabled, so the > behaviour can not really be influenced from enable_irqdesc/disable_irqdesc. That is certainly true. It is called when the hardware is probed. -- Len Sorensen _______________________________________________ Xenomai mailing list [email protected] http://www.xenomai.org/mailman/listinfo/xenomai
