* [PATCH] net: ethernet: stmmac: manage the get_irq probe defer case
@ 2019-04-24 9:35 Fabien Dessenne
2019-04-24 9:48 ` Alexandre Torgue
2019-04-26 15:26 ` David Miller
0 siblings, 2 replies; 3+ messages in thread
From: Fabien Dessenne @ 2019-04-24 9:35 UTC (permalink / raw)
To: Giuseppe Cavallaro, Alexandre Torgue, Jose Abreu,
David S . Miller, Maxime Coquelin, Christophe Roullier, netdev,
linux-stm32, linux-arm-kernel, linux-kernel
Cc: Fabien Dessenne
Manage the -EPROBE_DEFER error case for "stm32_pwr_wakeup" IRQ.
Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com>
---
drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c
index 062a600f..2142853 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c
@@ -333,6 +333,9 @@ static int stm32mp1_parse_data(struct stm32_dwmac *dwmac,
*/
dwmac->irq_pwr_wakeup = platform_get_irq_byname(pdev,
"stm32_pwr_wakeup");
+ if (dwmac->irq_pwr_wakeup == -EPROBE_DEFER)
+ return -EPROBE_DEFER;
+
if (!dwmac->clk_eth_ck && dwmac->irq_pwr_wakeup >= 0) {
err = device_init_wakeup(&pdev->dev, true);
if (err) {
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] net: ethernet: stmmac: manage the get_irq probe defer case
2019-04-24 9:35 [PATCH] net: ethernet: stmmac: manage the get_irq probe defer case Fabien Dessenne
@ 2019-04-24 9:48 ` Alexandre Torgue
2019-04-26 15:26 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: Alexandre Torgue @ 2019-04-24 9:48 UTC (permalink / raw)
To: Fabien Dessenne, Giuseppe Cavallaro, Jose Abreu,
David S . Miller, Maxime Coquelin, Christophe Roullier, netdev,
linux-stm32, linux-arm-kernel, linux-kernel
Hi
On 4/24/19 11:35 AM, Fabien Dessenne wrote:
> Manage the -EPROBE_DEFER error case for "stm32_pwr_wakeup" IRQ.
>
> Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com>
> ---
> drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c
> index 062a600f..2142853 100644
> --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c
> +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c
> @@ -333,6 +333,9 @@ static int stm32mp1_parse_data(struct stm32_dwmac *dwmac,
> */
> dwmac->irq_pwr_wakeup = platform_get_irq_byname(pdev,
> "stm32_pwr_wakeup");
> + if (dwmac->irq_pwr_wakeup == -EPROBE_DEFER)
> + return -EPROBE_DEFER;
> +
> if (!dwmac->clk_eth_ck && dwmac->irq_pwr_wakeup >= 0) {
> err = device_init_wakeup(&pdev->dev, true);
> if (err) {
>
Acked-by: Alexandre TORGUE <alexandre.torgue@st.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] net: ethernet: stmmac: manage the get_irq probe defer case
2019-04-24 9:35 [PATCH] net: ethernet: stmmac: manage the get_irq probe defer case Fabien Dessenne
2019-04-24 9:48 ` Alexandre Torgue
@ 2019-04-26 15:26 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2019-04-26 15:26 UTC (permalink / raw)
To: fabien.dessenne
Cc: peppe.cavallaro, alexandre.torgue, joabreu, mcoquelin.stm32,
christophe.roullier, netdev, linux-stm32, linux-arm-kernel,
linux-kernel
From: Fabien Dessenne <fabien.dessenne@st.com>
Date: Wed, 24 Apr 2019 11:35:49 +0200
> Manage the -EPROBE_DEFER error case for "stm32_pwr_wakeup" IRQ.
>
> Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com>
Applied, thank you.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-04-26 15:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-24 9:35 [PATCH] net: ethernet: stmmac: manage the get_irq probe defer case Fabien Dessenne
2019-04-24 9:48 ` Alexandre Torgue
2019-04-26 15:26 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).