Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp584055yba; Wed, 24 Apr 2019 06:25:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqwPVkO9vUKB2l89XSs/7T5OWpTfLZNGb7MAF4WPZ2aWfLJOQvFK/tpOUwF5xJK+mXtbcTfa X-Received: by 2002:a17:902:7589:: with SMTP id j9mr32832462pll.287.1556112326285; Wed, 24 Apr 2019 06:25:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556112326; cv=none; d=google.com; s=arc-20160816; b=Ncq5fo+xi1yZHGTvnuIVeflhBq40AFXX1Ub4jeCXHWNjz16w3lNzNtmtTSLM+fBB/P qfh1fvCrD8C/znFttYdoyVYToymnN6WiL6pqhQ6n1FsTYsDScr4dDuyGOTm43NXu6r9o iGPsoLQaWYf7hfazuFdgFZA04WFcOvybrJfpMk9m9WuD+McMyqjePyKkmjVmbeV24+p8 oNw2k0se0V7rnWAtXzKnVvngojgLfzFFxl3HDN05+a2M8P3M8a/e4kiTyZawHPrLLtUV EcFM1IZKwEIdIrowvD3OjEUN5WPIykP3Ek7dVa7Pi15E4vyT3OgYzX1YUKnBH9B3oXJ+ Q8RQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=3+3Yo1fAoPpKDIIXEhQxba/BGRXMf3UPLyV6NgXqTag=; b=AZvDfV6HrxOROkIU7jr0QLH0q/sJz9C4VsERgDsnpXfAZ1JI9GZe7jpHG1Q08M1jx0 AtAbBhCACTQxztqZCTAtcG3fS7nxlDVYA0qFVqjaBJxqvseh9aIqAWS3TYK4Fz3EePJj p8n+NgYWbJF9Ups/oFjIfUJaSKLoqGGbaGtT1CzDNrSN7+PddnyGYnbHFnV1rH3Ub+vQ NQ6aaPcL2TTqhutJ4FiPUvOLM8Jm9/2H5RiFPgXTk9P77HDNOz/fBjxHy29mMx9rK/vG cOLJ+OqNiH33OwUd9iz4IhJyb2ihaGrXdm+PPFls/WG8lY9AshCgKNdd7k6rVepvspiK eGng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=ox7ixcP7; 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 d20si18299294pll.322.2019.04.24.06.25.10; Wed, 24 Apr 2019 06:25:26 -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=ox7ixcP7; 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 S1728250AbfDXJsZ (ORCPT + 99 others); Wed, 24 Apr 2019 05:48:25 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:9372 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726274AbfDXJsT (ORCPT ); Wed, 24 Apr 2019 05:48:19 -0400 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x3O9hjCd003172; Wed, 24 Apr 2019 11:48:09 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=subject : to : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=STMicroelectronics; bh=3+3Yo1fAoPpKDIIXEhQxba/BGRXMf3UPLyV6NgXqTag=; b=ox7ixcP7S/CETT3szdR/P5tn2by6I0EEdb6QolNiBHRYMrz+O/ofbn3dYZmwhZBAzYsf VrXuf8RkiWvmOdDf5YvGKF3pkUyrac3ole8vYmtUV7Hkls2jR/J/rFkUB2pa0f0gfg+m smIVZ4BmZ04MOIdHOvCSbMTew/ZHAixkFgNQZlLMG9E1yIdk9icr7xAu2XxB2J+77Cdf mLSxjIlheB6LRjHaAiE0R91/PTAyY3ZA2TjBeR/bqmZcz1Eql4rWoRkzAHClVTY99yDV krp1+xHdTRDRbPd4XL9KX+fmINUX5STkeDUzy0zWEZysZEpLJQfcBL24abc2glJ8ojZ6 WQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2ryrvxcptq-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 24 Apr 2019 11:48:09 +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 8B5D03F; Wed, 24 Apr 2019 09:48:07 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag3node2.st.com [10.75.127.8]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 5E19915D4; Wed, 24 Apr 2019 09:48:07 +0000 (GMT) Received: from [10.48.0.204] (10.75.127.47) by SFHDAG3NODE2.st.com (10.75.127.8) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 24 Apr 2019 11:48:06 +0200 Subject: Re: [PATCH] net: ethernet: stmmac: manage the get_irq probe defer case To: Fabien Dessenne , Giuseppe Cavallaro , Jose Abreu , "David S . Miller" , Maxime Coquelin , Christophe Roullier , , , , References: <1556098549-18385-1-git-send-email-fabien.dessenne@st.com> From: Alexandre Torgue Message-ID: Date: Wed, 24 Apr 2019 11:48:06 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <1556098549-18385-1-git-send-email-fabien.dessenne@st.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.47] X-ClientProxiedBy: SFHDAG6NODE2.st.com (10.75.127.17) To SFHDAG3NODE2.st.com (10.75.127.8) 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 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 > --- > 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