Skip to contentSkip to conversation

drm/komeda: Use IRQ_RETVAL shorthand in d71_irq_handler

PATCH Applied Mihail Atanassov 3 participants 3 messages Sep 20, 2019 – Oct 1, 2019

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/komeda: Use IRQ_RETVAL shorthand in d71_irq_handler

No change in behaviour; IRQ_RETVAL is about twice as popular as manually writing out the ternary.

---
 drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c +1 -1
index d567ab7ed314..1b42095969e7 100644
@@ -195,7 +195,7 @@ d71_irq_handler(struct komeda_dev *mdev, struct komeda_events *evts)
 	if (gcu_status & GLB_IRQ_STATUS_PIPE1)
 		evts->pipes[1] |= get_pipeline_event(d71->pipes[1], gcu_status);
 
-	return gcu_status ? IRQ_HANDLED : IRQ_NONE;
+	return IRQ_RETVAL(gcu_status);
 }
 
 #define ENABLED_GCU_IRQS	(GCU_IRQ_CVAL0 | GCU_IRQ_CVAL1 | \
Signature · 1 line
2.23.0
#1 lore raw
Quoted 13 lines · Mihail Atanassov

No change in behaviour; IRQ_RETVAL is about twice as popular as manually writing out the ternary.

---
 drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c +0 -0
index d567ab7ed314..1b42095969e7 100644

drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c d71_irq_handler(struct komeda_dev *mdev, struct komeda_events *evts) · line 198

Quoted 5 lines
drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c +1 -1
@@ -195,7 +195,7 @@ d71_irq_handler(struct komeda_dev *mdev, struct komeda_events *evts)
 	if (gcu_status & GLB_IRQ_STATUS_PIPE1)
 		evts->pipes[1] |= get_pipeline_event(d71->pipes[1], gcu_status);
 
-	return gcu_status ? IRQ_HANDLED : IRQ_NONE;
+	return IRQ_RETVAL(gcu_status);

Hi Mihail:

Thank you for the patch.

Quoted 5 lines
drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c +0 -0
 }
 
 #define ENABLED_GCU_IRQS	(GCU_IRQ_CVAL0 | GCU_IRQ_CVAL1 | \
Signature · 1 line
2.23.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Applied
#2 lore raw
Quoted 17 lines · james qian wang (Arm Technology China)
Quoted 16 lines · Mihail Atanassov

No change in behaviour; IRQ_RETVAL is about twice as popular as manually writing out the ternary.

---
 drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c +0 -0
index d567ab7ed314..1b42095969e7 100644
@@ -195,7 +195,7 @@ d71_irq_handler(struct komeda_dev *mdev, struct komeda_events *evts)
 	if (gcu_status & GLB_IRQ_STATUS_PIPE1)
 		evts->pipes[1] |= get_pipeline_event(d71->pipes[1], gcu_status);
 
Quoted 8 lines

drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c d71_irq_handler(struct komeda_dev *mdev, struct komeda_events *evts) · line 198

Quoted 2 lines
drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c +1 -1
-	return gcu_status ? IRQ_HANDLED : IRQ_NONE;
+	return IRQ_RETVAL(gcu_status);

Hi Mihail:

Thank you for the patch.

Pushed to drm-misc-next - 4b39582a8fb3c749f0fa96ec920d138f61bf00d6

Quoted 10 lines
Quoted 6 lines
drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c +0 -0
 }
 
 #define ENABLED_GCU_IRQS	(GCU_IRQ_CVAL0 | GCU_IRQ_CVAL1 | \
Signature · 1 line
2.23.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel