On Fri, May 29, 2020 at 3:39 PM Marc Zyngier <maz@xxxxxxxxxx> wrote:
On 2020-05-21 14:32, Anup Patel wrote:
> +/* Get the OF device node used by INTC irq domain */
> +struct device_node *riscv_of_intc_domain_node(void)
> +{
> + return intc_domain_node;
> +}
> +EXPORT_SYMBOL_GPL(riscv_of_intc_domain_node);
Why do you need this? Why can't the timer node refer to its
interrupt-parent? The irqchip shouldn't be in the business of
working around DT issues.
At worse, use the default irqdomain if you must, but please
avoid this kind of construct.
Even, I don't like exporting riscv_of_intc_domain_node().
Thanks for your suggestion, I will certainly use the default irqdomain.