From patchwork Thu Dec 5 22:11:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= X-Patchwork-Id: 11275741 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 C5E6B14BD for ; Fri, 6 Dec 2019 08:18:02 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 AE4092467A for ; Fri, 6 Dec 2019 08:18:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AE4092467A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 59FEC88DDE; Fri, 6 Dec 2019 08:17:36 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by gabe.freedesktop.org (Postfix) with ESMTPS id A54036F912 for ; Thu, 5 Dec 2019 22:11:28 +0000 (UTC) Received: by mail-wr1-x441.google.com with SMTP id w15so5584270wru.4 for ; Thu, 05 Dec 2019 14:11:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=CUi98cwSoCKi/I/0JIIfMi/RPZNRK6SsahfPRECZalM=; b=Tjz3QAQNkkVJnMNqRyZwNzDmJIBAatHZWlHCUwqmLDlv/HabG1Ew8GEu2YS1NMEiB6 d+p0D3d/LE5dYdzQLfLnXNPllsTpIP9nLLV9DDSSAxMebnap1mpNXvPxdsZPlhh4rsWp 2/m62SXhI1ntoytlE5RRCopt8fjrN5TVH+Ue6ISCy310Twm+KPriKEhnUsEysU79pbdB xnDMlH1XujJT9ThoeFQR209mQf/AlUXS3zcyyUHgJ2H5+VV52geZKWCsR5443s4eNAfh 7352eviaDXZKGWoMCQtdt9FZuPXotsLuzovfBHsuI0euG8vR18EiL3Ah53dGoAZXENy0 rIbQ== X-Gm-Message-State: APjAAAWpamajWQUM//V9bhW3WvDbLglnEcrBL9Vg3l+axzp2grTV9h9z DmU7KYodFhfGVKfE72NECwc= X-Google-Smtp-Source: APXvYqz1RLUsU0nkiHg33UXp6iDHMizIMj4ZHRsIh50USDPd8MMgZM/ReLIHHDN84SB7+V/LMsmYSw== X-Received: by 2002:a5d:4acb:: with SMTP id y11mr12710232wrs.106.1575583887033; Thu, 05 Dec 2019 14:11:27 -0800 (PST) Received: from localhost.localdomain ([2a01:e0a:1f1:d0f0::42f0:c285]) by smtp.gmail.com with ESMTPSA id r21sm1265490wmh.4.2019.12.05.14.11.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Dec 2019 14:11:26 -0800 (PST) From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= To: Rob Herring , Tomeu Vizoso , Steven Price , Alyssa Rosenzweig Subject: [PATCH] drm/panfrost: no need to display probe deferred error Date: Thu, 5 Dec 2019 23:11:02 +0100 Message-Id: <20191205221102.28248-1-peron.clem@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 06 Dec 2019 08:17:34 +0000 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=CUi98cwSoCKi/I/0JIIfMi/RPZNRK6SsahfPRECZalM=; b=UWwYuaEQz2jJLTXRR27FAvmeLUr7FTHVV1WSN3Z/262cU//30TQHE3UpyULyYYeywy q5uXuU2DurFK/gpxzvK4fazZJbM0Xn+QFk1k9UwwvwzX4E/2eVhRLx2CTO4RRVsiWnUj tPE2PS2zJEz8A3c40SVxU547YktUyuIx/5HW76ZGCDF33ghGJ3siOImXDwZUYbJq80GC klt/Ub6XkQGp/ge4Ue2soX9RcXgO+0TLY1aZuwhnv/rvo/ZLXxjiEefldBXH1AQShgGu /V+5lz3U4kXrSKAOAcTTZzYy1ip4g88OiRqzFiR1mbw76yH3zOwYxx6E/EZcuBvHPSpY VFqA== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= , linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Panfrost driver is shouting an error if the regulator init return an -EPROBE_DEFFER. This is a not a real error and it doesn't require to be display. Check if the error is not an EPROBE_DEFFER before displaying it. Signed-off-by: Clément Péron Reviewed-by: Steven Price --- drivers/gpu/drm/panfrost/panfrost_device.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/panfrost/panfrost_device.c b/drivers/gpu/drm/panfrost/panfrost_device.c index 238fb6d54df4..00cef062c35d 100644 --- a/drivers/gpu/drm/panfrost/panfrost_device.c +++ b/drivers/gpu/drm/panfrost/panfrost_device.c @@ -92,7 +92,8 @@ static int panfrost_regulator_init(struct panfrost_device *pfdev) pfdev->regulator = devm_regulator_get(pfdev->dev, "mali"); if (IS_ERR(pfdev->regulator)) { ret = PTR_ERR(pfdev->regulator); - dev_err(pfdev->dev, "failed to get regulator: %d\n", ret); + if (ret != -EPROBE_DEFER) + dev_err(pfdev->dev, "failed to get regulator: %d\n", ret); return ret; } @@ -130,7 +131,8 @@ int panfrost_device_init(struct panfrost_device *pfdev) err = panfrost_regulator_init(pfdev); if (err) { - dev_err(pfdev->dev, "regulator init failed %d\n", err); + if (err != -EPROBE_DEFER) + dev_err(pfdev->dev, "regulator init failed %d\n", err); goto err_out0; }