From patchwork Thu Feb 27 07:06:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 183925 Delivered-To: patch@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp4133879ile; Wed, 26 Feb 2020 23:06:57 -0800 (PST) X-Google-Smtp-Source: APXvYqy9ETxALoQtsAwH1iIA2yLzht2/v7cAGbj09443clwTO6WwPl/etsiEMnGNre/zlPLHswxU X-Received: by 2002:a17:902:7203:: with SMTP id ba3mr3094501plb.249.1582787217187; Wed, 26 Feb 2020 23:06:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582787217; cv=none; d=google.com; s=arc-20160816; b=u5iuUZnxBxr2r1gJ6dP9Hv8ZlaHyMsP6rkradDUqoZdrtIX5fNRt0AZ1skkOjPcT3o h5jjKq1Gg5yR0EMz0esQqaoorBNohIZQFHYP9pfG0b6sqN90xKEY1laVvh5uTLX4mW1a kg5MlmSrNP+kW+NduQjNTTzzxLlpJlfsyKzMChfxJTDwD3cF3OzK+mJg5etAgjl1QmWg HXsfmZaxRLgIGlDq9OoZC601qxI1pYXJ+J/gV3E+8q8zYqH0qCuhJFI4bUlBOP1NHDvV dxaTfLPSgHos5c/dvRT4mmTweOwjKn7cszhUmDKsCOBX7JH+o1/Nsx2nU7uyq3lkhQIf /4Ww== 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=2QOSgCEgj1Xi+fvaTfZe3qR9EcM1DYLfAdjpBcEXYDY=; b=ozGEWd7kT2J0T9Gu67Kw17vB+sbarjXN7TNOp1l4yZxxDhEp2MFFRvSZGrd4dGCEPk w2jbtY0LtB/D9UPfuKOQv5P+9VzdHp/jRDE9eG3Uol/aZmjfX8zTNAUFt2KgID7PEudK THpvaVWWjpANktMJO2YG5TXUmIKJNAIeTnN7F/HwMblUusHyij823522k93uYUC+7OPk 6osT1OjX2mnv6s5TTKktC1JV9wwU+g1bvG3Oi3GhIFs4vJduFMLhmFEtmtZ+XfYCsLJO jTRoSQUQvzTQa3T6Ovduq/c+dknS1zqRJrH9wZ8A/GC8D3H5kuEQQTu1g2FR9DUUYW82 WDlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=dATCsxDu; 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 f7si1270937plb.240.2020.02.26.23.06.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Feb 2020 23:06:57 -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=dATCsxDu; 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 253386EBF4; Thu, 27 Feb 2020 07:06:54 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by gabe.freedesktop.org (Postfix) with ESMTPS id 47B3E6EBF4 for ; Thu, 27 Feb 2020 07:06:52 +0000 (UTC) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200227070650euoutp02a0b314a5fae0a9fa73ab10e2f9219f83~3MJT5H4Tv2313623136euoutp027 for ; Thu, 27 Feb 2020 07:06:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200227070650euoutp02a0b314a5fae0a9fa73ab10e2f9219f83~3MJT5H4Tv2313623136euoutp027 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1582787210; bh=TJmaPby/SK5iUef1kmGVJ3ZKmyzeMQArHD4PSzu1Wco=; h=From:To:Cc:Subject:Date:References:From; b=dATCsxDupzKKQEypPsfP2ANnEIFiK7b4Iqz+Kfj7ysNU/kjW0yU5gVchATLTia52c W6rHqN+3p3gwbxax22UwCVp2fNbDM0BYVKbXBWR4kYQJlkFj/6rD53el0py/p6GDWX xCnLwVt3jpgXJc6+cp7EE1Yf89DCOFwH6qyRLcck= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200227070650eucas1p261b305dfc605373b2a8c228f5523edb2~3MJTnh-Th2017720177eucas1p2e; Thu, 27 Feb 2020 07:06:50 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id EB.F1.60698.A8A675E5; Thu, 27 Feb 2020 07:06:50 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200227070649eucas1p15dcf4847b369fc20bd2a96f697b1173b~3MJTCLjEs0193901939eucas1p1D; Thu, 27 Feb 2020 07:06:49 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200227070649eusmtrp230042b11ad8e8b56b6eb90399c4b9ad6~3MJTBkbO71480014800eusmtrp2P; Thu, 27 Feb 2020 07:06:49 +0000 (GMT) X-AuditID: cbfec7f5-a0fff7000001ed1a-15-5e576a8a4fd4 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 9F.97.07950.98A675E5; Thu, 27 Feb 2020 07:06:49 +0000 (GMT) Received: from AMDC2765.digital.local (unknown [106.120.51.73]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200227070649eusmtip218aa6e750e4e1b6e0e4767a4d0a74eec~3MJSlYiN02145521455eusmtip2u; Thu, 27 Feb 2020 07:06:48 +0000 (GMT) From: Marek Szyprowski To: dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH v2] drm/exynos: dsi: propagate error value and silence meaningless warning Date: Thu, 27 Feb 2020 08:06:37 +0100 Message-Id: <20200227070637.4115-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA0VSa0hTYRjm27nsuJwdj5IvWmrrauEtDQ5kURCxosA/GUVetjx43Rybd6iG hdkWMhV0SpmUkSy2qYldtGFqDTGm5TCzxJa/tLyUGhhlbTua/54rz/vBR2HMAh5MZSnzObVS lishRXjn6xVHpC77XErMxB2CHbc4CLbNaCVY5/I8yVZPGnB2aKhVyBqHbALW3D/hRjXT5FFK 2m66SUon9XaBtLLDhKSL7aGJ+AVRQjqXm1XIqaOPpIkyV3p8VbVUsdnZRGrRHKlDPhTQ8VC5 Wo7pkIhi6BYEhtVZgidLCEbrX62RRQSmgTrBemX48dJa5SECs1O/UXlQ+5XwpEg6FnSzOu9I IH0CyvrqvSGM1gpAXz7uNQLoi2CdKxN6ME7vgi8j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ZK4rwdAgdjhATSE0tSs1NTC1KL YPqYODilGhi39h1Z2zAvoIlpT1rotfC87xMj1x0y7chm0Furd/D0j+dfU8uaf+r/XOnW/3VR g7vh7blHNa4l/BH8I9R4+Y90I7/LmZVhVlPq78lIVzrv3C+ormKsaK0q90ukq7hJb0H415ay 3bcSzSdJK9/gWnLBsmjWz/6m6inth3tDavvbyuKrWybfkFRiKc5INNRiLipOBADJjRFJWAIA AA== X-CMS-MailID: 20200227070649eucas1p15dcf4847b369fc20bd2a96f697b1173b X-Msg-Generator: CA X-RootMTR: 20200227070649eucas1p15dcf4847b369fc20bd2a96f697b1173b X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200227070649eucas1p15dcf4847b369fc20bd2a96f697b1173b 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: Bartlomiej Zolnierkiewicz , Seung-Woo Kim , Krzysztof Kozlowski , Andrzej Hajda , Marek Szyprowski MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Properly propagate error value from devm_regulator_bulk_get() and don't confuse user with meaningless warning about failure in getting regulators in case of deferred probe. Signed-off-by: Marek Szyprowski --- v2: rephrased commit message --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- 2.17.1 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel Reviewed-by: Krzysztof Kozlowski diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c index 33628d85edad..3f6fcd453d33 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c @@ -1773,8 +1773,9 @@ static int exynos_dsi_probe(struct platform_device *pdev) ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(dsi->supplies), dsi->supplies); if (ret) { - dev_info(dev, "failed to get regulators: %d\n", ret); - return -EPROBE_DEFER; + if (ret != -EPROBE_DEFER) + dev_info(dev, "failed to get regulators: %d\n", ret); + return ret; } dsi->clks = devm_kcalloc(dev,