Skip to contentSkip to conversation

megaraid_sas: remove undefined ENABLE_IRQ_POLL macro

PATCH In review Chandrakanth Patil 2 participants 3 messages Jul 15, 2020

Subsystems (3)
lore
Share & tools
lore

Chandrakanth Patil

author maintainer
#0 lore raw

PATCH 1/1 megaraid_sas: remove undefined ENABLE_IRQ_POLL macro

Issue:
As ENABLE_IRQ_POLL macro is undefined, the check for ENABLE_IRQ_POLL macro in ISR will always be false leads to irq polling non-functional.

Fix:
Remove ENABLE_IRQ_POLL check from isr

Fixes a6ffd5bf6819 ("scsi: megaraid_sas: Call disable_irq from process IRQ")
Cc <[email protected]> # v5.3+
---
 drivers/scsi/megaraid/megaraid_sas_fusion.c | 2 --
 1 file changed, 2 deletions(-)
drivers/scsi/megaraid/megaraid_sas_fusion.c +0 -2
index bb34278..0824410 100644
@@ -3740,10 +3740,8 @@ static irqreturn_t megasas_isr_fusion(int irq, void *devp)
 	if (instance->mask_interrupts)
 		return IRQ_NONE;
 
-#if defined(ENABLE_IRQ_POLL)
 	if (irq_context->irq_poll_scheduled)
 		return IRQ_HANDLED;
-#endif
 
 	if (!instance->msix_vectors) {
 		mfiStatus = instance->instancet->clear_intr(instance);
Signature · 1 line
2.9.5
#1 lore raw
Quoted 7 lines · Chandrakanth Patil

Issue:
As ENABLE_IRQ_POLL macro is undefined, the check for ENABLE_IRQ_POLL macro in ISR will always be false leads to irq polling non-functional.

Fix:
Remove ENABLE_IRQ_POLL check from isr

Quoted 7 lines
Fixes a6ffd5bf6819 ("scsi: megaraid_sas: Call disable_irq from process IRQ")
Cc <[email protected]> # v5.3+
---
 drivers/scsi/megaraid/megaraid_sas_fusion.c | 2 --
 1 file changed, 2 deletions(-)

Why are you not sending this to the scsi developers / maintainers?

thanks,

greg k-h

author maintainer
#2 lore raw

Hi Greg,

Sorry for the inconvenience. While circulating patch internally (within company) with cc stable enabled in patch header has caused this problem. I have sent a new patch including appropriate scsi developers and maintainers.

Thanks,
Chandrakanth Patil

Quoted 23 lines · Greg KH
Quoted 7 lines · Chandrakanth Patil

Issue:
As ENABLE_IRQ_POLL macro is undefined, the check for ENABLE_IRQ_POLL macro in ISR will always be false leads to irq polling non-functional.

Fix:
Remove ENABLE_IRQ_POLL check from isr

Quoted 8 lines
Fixes a6ffd5bf6819 ("scsi: megaraid_sas: Call disable_irq from process

IRQ")

---
 drivers/scsi/megaraid/megaraid_sas_fusion.c | 2 --
 1 file changed, 2 deletions(-)

Why are you not sending this to the scsi developers / maintainers?

thanks,

greg k-h

Signature · 2 lines
Regards,
Chandrakanth Patil