From patchwork Wed Oct 7 16:02:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hugues FRUCHET X-Patchwork-Id: 11820901 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 02EC1618 for ; Wed, 7 Oct 2020 16:03:19 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8DD71216C4 for ; Wed, 7 Oct 2020 16:03:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="C7Jwiqnx"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=st.com header.i=@st.com header.b="0aJcimBL" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8DD71216C4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=st.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=D1pgkkbOAdjlKCdaiL4iTTkNuKE5aNtX/QOWsws23Fw=; b=C7Jwiqnx1fo9Brw0CtoCm/+li/ sX23ytMviqxNelAAMOIDZmeKXu/mdkCs7sG5eXlwu7kjeH+nlxpuV9JaMpWuD98zWaUiREmgRq3od syrDfs1uaNgNETIjPX1DlcMg6EfXygVPqzRa+79hXlzJkx6I0FD7+MJerO+ZVWxdZFu5bZqtY5CQX znt0ZJp9JUOscwCow/QqAbOioQAk0DXanrnrYxNv3iuPXRW3R7gVsokoDfzail/6TDslz6XqRhsiu VP/LzBZxWu+FANM9TZcvWjEamYqFmQniTEiGn2wI4HUgjCwvKCp9kNTnOqF0fcmeBDpRMh/Xi63c/ vmdgW91A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kQBuC-0002uH-Al; Wed, 07 Oct 2020 16:03:04 +0000 Received: from mx07-00178001.pphosted.com ([185.132.182.106]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kQBu7-0002qI-At for linux-arm-kernel@lists.infradead.org; Wed, 07 Oct 2020 16:03:00 +0000 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 097FqHOv002178; Wed, 7 Oct 2020 18:02:52 +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=snx0Oa29078S9y9lMCQN0QJqA70oMqn0JX8nnG1uIiA=; b=0aJcimBLb8uJkvEtylFHqEekUjiwQDJ1mT0kMku3f3qouIbV+PJ7I3PzXNfouKcqAs6V cHqS+Jpy+o+/6DEssPI7nQhTngOf7oQH3LNVpZGGqoMXoqNKtoSs5bQGOxVzU2t8O/rf 4deaof5EGfPSrsY6QBBxfQLB3iWD46iEshkp//gecM9WFrMmFOyxW5fJBkDXaswxgid8 AtuUFJOn6ucb6rT5WxXVgHSKSrpGxLoxNRXOwGMa2lpROTeXOBQc4Tml5ytSnih+pXEn NoISfkQ/UXSHvyxEZDNWb1Mj0m6MFXLzhg5xylxi9nxaYq3XsJoDrcr6yH6zwOgOH7d9 ig== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 3402tjwktd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 07 Oct 2020 18:02:52 +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 4A6F4100034; Wed, 7 Oct 2020 18:02:52 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag1node1.st.com [10.75.127.1]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 3967C2BA2C6; Wed, 7 Oct 2020 18:02:52 +0200 (CEST) Received: from localhost (10.75.127.44) by SFHDAG1NODE1.st.com (10.75.127.1) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 7 Oct 2020 18:02:24 +0200 From: Hugues Fruchet To: Etienne Carriere , Alexandre Torgue , Mauro Carvalho Chehab , Hans Verkuil Subject: [PATCH] media: stm32-dcmi: don't print an error on probe deferral Date: Wed, 7 Oct 2020 18:02:10 +0200 Message-ID: <1602086530-24646-1-git-send-email-hugues.fruchet@st.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [10.75.127.44] X-ClientProxiedBy: SFHDAG7NODE3.st.com (10.75.127.21) To SFHDAG1NODE1.st.com (10.75.127.1) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-10-07_10:2020-10-06, 2020-10-07 signatures=0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201007_120259_606253_3AED9EEB X-CRM114-Status: GOOD ( 16.91 ) X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [185.132.182.106 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, Philippe CORNU , Yannick Fertre , Alain Volmat , Hugues Fruchet , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Etienne Carriere Change stm32-dcmi driver to not print an error message when the device probe operation is deferred. Signed-off-by: Etienne Carriere Acked-by: Hugues Fruchet Tested-by: Alexandre TORGUE --- drivers/media/platform/stm32/stm32-dcmi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/stm32/stm32-dcmi.c b/drivers/media/platform/stm32/stm32-dcmi.c index fd1c41c..720534e 100644 --- a/drivers/media/platform/stm32/stm32-dcmi.c +++ b/drivers/media/platform/stm32/stm32-dcmi.c @@ -1851,7 +1851,9 @@ static int dcmi_probe(struct platform_device *pdev) dcmi->rstc = devm_reset_control_get_exclusive(&pdev->dev, NULL); if (IS_ERR(dcmi->rstc)) { - dev_err(&pdev->dev, "Could not get reset control\n"); + if (PTR_ERR(dcmi->rstc) != -EPROBE_DEFER) + dev_err(&pdev->dev, "Could not get reset control\n"); + return PTR_ERR(dcmi->rstc); }