Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp700165rwi; Wed, 26 Oct 2022 06:16:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6U/EcYR2Bq5WimjHDcA9KB/pwXst+OneOVntKTZbT2M/QbpO8+cewDVJtikwdVNGBwQvqm X-Received: by 2002:a17:902:da8b:b0:185:5723:5834 with SMTP id j11-20020a170902da8b00b0018557235834mr45153831plx.49.1666790215289; Wed, 26 Oct 2022 06:16:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666790215; cv=none; d=google.com; s=arc-20160816; b=KkCSAEET8qB+vS+fjol6sHr3E47/Hw+R4lZJ8OpLQey9lg0TV7CZEycn8KiLpU2GXO 1N8Bywuc1AjfCAlqTO5pZsTH3dbGJXMnAOsNB4Q1FKWTawLGI0Uo4C98PBq8aDzQN9Lg dDgsY6t/8waB9S8obPLGHjY+wUvTY9MEDVoR7vPFy1rHi5dZw6LJhuV2M8cxa/cBsLKu 1PvRNI/I+U0YbOQ3BBCngj8nR1PZ42soUq/YBRZqIdStDMrZiy5YYNaeqQKJp8eOl5tY sJBeWqpI2Mc/NvMV3RM5BYLVOcRCLnjKuRP/z1hOt0H7Rd7cdh4QxCurur5egcxtcFdJ m75A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=OwcwbPWv3r9VIP3yJYPByOrkDYCi0RI0Xn7zeZQgXyQ=; b=rL/659hS6Ju8aTzJbUpc137oAWoVmBvMR3mT72+QFr4geIbw1i0xPiebC/J3UlgevP Sei/nnUK1EKD0n9Mxp9qHuteDv48M7irKNm4t4SapYCquM5i39A6fTvL58dIdrxN6Srz ykPP9FJwuGw9/7L2VmeP93xlLtMRkH4uPYtA4wK8RuweAwo+uNJXgFNz2dn1sJgTSgE1 mfsUjAFNk8L4SkupB6Jf6rfeQFR0xMpZ1gzXF6RxBTsSn4EADucVrbwzSmBsE5ZSfved bKcvz9bI4KCmztBTaSapNLtBCB8x1IFeiUx6tuAtg6zeJYZdPHhEqWxQ02v4fKYekLlJ QCXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=SJWsV0og; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r3-20020a17090a438300b0020fadac08a2si2386402pjg.108.2022.10.26.06.16.41; Wed, 26 Oct 2022 06:16:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=SJWsV0og; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233381AbiJZMbN (ORCPT + 99 others); Wed, 26 Oct 2022 08:31:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233245AbiJZMbM (ORCPT ); Wed, 26 Oct 2022 08:31:12 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A43236D9D8 for ; Wed, 26 Oct 2022 05:31:07 -0700 (PDT) Received: from [192.168.2.190] (109-252-112-196.nat.spd-mgts.ru [109.252.112.196]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: dmitry.osipenko) by madras.collabora.co.uk (Postfix) with ESMTPSA id A160F660283C; Wed, 26 Oct 2022 13:31:04 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1666787465; bh=cVeQ921nr1AcNBVj1P6cg8IcXyv7Hv4rrSLvF9n0vLk=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=SJWsV0ogx4gukVqrHHNKVgKYZ0kQz8qF4ZbwVQbXmfCAcWW4X8jM2jbdSIC6O+ROD mlrhJWseWDEdiODY58uwsEURti2LqQwah7CejmrvhqIDfSJt/tIR1Cnr0f3IUM+G55 QRpxyefWC1CNP6ov7hkqLEMDJXITcPtUtJIoJ0DWwY/Kn9O2PqLXOft56F+tpwa5Fj i1TExjR1seBKD05WzlfypAdVrIKgqz9+cbe8v5VNIG6T/ulg8qYxU5a/nLOYhlY4ey HRJkDF0H5nFUjK5uXNE7oWp4/VdZkAGoPWtxCR8LVla4tW9PUTM7jdP4pf0IMwFpss XHXynQR2p0ORA== Message-ID: Date: Wed, 26 Oct 2022 15:31:01 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [PATCH] drm/rockchip: dw_hdmi: filter regulator -EPROBE_DEFER error messages Content-Language: en-US To: Aurelien Jarno , linux-kernel@vger.kernel.org Cc: Sandy Huang , =?UTF-8?Q?Heiko_St=c3=bcbner?= , David Airlie , Daniel Vetter , Sascha Hauer , "open list:DRM DRIVERS FOR ROCKCHIP" , "moderated list:ARM/Rockchip SoC support" , "open list:ARM/Rockchip SoC support" References: <20220926203752.5430-1-aurelien@aurel32.net> From: Dmitry Osipenko In-Reply-To: <20220926203752.5430-1-aurelien@aurel32.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/26/22 23:37, Aurelien Jarno wrote: > When the avdd-0v9 or avdd-1v8 supply are not yet available, EPROBE_DEFER > is returned by rockchip_hdmi_parse_dt(). This causes the following error > message to be printed multiple times: > > dwhdmi-rockchip fe0a0000.hdmi: [drm:dw_hdmi_rockchip_bind [rockchipdrm]] *ERROR* Unable to parse OF data > > Fix that by not printing the message when rockchip_hdmi_parse_dt() > returns -EPROBE_DEFER. > > Fixes: ca80c4eb4b01 ("drm/rockchip: dw_hdmi: add regulator support") > Signed-off-by: Aurelien Jarno > --- > drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c b/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c > index c14f88893868..2f4b8f64cbad 100644 > --- a/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c > +++ b/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c > @@ -565,7 +565,8 @@ static int dw_hdmi_rockchip_bind(struct device *dev, struct device *master, > > ret = rockchip_hdmi_parse_dt(hdmi); > if (ret) { > - DRM_DEV_ERROR(hdmi->dev, "Unable to parse OF data\n"); > + if (ret != -EPROBE_DEFER) > + DRM_DEV_ERROR(hdmi->dev, "Unable to parse OF data\n"); > return ret; > } > Reviewed-by: Dmitry Osipenko Nit: all the DRM_DEV_ERROR() usage in this function is inappropriate to me. These errors should be converted to dev_err_probe(), IMO. -- Best regards, Dmitry