Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp583892yba; Wed, 24 Apr 2019 06:25:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqxKLWZj7O56KrtT0kcL3E4tAFb3bTFCFozsgAYDDRz2vmzQnldReuH8vwZKnQ/kOJg7QBgo X-Received: by 2002:aa7:8518:: with SMTP id v24mr26186716pfn.219.1556112316405; Wed, 24 Apr 2019 06:25:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556112316; cv=none; d=google.com; s=arc-20160816; b=ufEQS8STANDlHsROlaHUHT/uXK18JbPqP/q5WhqmgMqm1CMsnsvAk7xWRlLMhP1FXi gUAb2BlI92O1cl4sNUWj45aSTb5AwmdrzD/D5ZxJ6DN4aXMCNQeX67KrW1TI4EiqPmSN HoX4XWzvFHy7FlXG11Z/mZRX6MhfOFu75Ii1Ok/V41bCGo4ErBdBF4jQ5gEkIWUnlGZL t5JU5vwnDnbxcjT29qn+6g3G/iQTKkPCxuvAhTLJWxpnnx8+lC7s6PkbRGMDiA+Idi+9 YabRj52vxhn2ECYS7+IerRTTcUwhowHO25kERBkneVZXNlOgfm8mED9nW356CgxQiSN8 TjdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=hK5t7y+11Q/jBOjgXpZKT6Kzk/a5+Fki4gzrmRWBWus=; b=iORAyEe6hgwJXFUjt/f8mTKpV6tQxzPp46sJu2QCEBPzYw/YJukdTxr+4HzEHkt/xZ Kk7y3YWBc0qiKu7KuTMjwiYosE+lC+X0Vei7lXNgYDLZXxT4QurFnvIeW/YsWrUVcGbA QSeTs+djlqHMS6B59mmN1gUY4TRQ+U5GCxfP+QtuKuknTPwMRhm+KhtqXVLhQrcTS3eP Mrpt5iPbIQS33ae7hj9s9hRTlfrzgJBdiwVgFa0Ly01EfcUM/iQyuU6jvsds99tnGgnG Qtd26y4l6NQ1eINSo/TkSlsd+A3u/fIhraVZ8UJKPTY2HP4fkhW95aKvmQ2dAaDuFDIG B2dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=KmlRDeTO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 2si18156949pld.334.2019.04.24.06.25.01; Wed, 24 Apr 2019 06:25:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=KmlRDeTO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727945AbfDXJgO (ORCPT + 99 others); Wed, 24 Apr 2019 05:36:14 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:44518 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726480AbfDXJgO (ORCPT ); Wed, 24 Apr 2019 05:36:14 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x3O9WKkc009571; Wed, 24 Apr 2019 11:36:01 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=STMicroelectronics; bh=hK5t7y+11Q/jBOjgXpZKT6Kzk/a5+Fki4gzrmRWBWus=; b=KmlRDeTOQrhw4ziBx+keBfZ83Jz1TeCeu6VKfinPWH54nkhmu+n4XgyYHtChNmqmAnfP yiuphLTJ8iq6PD4FQdDzYPP+mPcto6uB0MmUg7JU2ybQ8OCfmIjA3MbQmxcZS/X0Vd5f yVcnfyD7c2Fm/sQm8Topoq+LVL3l2/bdWIXDBDrsdXA2IHVC0WZoVsFI9ZYUY7iggzPz Jj/EbzVStiv6tnQdR+T0PN/++YCc2u+nfOSWVOBweFIsEBa48D5yXOmZAysANomr2lgA 6C0S9BMM7rVv3BoWZtvTNAg8HgxXMhY+GqyvqdX2RvjaStmZbHa3eaOhJo9XLQkq+TUI hA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2rytad5m1p-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 24 Apr 2019 11:36:01 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 88DEC31; Wed, 24 Apr 2019 09:36:00 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas24.st.com [10.75.90.94]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 2D59915AF; Wed, 24 Apr 2019 09:36:00 +0000 (GMT) Received: from SAFEX1HUBCAS23.st.com (10.75.90.47) by Safex1hubcas24.st.com (10.75.90.94) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 24 Apr 2019 11:36:00 +0200 Received: from localhost (10.201.23.25) by webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 24 Apr 2019 11:35:59 +0200 From: Fabien Dessenne To: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S . Miller" , Maxime Coquelin , Christophe Roullier , , , , CC: Fabien Dessenne Subject: [PATCH] net: ethernet: stmmac: manage the get_irq probe defer case Date: Wed, 24 Apr 2019 11:35:49 +0200 Message-ID: <1556098549-18385-1-git-send-email-fabien.dessenne@st.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.201.23.25] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-04-24_07:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Manage the -EPROBE_DEFER error case for "stm32_pwr_wakeup" IRQ. Signed-off-by: Fabien Dessenne --- 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