From patchwork Tue Nov 10 13:05:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amelie Delaunay X-Patchwork-Id: 11894323 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C9473C4742C for ; Tue, 10 Nov 2020 13:06:20 +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 E5AA520674 for ; Tue, 10 Nov 2020 13:06:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="xWfdT7Yc"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=st.com header.i=@st.com header.b="VS9i6dw/" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E5AA520674 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+linux-arm-kernel=archiver.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=STbpy+KFtUklOB7OVab+IYfYY2gfpEOna2+++BbUTbI=; b=xWfdT7YcpPyv4XMnPfM1KuQBc2 lkSqiG1A2KeSTFbp9MmvZR+ABaZqwT1615XkwmA+Bvh07yWcda+XwXsf+tI8IpZqnEn6+4CCPhxrG 1cMgwNcf7nDGdcW6OJdhXXB7IuVeYoCH0BrprXbOjg4+si09X5R0CFM42cZYdfyRdwfaS3toaw9yM 5yswgos4X/mE0s0Rtjzz0kZYlQfA906uLZAU3TfGEJOPUC7szxufzEeqwDU9mMSU9paPNrJV4jz4N KGJSkOyyqcW6debLS3UXynnbLm8JV98Mi/QPeOfRHbaA4a9ix72wKPOmbNxBU9keF8KDt6jRXNlAO qPzhYS1A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcTLE-0002oW-P2; Tue, 10 Nov 2020 13:05:44 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcTLA-0002nW-8K for linux-arm-kernel@lists.infradead.org; Tue, 10 Nov 2020 13:05:41 +0000 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0AAD1oiR027641; Tue, 10 Nov 2020 14:05:33 +0100 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=MuYQyOZreHtwFmW6B23D6vQIwX6LkmB9NG2Ttxx8lrs=; b=VS9i6dw/B/t2ScqTK7Mmv5L1ZqSm5IRsXCuFVe4SLMfDvHcXjB9b/N+HHecXaUWxnD7I 9XO5YJ6IHkpAw2rsh8KYPIfGCQ8vKCsOY9i0UZG7VVae4+01+arKmHjZHk5aqjsKv5XT QgE+xu5xELJtRw2+RISaHX+Tg0w3CUUFa2ZfKXyvnpRTJh0PkRB+pEI7yHtpMUOnLw4K rWfnYrCZTOkwkuQpm3uF76AAj7UwUZigXQNjLMUGwsgqicOVAQ7SQj36T8w1hAwyswxo Bu8AEJqMto3IGw4k8d0G77k+YWcvBoo3dRUpD/fR3iZs8D4YU0/mvA/2qYSn8OfN+Ond iQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 34nhkcrr1p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 10 Nov 2020 14:05:33 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 69873100038; Tue, 10 Nov 2020 14:05:32 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag3node2.st.com [10.75.127.8]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 5967825613B; Tue, 10 Nov 2020 14:05:32 +0100 (CET) Received: from localhost (10.75.127.44) by SFHDAG3NODE2.st.com (10.75.127.8) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 10 Nov 2020 14:05:31 +0100 From: Amelie Delaunay To: Kishon Vijay Abraham I , Vinod Koul , Alexandre Torgue , Maxime Coquelin , Etienne Carriere Subject: [PATCH v2 1/2] phy: stm32: don't print an error on probe deferral Date: Tue, 10 Nov 2020 14:05:31 +0100 Message-ID: <20201110130531.7610-1-amelie.delaunay@st.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.75.127.44] X-ClientProxiedBy: SFHDAG1NODE3.st.com (10.75.127.3) To SFHDAG3NODE2.st.com (10.75.127.8) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312, 18.0.737 definitions=2020-11-10_05:2020-11-10, 2020-11-10 signatures=0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201110_080540_564898_89F6A663 X-CRM114-Status: GOOD ( 17.06 ) 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: Amelie Delaunay , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Change stm32-usbphyc driver to not print an error message when the device probe operation is deferred. Signed-off-by: Etienne Carriere Signed-off-by: Amelie Delaunay --- v2: add missing return --- drivers/phy/st/phy-stm32-usbphyc.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/phy/st/phy-stm32-usbphyc.c b/drivers/phy/st/phy-stm32-usbphyc.c index 2b3639cba51a..3630f83dea53 100644 --- a/drivers/phy/st/phy-stm32-usbphyc.c +++ b/drivers/phy/st/phy-stm32-usbphyc.c @@ -328,11 +328,8 @@ static int stm32_usbphyc_probe(struct platform_device *pdev) return PTR_ERR(usbphyc->base); usbphyc->clk = devm_clk_get(dev, NULL); - if (IS_ERR(usbphyc->clk)) { - ret = PTR_ERR(usbphyc->clk); - dev_err(dev, "clk get failed: %d\n", ret); - return ret; - } + if (IS_ERR(usbphyc->clk)) + return dev_err_probe(dev, PTR_ERR(usbphyc->clk), "clk get_failed\n"); ret = clk_prepare_enable(usbphyc->clk); if (ret) {