From patchwork Fri Feb 28 09:18:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 183959 Delivered-To: patch@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp502086ile; Fri, 28 Feb 2020 01:18:59 -0800 (PST) X-Google-Smtp-Source: APXvYqzhnH+595xpskmZP1SU6l9apqByR/lc+BHMgLOW0wcyPaZAp7QTvrNu1K00yxZe3kxAiVXA X-Received: by 2002:aa7:9f47:: with SMTP id h7mr3366809pfr.13.1582881539245; Fri, 28 Feb 2020 01:18:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582881539; cv=none; d=google.com; s=arc-20160816; b=BVCFXqHMU33f4xR/K/l1XxG74PxsT7KmaWIk5U7DWV7WtqT7pjAOarEu8mAxfiFRJO kgz9fMhkJlDc6n0dMyMfV2PppxB5enwSVt5dvtBtRV9+dyUneLllhuZn8aFvE80C5tfs hhICZ3iYv38+omKwIrS2WOEMSckB0yHB/2W2dNTZCD0mhqlE1Hi1wuuKirXAEq40iD1P 1T3y2QSQYp0KFdgHtrMKVkkM2B7hRK3gJCNmPvGmhPyACuncDw6hCWLPQBKX+v5tm6vA SnyNB8neaKyEN+H6K369UUANxRnV57seA74yzo9cBujJcs51Bn8KqrXstNUyXP7NvRj7 i0kA== 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=PcA68DgBKV13CrOHex1OF9M/zgZmSwlqIGOMmvnOqJY=; b=w9cPrvT0E5VkfdyS6Ge8WPa5ShnxCVoMLXqsUv6I6JC3sUW+JGjdukFF8SR04IdMmO ufbDanZzdPQDuyM6yn8S6h3koSwM0c142iNKhyRVoVezxMF73NKZ4/9EnFeQzkm5ecX2 DhUPV5kbsuVnWSo5JnShOpCXh1SBxJEIMe/GRPonollpKt6/rruDEyJG9S9zQWDHeUp5 s3FBLA2WL/QoQuE53icT87zO5i6q5g2ULSEkgazsP8CsPekfFyIfl8Dv1YNn0qnQeAUI XAidEoFHVYKKqQs1gtRwllIdHNTEhf+764URQUNJUC5DWh5XEhJOz45Pmq6KXBQeP7G8 24FA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=YfiJ3jOD; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id y5si1501027pjp.42.2020.02.28.01.18.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Feb 2020 01:18:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=YfiJ3jOD; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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 D4AC66EE92; Fri, 28 Feb 2020 09:18:56 +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 B17A16EE92 for ; Fri, 28 Feb 2020 09:18:55 +0000 (UTC) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200228091853euoutp01e82212e58e1ec026509a29ab9b5f7055~3hl4_MxEz1850918509euoutp01P for ; Fri, 28 Feb 2020 09:18:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200228091853euoutp01e82212e58e1ec026509a29ab9b5f7055~3hl4_MxEz1850918509euoutp01P DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1582881533; bh=Cx/KisrZcE4N00t4ikLjmXXzqLLpj5BvenJ3Ar+A0ho=; h=From:To:Cc:Subject:Date:References:From; b=YfiJ3jODmBVbgu/nB9FF35fIgO7sed2hA/s9uMGaSTA6C+VvBsJ/L6bBHfBKcZjti RKiC3CE9WDByH43DNC4tAC324ztUG1+taePAM1uNOZFrLTcGKXWGacL2Jt+D0zIvtq of0x0yuXiIetZt7rJqmyOTcTnZKytKU2w5klXuyw= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200228091853eucas1p21dca5e87fa987dcaf3506827725c131e~3hl4qpMBL2979429794eucas1p21; Fri, 28 Feb 2020 09:18:53 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id C7.A4.60698.CFAD85E5; Fri, 28 Feb 2020 09:18:52 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200228091852eucas1p12830eef2696807dc130216293cab4899~3hl4N-jb83168731687eucas1p13; Fri, 28 Feb 2020 09:18:52 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200228091852eusmtrp1dbee03c6b8bf008fcb87ec1a6e41ec00~3hl4NXpS71679016790eusmtrp1v; Fri, 28 Feb 2020 09:18:52 +0000 (GMT) X-AuditID: cbfec7f5-a0fff7000001ed1a-bf-5e58dafc03dc Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id B8.DC.08375.CFAD85E5; Fri, 28 Feb 2020 09:18:52 +0000 (GMT) Received: from AMDC2765.digital.local (unknown [106.120.51.73]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200228091852eusmtip1daa9176ef455ead56e6b011303518d1c~3hl3xQbYQ2822828228eusmtip1Z; Fri, 28 Feb 2020 09:18:52 +0000 (GMT) From: Marek Szyprowski To: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/panfrost: Silence warnings during deferred probe Date: Fri, 28 Feb 2020 10:18:42 +0100 Message-Id: <20200228091842.1417-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrPIsWRmVeSWpSXmKPExsWy7djP87p/bkXEGUw8aWlx7lI3q8X/bROZ La58fc9mcXnXHDaLtUfuslv837OD3aLxCFCsb+0lNgcOjzXz1jB67Li7hNFj77cFLB6bVnWy edzvPs7k0bdlFaPH501yAexRXDYpqTmZZalF+nYJXBk3l9xkLDgiUXHiyWrmBsa1Il2MnBwS AiYSJ15sZuti5OIQEljBKHFo7kIWCOcLo8SMO+ugnM+MEq0LbrHAtPS3v4ZKLGeU2LzzHCNc y9Tu32wgVWwChhJdb7vAbBEBR4n5z96AFTEL/GKUONxxlREkISzgKtEyfy5QEQcHi4CqxMyT XCBhXgEbif43O5ggtslLrN5wgBmkV0LgOZvEzSl7oc5wkVi1fQKULSzx6vgWdghbRuL05B4W iIZmRomH59ayQzg9jBKXm2Y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SiJ 83YIHIwREkhPLEnNTk0tSC2C6WPi4JRqYGRrzvp5uiFuI3/K6sv7zlyUO2bDkMRTVRxY0pPD aucte72eeVLrFRbV6S/3zBLY468T1JKpxDFHZ6PjUaWr349c8Lh/aVJ+UMP7sDm1B682TNkR 26gUY36BR4O5TC/OblmQwErzQ4JzzbqiTL8UhShJPZPeaf7s3oQD7075nez8J//x431DOSWW 4oxEQy3mouJEABrPMDRkAgAA X-CMS-MailID: 20200228091852eucas1p12830eef2696807dc130216293cab4899 X-Msg-Generator: CA X-RootMTR: 20200228091852eucas1p12830eef2696807dc130216293cab4899 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200228091852eucas1p12830eef2696807dc130216293cab4899 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" Don't confuse user with meaningless warnings about the failure in getting resources in case of deferred probe. Signed-off-by: Marek Szyprowski --- drivers/gpu/drm/panfrost/panfrost_device.c | 29 ++++++++++++++-------- 1 file changed, 19 insertions(+), 10 deletions(-) -- 2.17.1 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/drivers/gpu/drm/panfrost/panfrost_device.c b/drivers/gpu/drm/panfrost/panfrost_device.c index 238fb6d54df4..1c3f2e656b53 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); } @@ -91,9 +96,10 @@ 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); - return ret; + if (PTR_ERR(pfdev->regulator) != -EPROBE_DEFER) + dev_err(pfdev->dev, "failed to get regulator: %d\n", + PTR_ERR(pfdev->regulator)); + return PTR_ERR(pfdev->regulator); } ret = regulator_enable(pfdev->regulator); @@ -124,19 +130,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; }