lkml.org 
[lkml]   [2021]   [Sep]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 02/11] genirq: Export irq_to_desc() again to modules
From


On 9/25/2021 2:00 PM, Thomas Gleixner wrote:
> On Fri, Sep 24 2021 at 10:05, Florian Fainelli wrote:
>> In order to build drivers/irqchip/irq-bcm7038-l1.c as a module (for use
>> in GKI), we need to export_to_desc() which is used in this snippet of
>> code:
>>
>> irqd_set_single_target(irq_desc_get_irq_data(irq_to_desc(virq)));
>>
>> This effectively reverts 64a1b95bb9fe ("genirq: Restrict export of
>> irq_to_desc()").
>
> No. I'm not reexporting this. We've spent quite some time to prevent all
> kind of drivers for fiddle with irq descriptors and I'm not going
> to reopen that can of worms.
>
> irq_get_irq_data() is exported and provides you what you need.

That is exactly what I was looking for and somehow missed it during my
search the other day, thanks!
--
Florian

\
 
 \ /
  Last update: 2021-09-26 04:30    [W:0.112 / U:0.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site