Skip to contentSkip to conversation

irq: Export symbol no_action()

PATCH Superseded Alexander Shiyan 2 participants 6 messages Mar 1, 2014 – Mar 4, 2014 IRQ

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 irq: Export symbol no_action()

This will allow to use dummy IRQ handler no_action() from drivers compiled as module. For example, dummy handler is could be used for drivers that use ARM FIQ interrupts.

---
 kernel/irq/handle.c | 1 +
 1 file changed, 1 insertion(+)
kernel/irq/handle.c +1 -0
index bfec453..e8ddcbf 100644
@@ -41,6 +41,7 @@ irqreturn_t no_action(int cpl, void *dev_id)
 {
 	return IRQ_NONE;
 }
+EXPORT_SYMBOL(no_action);
 
 static void warn_no_thread(unsigned int irq, struct irqaction *action)
 {
Signature · 1 line
1.8.3.2
#1 lore raw
Quoted 3 lines · Alexander Shiyan

This will allow to use dummy IRQ handler no_action() from drivers compiled as module. For example, dummy handler is could be used for drivers that use ARM FIQ interrupts.

And why exactly requires a driver which uses ARM FIQ interrupts the no_action implementation?

kernel/irq/handle.c irqreturn_t no_action(int cpl, void *dev_id) · line 44

Quoted 5 lines
kernel/irq/handle.c +1 -0
@@ -41,6 +41,7 @@ irqreturn_t no_action(int cpl, void *dev_id)
 {
 	return IRQ_NONE;
 }
+EXPORT_SYMBOL(no_action);

EXPORT_SYMBOL_GPL if at all.

Thanks,

tglx

#2 lore raw

Вторник, 4 марта 2014, 12:05 +01:00 от Thomas Gleixner <[email protected]>:

Quoted 8 lines · Alexander Shiyan
Quoted 4 lines

This will allow to use dummy IRQ handler no_action() from drivers compiled as module. For example, dummy handler is could be used for drivers that use ARM FIQ interrupts.

And why exactly requires a driver which uses ARM FIQ interrupts the no_action implementation?

FIQ Interrupt handler is not used in this function. In FIQ case this is just a dummy declaration. Real handler is assigned by using the set_fiq_handler().

Quoted 7 lines

kernel/irq/handle.c irqreturn_t no_action(int cpl, void *dev_id) · line 44

Quoted 5 lines
kernel/irq/handle.c +1 -0
@@ -41,6 +41,7 @@ irqreturn_t no_action(int cpl, void *dev_id)
 {
 	return IRQ_NONE;
 }
+EXPORT_SYMBOL(no_action);

EXPORT_SYMBOL_GPL if at all.

v2?

---
���{.n�+�������+%�����ݶ��w��{.n�+����{��G�����{ay�ʇڙ�,j��f���h��������z_�(�階�ݢj"���m������G������?����&���~��iO��z��v�^�m���� ������?�I�

#3 lore raw
Quoted 7 lines · Alexander Shiyan

Вторник, 4 марта 2014, 12:05 +01:00 от Thomas Gleixner <[email protected]>:

Quoted 6 lines · Alexander Shiyan
Quoted 4 lines

This will allow to use dummy IRQ handler no_action() from drivers compiled as module. For example, dummy handler is could be used for drivers that use ARM FIQ interrupts.

Quoted 7 lines
Quoted 2 lines

And why exactly requires a driver which uses ARM FIQ interrupts the no_action implementation?

FIQ Interrupt handler is not used in this function. In FIQ case this is just a dummy declaration. Real handler is assigned by using the set_fiq_handler().

Why do you need a dummy declaration at all?

set_fiq_handler() is completely detached from the generic interrupt subsystem.

Thanks,

tglx

#4 lore raw

+сс Arnd Bergmann

Вторник, 4 марта 2014, 16:46 +01:00 от Thomas Gleixner <[email protected]>:

Quoted 13 lines · Alexander Shiyan
Quoted 11 lines

Вторник, 4 марта 2014, 12:05 +01:00 от Thomas Gleixner <[email protected]>:

Quoted 8 lines · Alexander Shiyan
Quoted 4 lines

This will allow to use dummy IRQ handler no_action() from drivers compiled as module. For example, dummy handler is could be used for drivers that use ARM FIQ interrupts.

And why exactly requires a driver which uses ARM FIQ interrupts the no_action implementation?

Quoted 8 lines
Quoted 3 lines

FIQ Interrupt handler is not used in this function. In FIQ case this is just a dummy declaration. Real handler is assigned by using the set_fiq_handler().

Why do you need a dummy declaration at all?

set_fiq_handler() is completely detached from the generic interrupt subsystem.

Some limitations of hardware, such as bit interleaving for normal and FIQ interrupts for mask/status registers, led to the implement single driver for interrupt handling.
As a result, all interrupts can be described equally, and single mechanism is used for the request/free and enable/disable.
Correct me if I'm wrong. Driver that implements it, resent several times and expect comments within 3 months [1], you are the only one person, Thomas, specified as maintainer for this subsystem.
I repeat, if I'm wrong in the implementation, let's fix this.

[1]: http://marc.info/?l=linux-arm-kernel&m=139132855024699

Thanks.
---
���{.n�+�������+%�����ݶ��w��{.n�+����{��G�����{ay�ʇڙ�,j��f���h��������z_�(�階�ݢj"���m������G������?����&���~��iO��z��v�^�m���� ������?�I�

#5 lore raw
Quoted 35 lines · Alexander Shiyan

+сс Arnd Bergmann

Вторник, 4 марта 2014, 16:46 +01:00 от Thomas Gleixner <[email protected]>:

Quoted 13 lines · Alexander Shiyan
Quoted 11 lines

Вторник, 4 марта 2014, 12:05 +01:00 от Thomas Gleixner <[email protected]>:

Quoted 8 lines · Alexander Shiyan
Quoted 4 lines

This will allow to use dummy IRQ handler no_action() from drivers compiled as module. For example, dummy handler is could be used for drivers that use ARM FIQ interrupts.

And why exactly requires a driver which uses ARM FIQ interrupts the no_action implementation?

Quoted 8 lines
Quoted 3 lines

FIQ Interrupt handler is not used in this function. In FIQ case this is just a dummy declaration. Real handler is assigned by using the set_fiq_handler().

Why do you need a dummy declaration at all?

set_fiq_handler() is completely detached from the generic interrupt subsystem.

Some limitations of hardware, such as bit interleaving for normal and FIQ interrupts for mask/status registers, led to the implement single driver for interrupt handling.
As a result, all interrupts can be described equally, and single mechanism is used for the request/free and enable/disable.
Correct me if I'm wrong. Driver that implements it, resent several times and expect comments within 3 months [1], you are the only one person, Thomas, specified as maintainer for this subsystem.
I repeat, if I'm wrong in the implementation, let's fix this.

Quoted 1 line

[1]: http://marc.info/?l=linux-arm-kernel&m=139132855024699

Lemme find this and review it.

Thanks,

tglx