From patchwork Fri Feb 28 09:40:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 183960 Delivered-To: patch@linaro.org Received: by 2002:ac9:7758:0:0:0:0:0 with SMTP id d24csp589543ocu; Fri, 28 Feb 2020 01:40:46 -0800 (PST) X-Google-Smtp-Source: APXvYqz0LT3PzR+50XOnXn/2nImjdmfMCMjv1EWITbjpu8Iw6RE7KSw3kNsZGI3VupvjJGXgqvkZ X-Received: by 2002:a17:90a:8902:: with SMTP id u2mr3802891pjn.79.1582882845915; Fri, 28 Feb 2020 01:40:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582882845; cv=none; d=google.com; s=arc-20160816; b=ZBLGUeZqBQDTinhmI6Ugx0+Nao7xQuQiEmxjizXoUsjVniRTMS/Jog9Mfw0n+qX1Qe wHo8CPXH/6JgzTL+COKC+n+po9DvKbXsjl7F4Ory6zAkbQEyBmb3en8aDNKsXsfrsBLj sxIB9GQ1kBTEoVno6r9eF13fnw357r/WHerqEDiSFgYz20HfJeW3VDr+JKiGbkR4vnj+ GISmwaMYdj7MWYLXnailOdKYz157HhP+qxSH51IhYEOrXD8Z5d6EBBoslwJjF5rI3uh0 WwalV+eB4v56j4mMe58oyuRER2QnZF0eaYqdH3g2o/r52jUpYo+iuK36eclgb+3iMTA6 btcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:references:cms-type:message-id:date:subject:to :from:dkim-signature:dkim-filter:delivered-to; bh=NOJS3i9KZ0DaHmb24JQtBiFId0Dx7SzrWxCC/GJImoM=; b=bLfaDDrtWbIZ5yFnFav/tLm55ExKg2lxSphb806oImYndkosonayqmyzZ3cXyJtqW9 FE2tjCfxE9ZyNdOsx2pdafW3+iytgbizUS/gXPuLUdY2ksznbRHPzBygdVtXa8TjxANP 0R43E1LlwBIjfumY4CQvIX7Q894RZhTNdJYTk8Q+PiQmp2qhHsZluwtj6qDQf2++jdQw 0TArUq5Y9jfdT5Go8m4TySkuURY2P7x4BeTmeNfn2dqjb8T6v6SmIH5h4Bo4W9BmJ1/V 2YT3QTpvR+2YYgjUqt0UfOoAtwRHhnARVoVterp65z1rSBMw0NcSGh3T2F5swL+PQnn7 n9AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=FGFpiXGo; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id c6si2773152pfc.154.2020.02.28.01.40.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Feb 2020 01:40:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=FGFpiXGo; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 13C036EEB3; Fri, 28 Feb 2020 09:40:37 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2CABA6EEAF for ; Fri, 28 Feb 2020 09:40:36 +0000 (UTC) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200228094034euoutp0197c0db6d3904538c2339b4898ad6cc8d~3h40vvDvs0521905219euoutp01W for ; Fri, 28 Feb 2020 09:40:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200228094034euoutp0197c0db6d3904538c2339b4898ad6cc8d~3h40vvDvs0521905219euoutp01W DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1582882834; bh=GJDkwr6scZCKsoNv4vj4+3w9fWMzh/qi3tA0cUWtFA0=; h=From:To:Cc:Subject:Date:References:From; b=FGFpiXGoeoNciTDyUxpU3cMB1p/ZOdO9mGnwCrgn56kDrqACnn8s5tOiM/lbMa+KY r8O6xJaT7+kqxq+p5VBa6Cu0aexxkRaJUHw0fCEsEFd++PaMJgyrUUJXd6U5bIZSsS xjeCUKYMKrvdmxQF204i+zcSaITKND0pF9rBgM+c= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200228094034eucas1p1a4378f8dd1bdfecfe66ad0f8fa563288~3h40bnf9T0597105971eucas1p1l; Fri, 28 Feb 2020 09:40:34 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id A0.42.60679.210E85E5; Fri, 28 Feb 2020 09:40:34 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200228094033eucas1p2fa2f6cea3b882e758992d97da2fc50ed~3h40D2ARh1645516455eucas1p2d; Fri, 28 Feb 2020 09:40:33 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200228094033eusmtrp2aaffc1b9a078d0ea504757e822c270fb~3h40DM_hH1033410334eusmtrp2X; Fri, 28 Feb 2020 09:40:33 +0000 (GMT) X-AuditID: cbfec7f4-0cbff7000001ed07-aa-5e58e012b1c8 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 9B.10.08375.110E85E5; Fri, 28 Feb 2020 09:40:33 +0000 (GMT) Received: from AMDC2765.digital.local (unknown [106.120.51.73]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200228094033eusmtip200f9c1a6c7c6961f0be43c630737ff3f~3h4zqM8T40483404834eusmtip2j; Fri, 28 Feb 2020 09:40:33 +0000 (GMT) From: Marek Szyprowski To: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] drm: panfrost: Silence warnings during deferred probe Date: Fri, 28 Feb 2020 10:40:26 +0100 Message-Id: <20200228094026.26983-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrPIsWRmVeSWpSXmKPExsWy7djP87pCDyLiDA5847A4d6mb1eL/tonM Fle+vmezuLxrDpvF2iN32S3+79nBbtF4BCjWt/YSmwOHx5p5axg9dtxdwuix99sCFo9NqzrZ PO53H2fy6NuyitHj8ya5APYoLpuU1JzMstQifbsErowHK36xF7wTq7jxbD1rA+N7oS5GTg4J AROJZ68XsHcxcnEICaxglJh0ZgMThPOFUeLggi1Qmc+MEh+XbGOBaXnxYBpUYjmjxJkLb9nh WjrfH2cDqWITMJToetsFZosIOErMf/aGEaSIWeAXo8ThjqtADgeHsICnxPotCiA1LAKqEvMP 3WAGsXkFbCUOfvzADrFNXmL1hgPMIL0SAq/ZJH7f+cgGkXCR+POnkxXCFpZ4dXwLVIOMxP+d 85kgGpoZJR6eW8sO4fQwSlxumsEIUWUtcefcLzaQK5gFNCXW79KHCDtKNN76xwISlhDgk7jx VhAk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Viy3+vy7oT9Ou3ydU9gX6 G/kzrpLYuXiadJOa5947+u/MxB8xFMW8MJjD+veL7/IAozNiOnWHzZ5YTW5zrlz7aoFqvNz/ H2wZm69fbfGoTd+fULzwZTPj5mMvZvw0ypvdZ/UsrW9t+9SzsxUCqySmFr/Qibh4vSllafIv WSWW4oxEQy3mouJEAImthNNkAgAA X-CMS-MailID: 20200228094033eucas1p2fa2f6cea3b882e758992d97da2fc50ed X-Msg-Generator: CA X-RootMTR: 20200228094033eucas1p2fa2f6cea3b882e758992d97da2fc50ed X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200228094033eucas1p2fa2f6cea3b882e758992d97da2fc50ed References: X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tomeu Vizoso , Steven Price , Alyssa Rosenzweig , Marek Szyprowski MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Signed-off-by: Marek Szyprowski --- v2: - fixed build warning --- drivers/gpu/drm/panfrost/panfrost_device.c | 26 +++++++++++++++------- 1 file changed, 18 insertions(+), 8 deletions(-) -- 2.17.1 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel Reviewed-by: Daniel Stone Reviewed-by: Alyssa Rosenzweig Reviewed-by: Steven Price diff --git a/drivers/gpu/drm/panfrost/panfrost_device.c b/drivers/gpu/drm/panfrost/panfrost_device.c index 238fb6d54df4..2c4ada3041b1 100644 --- a/drivers/gpu/drm/panfrost/panfrost_device.c +++ b/drivers/gpu/drm/panfrost/panfrost_device.c @@ -21,7 +21,9 @@ static int panfrost_reset_init(struct panfrost_device *pfdev) pfdev->rstc = devm_reset_control_array_get(pfdev->dev, false, true); if (IS_ERR(pfdev->rstc)) { - dev_err(pfdev->dev, "get reset failed %ld\n", PTR_ERR(pfdev->rstc)); + if (PTR_ERR(pfdev->rstc) != -EPROBE_DEFER) + dev_err(pfdev->dev, "get reset failed %ld\n", + PTR_ERR(pfdev->rstc)); return PTR_ERR(pfdev->rstc); } @@ -44,7 +46,9 @@ static int panfrost_clk_init(struct panfrost_device *pfdev) pfdev->clock = devm_clk_get(pfdev->dev, NULL); if (IS_ERR(pfdev->clock)) { - dev_err(pfdev->dev, "get clock failed %ld\n", PTR_ERR(pfdev->clock)); + if (PTR_ERR(pfdev->clock) != -EPROBE_DEFER) + dev_err(pfdev->dev, "get clock failed %ld\n", + PTR_ERR(pfdev->clock)); return PTR_ERR(pfdev->clock); } @@ -57,8 +61,9 @@ static int panfrost_clk_init(struct panfrost_device *pfdev) pfdev->bus_clock = devm_clk_get_optional(pfdev->dev, "bus"); if (IS_ERR(pfdev->bus_clock)) { - dev_err(pfdev->dev, "get bus_clock failed %ld\n", - PTR_ERR(pfdev->bus_clock)); + if (PTR_ERR(pfdev->bus_clock) != -EPROBE_DEFER) + dev_err(pfdev->dev, "get bus_clock failed %ld\n", + PTR_ERR(pfdev->bus_clock)); return PTR_ERR(pfdev->bus_clock); } @@ -92,7 +97,9 @@ 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; } @@ -124,19 +131,22 @@ int panfrost_device_init(struct panfrost_device *pfdev) err = panfrost_clk_init(pfdev); if (err) { - dev_err(pfdev->dev, "clk init failed %d\n", err); + if (err != -EPROBE_DEFER) + dev_err(pfdev->dev, "clk init failed %d\n", err); return err; } 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; } err = panfrost_reset_init(pfdev); if (err) { - dev_err(pfdev->dev, "reset init failed %d\n", err); + if (err != -EPROBE_DEFER) + dev_err(pfdev->dev, "reset init failed %d\n", err); goto err_out1; }