All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] PCI: tegra: move to use request_irq by IRQF_NO_AUTOEN flag
@ 2021-05-13 12:03 Tian Tao
  2021-05-13 12:23 ` Krzysztof Wilczyński
  0 siblings, 1 reply; 2+ messages in thread
From: Tian Tao @ 2021-05-13 12:03 UTC (permalink / raw)
  To: p.zabel; +Cc: linux-pci, linux-tegra, Tian Tao

request_irq() after setting IRQ_NOAUTOEN as below
irq_set_status_flags(irq, IRQ_NOAUTOEN);
request_irq(dev, irq...);
can be replaced by request_irq() with IRQF_NO_AUTOEN flag.

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
---
 drivers/pci/controller/dwc/pcie-tegra194.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/pci/controller/dwc/pcie-tegra194.c b/drivers/pci/controller/dwc/pcie-tegra194.c
index bafd2c6..7349926 100644
--- a/drivers/pci/controller/dwc/pcie-tegra194.c
+++ b/drivers/pci/controller/dwc/pcie-tegra194.c
@@ -2021,14 +2021,13 @@ static int tegra_pcie_config_ep(struct tegra_pcie_dw *pcie,
 		return -ENOMEM;
 	}
 
-	irq_set_status_flags(pcie->pex_rst_irq, IRQ_NOAUTOEN);
-
 	pcie->ep_state = EP_STATE_DISABLED;
 
 	ret = devm_request_threaded_irq(dev, pcie->pex_rst_irq, NULL,
 					tegra_pcie_ep_pex_rst_irq,
 					IRQF_TRIGGER_RISING |
-					IRQF_TRIGGER_FALLING | IRQF_ONESHOT,
+					IRQF_TRIGGER_FALLING |
+					IRQF_ONESHOT | IRQF_NO_AUTOEN
 					name, (void *)pcie);
 	if (ret < 0) {
 		dev_err(dev, "Failed to request IRQ for PERST: %d\n", ret);
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] PCI: tegra: move to use request_irq by IRQF_NO_AUTOEN flag
  2021-05-13 12:03 [PATCH] PCI: tegra: move to use request_irq by IRQF_NO_AUTOEN flag Tian Tao
@ 2021-05-13 12:23 ` Krzysztof Wilczyński
  0 siblings, 0 replies; 2+ messages in thread
From: Krzysztof Wilczyński @ 2021-05-13 12:23 UTC (permalink / raw)
  To: Tian Tao; +Cc: p.zabel, linux-pci, linux-tegra

Hi Tian,

Thank you for sending the patch over!

> request_irq() after setting IRQ_NOAUTOEN as below
> irq_set_status_flags(irq, IRQ_NOAUTOEN);
> request_irq(dev, irq...);
> can be replaced by request_irq() with IRQF_NO_AUTOEN flag.

A few comments.

The commit message is a bit terse and the subject could be improved
a little.  Does this change fixes an issue with the driver?  Why is this
flag needed?  The commit message could explain better why this change is
needed, etc.

Krzysztof

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-13 12:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-13 12:03 [PATCH] PCI: tegra: move to use request_irq by IRQF_NO_AUTOEN flag Tian Tao
2021-05-13 12:23 ` Krzysztof Wilczyński

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.