Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2241255pxa; Fri, 7 Aug 2020 06:45:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJya0q9uz65M3VPoA7lSvBSgNaPBlNjVwDFvdL6TK49RGLDW0TkkR46hKr2nYZrBhdQNhA37 X-Received: by 2002:a50:fc0e:: with SMTP id i14mr8699718edr.346.1596807900581; Fri, 07 Aug 2020 06:45:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596807900; cv=none; d=google.com; s=arc-20160816; b=e/nHNO65MjRqqLFzHDAPAK9TcMM3gnlWitCmxlDw5jWGBJc31e03rEpmZJM2/FbXw8 k3UjchpsYmEIwdCXoYIZyJaKC0PYIxX2ut5Zz8Fxqdy1dqimNqZfFiLPymcO5+tP/BeG qrHiDwTlQ8irc+f4BgHYrbOXi43nTaJTpfVUmRLFU76jr9OAxkJ/GOpVlMOLSlHRvPd7 507dq/Z5UyG/wfv8VaZa4B3N/hOKUWbWoa0DHxXOwGXsUHPK9wMiEaAvB3r1jGFU4STf AyUeY1GVws2vr5GmJ144zvZvQFW/WNNc5aw8X84QQC09LQlWge6A2I914tbz37y6iait g1hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:mail-followup-to:message-id:subject:cc:to :from:date:dkim-signature; bh=yrH1sOj/tTHQBQooVD/Sbc7bjAl/F6ZnmtA5MxyZscw=; b=npDl93Vp3RYWhg1IhLO9Jqs9IZNqHPfTEeOGHr7tM+umoR2ByGyRp/V7qUjTuplNmE 6A/Jd6zNlgq5LuITou7uZrvD20z2B0wAcLDX8KurZ/JOCN9ZN3s8AZpullIiVYdWh+CP /PJXm4Y/CjvHqOEoPjOlRHob8JoGkib8bVvgkUO9fObZ2RmKlws90mmSi2WZPAmAj4nw b9h4VdyZe+37l2aL9ItnKguaKu8Qu82aGb8hjs/cofApc5+PaPEYpSKv20I9FlZaicc6 MaV2eZcoKqNdTxwQmafVlpF5HE/tmJI0/mT4eZC+KEpe081Gu7iWAXS87XyO0mNVC0hJ DXTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=1TXy3bfK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g9si5100814edm.327.2020.08.07.06.44.35; Fri, 07 Aug 2020 06:45:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=1TXy3bfK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726400AbgHGNnl (ORCPT + 99 others); Fri, 7 Aug 2020 09:43:41 -0400 Received: from mx07-00178001.pphosted.com ([185.132.182.106]:63780 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726282AbgHGNn1 (ORCPT ); Fri, 7 Aug 2020 09:43:27 -0400 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 077Dax9v009897; Fri, 7 Aug 2020 15:42:56 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=STMicroelectronics; bh=yrH1sOj/tTHQBQooVD/Sbc7bjAl/F6ZnmtA5MxyZscw=; b=1TXy3bfK6Radyo6qP7mwfBoiv4mSCFlK9wAjuGFdzpWQwBC7TzyDgX1uwWiWLdkFb8Ua UZPhX/C7tQyoxVLuhUMj/d/trbpXar5qlSRnFG/u4OSOx7P9XI/ObcCPspOozBJ9ctRK ffvFkUQ9mgVLdAlU2dQQ7Ae7plM8B73omFpdHZC/FJ7DDKHTYQ0xnH9aZhqBXPBeecTJ qZoubeEuB67smJsqXzLTJDTNI/XJ6Gw/kWZwYHcRlwGVKp9jl/bbyI6Yzb3XHDs0wBo/ nWTegWxkb11c/LPIw7l+3ov+MXKTTxyyf/qFEzNQH4YRhvhVU5DlzipmZWKjsMcG7ATE hA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 32n6sbj1cw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 07 Aug 2020 15:42:56 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 7965310002A; Fri, 7 Aug 2020 15:42:56 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag3node2.st.com [10.75.127.8]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 662972B35EB; Fri, 7 Aug 2020 15:42:56 +0200 (CEST) Received: from gnbcxd0016.gnb.st.com (10.75.127.48) by SFHDAG3NODE2.st.com (10.75.127.8) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 7 Aug 2020 15:42:55 +0200 Date: Fri, 7 Aug 2020 15:42:54 +0200 From: Alain Volmat To: Mark Brown CC: , , , , , , , Subject: Re: [PATCH 02/18] spi: stm32-spi: defer probe for reset Message-ID: <20200807134254.GC12946@gnbcxd0016.gnb.st.com> Mail-Followup-To: Mark Brown , amelie.delaunay@st.com, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-spi@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, fabrice.gasnier@st.com References: <1596610933-32599-1-git-send-email-alain.volmat@st.com> <1596610933-32599-3-git-send-email-alain.volmat@st.com> <20200805104906.GB5556@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20200805104906.GB5556@sirena.org.uk> X-Disclaimer: ce message est personnel / this message is private X-Originating-IP: [10.75.127.48] X-ClientProxiedBy: SFHDAG8NODE3.st.com (10.75.127.24) To SFHDAG3NODE2.st.com (10.75.127.8) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-08-07_09:2020-08-06,2020-08-07 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 05, 2020 at 11:49:06AM +0100, Mark Brown wrote: > On Wed, Aug 05, 2020 at 09:01:57AM +0200, Alain Volmat wrote: > > > - rst = devm_reset_control_get_exclusive(&pdev->dev, NULL); > > - if (!IS_ERR(rst)) { > > + rst = devm_reset_control_get_optional_exclusive(&pdev->dev, NULL); > > + if (rst) { > > + if (IS_ERR(rst)) { > > + ret = PTR_ERR(rst); > > + if (ret != -EPROBE_DEFER) > > + dev_err(&pdev->dev, "reset get failed: %d\n", > > + ret); > > + goto err_clk_disable; > > + } > > This will not provide any diagnostics when deferring which isn't very > helpful if there's issues. Do you mean that a message when deferring would be needed ? I am worrying that this would lead to having too much noise during boot since probe deferring is kinda common. Of course it can also be due to a bad configuration of the kernel as well but having looked around I think that usually driver are rather silent in case of deferring.