Skip to contentSkip to conversation

phy: cpcap-usb: Use IRQF_ONESHOT

PATCH Applied Zou Wei 2 participants 2 messages Oct 28, 2020 – Oct 29, 2020 Generic PHY framework

lore
Share & tools
lore

Zou Wei

author
#0 lore raw

PATCH 1/1 phy: cpcap-usb: Use IRQF_ONESHOT

Fixes coccicheck error:

./drivers/phy/motorola/phy-cpcap-usb.c:365:9-34: ERROR:
Threaded IRQ with no primary handler requested without IRQF_ONESHOT

---
 drivers/phy/motorola/phy-cpcap-usb.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/phy/motorola/phy-cpcap-usb.c +2 -1
index 089db0d..442522b 100644
@@ -364,7 +364,8 @@ static int cpcap_usb_init_irq(struct platform_device *pdev,
 
 	error = devm_request_threaded_irq(ddata->dev, irq, NULL,
 					  cpcap_phy_irq_thread,
-					  IRQF_SHARED,
+					  IRQF_SHARED |
+					  IRQF_ONESHOT,
 					  name, ddata);
 	if (error) {
 		dev_err(ddata->dev, "could not get irq %s: %i\n",
Signature · 1 line
2.6.2
maintainer Applied
#1 lore raw
Quoted 4 lines · Zou Wei

Fixes coccicheck error:

./drivers/phy/motorola/phy-cpcap-usb.c:365:9-34: ERROR:
Threaded IRQ with no primary handler requested without IRQF_ONESHOT

Applied, thanks

Signature · 1 line
~Vinod