From patchwork Wed Dec 20 19:07:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 10126383 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9D6EB6019C for ; Wed, 20 Dec 2017 19:08:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8F0D0289F3 for ; Wed, 20 Dec 2017 19:08:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8363C28A3E; Wed, 20 Dec 2017 19:08:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 278BA289F3 for ; Wed, 20 Dec 2017 19:08:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date:Message-ID:Subject: From:To:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=4XBhzXi0qXgjPjownzyh+bdUZTtns7EJXlgXXIX06jM=; b=gdOAkA3DZpwn8x byOJVY/tXaJ9Ez6OFicSFl/oA/MDi9cjv4RQw0p55J1t3g39SEdKmzc6agSGdEeImCSDVNj/iXI7q X+boa2aGoq7rN1QD0wDDKEPlDRvWGskqW+7MJSM61GwCtx55+hV26rntUl+1vjOkHrDH2rsdbUBoR fSL5XF+88C81Ki6MTO0c9WZx5R7ZZr27SXMynfK9CKuZaTTnfoQy/app/2u9YLuciyW9wSxHFuqaO 9NCtI9nZTYMFzt/Zfweza7eNgVB9nRecQe3292rd+9hxvvRTJ6rkWTa4qn4m+gsjGHigAvVvr4kgv J38rDfrwFONF4BFq3SVw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eRjjG-0002Ld-Bj; Wed, 20 Dec 2017 19:08:34 +0000 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eRjiu-0001kg-HB for linux-amlogic@lists.infradead.org; Wed, 20 Dec 2017 19:08:22 +0000 Received: by mail-lf0-x241.google.com with SMTP id f18so25216711lfg.8 for ; Wed, 20 Dec 2017 11:08:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=yZLdNOzekvYfB9rfLeru4vUd9/W2Nhl+lyFY0XdpqFU=; b=a5hN/184POEdXJww/7929chT1ty5CHk+JF27aU9cXIUJK0Zeip0VauUP14COtKcXv5 EYzBhyqM1M0d75hWQcCyhEEky6LMQr50XN5mQ+KOdf7eJc8YlbZSsyuwRMDBsYw/UE2K B6tyJJN7EJzi8LDAMIptAfMRiwsAQHW6bUDaWj4J4UlrJ2sr9VPCV6EJ9AfY2fghILWp 84Ekbz/IrCcubptS3sFSCYBh/h3Er6MfTgGwYPiBccTkCggnztsibm0wPGTUEqpkHJm2 vxI60D7jfr8IShi78MqfEoSNOaH9IDTHMqs9iJhs4XJug77z4xU3tnZHbCXbRPaVJPTX jb/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=yZLdNOzekvYfB9rfLeru4vUd9/W2Nhl+lyFY0XdpqFU=; b=fPxY9eqJvTlxuWZlWT0tg7n4Jkj2ILT0+9qPb+sf5mq2qfZ6yARaxXxMa43h9cg7Z2 y0GRXuBNTuLHlDYMfzEMpxT7GJmlETtAQ9rqWUaadCzdiQjW1SB4Z+HpGipLk2zhmBas vZPvPLJ+kn0tcX39HUNyAllcnExcU/GEMehSK77YJY2fucBqvsfdJpiCdbaJJfyIM0Da q8WZNBnPwlxoamYJzd341rAj/HWM4UuQMZMKXlA093fo8rsnsLmmprDk49CzSpL7BgYD E8JDmtu9W+kmmeurA55IAncK1lq2rI1oAJSCJc0qjiUFvy1XhjGgEi3MHwPiyEEXXpVo JT8A== X-Gm-Message-State: AKGB3mKfgAbKXoFhJwvtKJh2o2ZqUVCiIG0ppOdKtgyRpWSb/gpA3hpk +JptZPAhwKhzj0ookdYXmLv7MQ== X-Google-Smtp-Source: ACJfBouiY448UOf9SzlTy4Px6Mogim5F+ruJiaw6XIPoJNggrpRARUmLWcpJrIcxGPtYMSg+ksuYPw== X-Received: by 10.25.29.80 with SMTP id d77mr4973322lfd.39.1513796879403; Wed, 20 Dec 2017 11:07:59 -0800 (PST) Received: from ?IPv6:2003:ea:8bc0:e400:cdae:123d:74a:4b36? (p200300EA8BC0E400CDAE123D074A4B36.dip0.t-ipconnect.de. [2003:ea:8bc0:e400:cdae:123d:74a:4b36]) by smtp.googlemail.com with ESMTPSA id 76sm1655755lfq.63.2017.12.20.11.07.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Dec 2017 11:07:58 -0800 (PST) To: Neil Armstrong , Kevin Hilman , "open list:ARM/Amlogic Meson..." From: Heiner Kallweit Subject: [PATCH 1/2] soc: amlogic: meson-gx-pwrc-vpu: don't print error message on probe deferral Message-ID: <943d2b32-86ad-d1d5-b798-12c3ae54a0fe@gmail.com> Date: Wed, 20 Dec 2017 20:07:50 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171220_110813_237822_D406C182 X-CRM114-Status: UNSURE ( 8.59 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The error message may be misleading in case of probe deferral (happens on my Odroid-C2). Therefore don't print it in this case. Signed-off-by: Heiner Kallweit --- drivers/soc/amlogic/meson-gx-pwrc-vpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/soc/amlogic/meson-gx-pwrc-vpu.c b/drivers/soc/amlogic/meson-gx-pwrc-vpu.c index 2bdeebc48..3adb2f2ec 100644 --- a/drivers/soc/amlogic/meson-gx-pwrc-vpu.c +++ b/drivers/soc/amlogic/meson-gx-pwrc-vpu.c @@ -184,7 +184,8 @@ static int meson_gx_pwrc_vpu_probe(struct platform_device *pdev) rstc = devm_reset_control_array_get(&pdev->dev, false, false); if (IS_ERR(rstc)) { - dev_err(&pdev->dev, "failed to get reset lines\n"); + if (PTR_ERR(rstc) != -EPROBE_DEFER) + dev_err(&pdev->dev, "failed to get reset lines\n"); return PTR_ERR(rstc); }