drm/omap: dsi: Add missing IRQF_ONESHOT
Subsystems (3)
PATCH 1/1 drm/omap: dsi: Add missing IRQF_ONESHOT
fixed the following coccicheck:
./drivers/gpu/drm/omapdrm/dss/dsi.c:4329:7-27: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT
Make sure threaded IRQs without a primary handler are always request with IRQF_ONESHOT
--- drivers/gpu/drm/omapdrm/dss/dsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/omapdrm/dss/dsi.c +1 -1
@@ -4326,7 +4326,7 @@ static int omap_dsi_register_te_irq(struct dsi_data *dsi,irq_set_status_flags (te_irq,IRQ_NOAUTOEN ); - err =request_threaded_irq (te_irq,NULL , omap_dsi_te_irq_handler, + err =request_threaded_irq (te_irq |IRQF_ONESHOT ,NULL , omap_dsi_te_irq_handler,IRQF_TRIGGER_RISING ,"TE" , dsi);if (err) {dev_err (dsi->dev,"request irq failed with %d\n" , err);
Signature · 6 lines
1.8.3.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 19 lines · Yang Li
fixed the following coccicheck:
./drivers/gpu/drm/omapdrm/dss/dsi.c:4329:7-27: ERROR: Threaded IRQ with no primary handler requested withoutIRQF_ONESHOTMake sure threaded IRQs without a primary handler are always request with
IRQF_ONESHOTReported-by Abaci Robot <[email protected]>Signed-off-by Yang Li <[email protected]>--- drivers/gpu/drm/omapdrm/dss/dsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/omapdrm/dss/dsi.c +0
-0
drivers/gpu/drm/omapdrm/dss/dsi.c static int omap_dsi_register_te_irq(struct dsi_data *dsi, · line 4330
Quoted 6 lines
drivers/gpu/drm/omapdrm/dss/dsi.c +1
-1@@ -4326,7 +4326,7 @@ static int omap_dsi_register_te_irq(struct dsi_data *dsi,irq_set_status_flags (te_irq,IRQ_NOAUTOEN ); - err =request_threaded_irq (te_irq,NULL , omap_dsi_te_irq_handler, + err =request_threaded_irq (te_irq |IRQF_ONESHOT ,NULL , omap_dsi_te_irq_handler,IRQF_TRIGGER_RISING ,"TE" , dsi);
Did you test it? There are several patches like this all over the tree so it looks like "let's fix everything from Coccinelle". It's a trend recently... multiple people send these patches. The point is that you should not blindly follow coccinelle but adjust the change for real case (e.g. is it a nested interrupt). Without this consideration and testing - NACK.
Best regards,
Krzysztof
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
I am so sorry for my mistakes.
I am a newbie trying to learn how to fix errors found by Coccinelle.
Currently, I just run scripts/checkpatch.pl.
I will do basic build with the patch before sending it in the next time. Thank you for your advice.
------------------------------------------------------------------
发件人:Krzysztof Kozlowski <[email protected]>
发送时间:2021年4月16日(星期五) 17:07
收件人:Yang Li <[email protected]>
抄 送:tomba <[email protected]>; airlied <[email protected]>; daniel <[email protected]>; dri-devel <[email protected]>; [email protected] <[email protected]> 主 题:Re: [PATCH] drm/omap: dsi: Add missing IRQF_ONESHOT
Quoted 19 lines · Yang Li
fixed the following coccicheck:
./drivers/gpu/drm/omapdrm/dss/dsi.c:4329:7-27: ERROR: Threaded IRQ with no primary handler requested withoutIRQF_ONESHOTMake sure threaded IRQs without a primary handler are always request with
IRQF_ONESHOTReported-by Abaci Robot <[email protected]>Signed-off-by Yang Li <[email protected]>--- drivers/gpu/drm/omapdrm/dss/dsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/omapdrm/dss/dsi.c +0
-0
drivers/gpu/drm/omapdrm/dss/dsi.c static int omap_dsi_register_te_irq(struct dsi_data *dsi, · line 4330
Quoted 6 lines
drivers/gpu/drm/omapdrm/dss/dsi.c +1
-1@@ -4326,7 +4326,7 @@ static int omap_dsi_register_te_irq(struct dsi_data *dsi,irq_set_status_flags (te_irq,IRQ_NOAUTOEN ); - err =request_threaded_irq (te_irq,NULL , omap_dsi_te_irq_handler, + err =request_threaded_irq (te_irq |IRQF_ONESHOT ,NULL , omap_dsi_te_irq_handler,IRQF_TRIGGER_RISING ,"TE" , dsi);
Did you test it? There are several patches like this all over the tree so it looks like "let's fix everything from Coccinelle". It's a trend recently... multiple people send these patches. The point is that you should not blindly follow coccinelle but adjust the change for real case (e.g. is it a nested interrupt). Without this consideration and testing - NACK.
Best regards,
Krzysztof
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel