Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp703194rwi; Wed, 26 Oct 2022 06:18:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5BWWFBQy4Us59vJMdOJ6A0xPEmPMS6A03IANR8nGJ3A3Tp03GDIgRnEx1PJWkqj5/SCQo6 X-Received: by 2002:a63:d314:0:b0:452:598a:cc5a with SMTP id b20-20020a63d314000000b00452598acc5amr38540390pgg.299.1666790329534; Wed, 26 Oct 2022 06:18:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666790329; cv=none; d=google.com; s=arc-20160816; b=C0q9m7hS/aT56YP1mYPId7d4nkWq/jIEzaH3w1BnymA9nDDecT+bG02GiP7lzvrK94 S1hS12sF2KpGKVqRca0h0dfHV8Fj8DSjZa9s6reqeXtZVCgT9T63SvD581Er8A5Mb2Pg zz+sAi+2TJzXw+3393E3Z84e33m++ZszgyrsxZD63ccmd6xJG3S4wfyixGhvNRtmf7/N oyMqs3C+pCNm5Pre3sA7/rmI6QlVtk/ALW4lgVLYzzFwTjepc2c80cKErAsR9zKZO0Bk HqqSM2igoAb/jrT4o7AsEKfz0US2eQxtF47iQadZZlk0hYzAaqgCC77+7Gst66zpxXxA AqqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hVlTEDNXqc/fdmdheJRXcBghemReuWQuEg72Ug1yjCQ=; b=z/RwNEn6m8ixSHBXkhm+6Zgjy57mNqxWWGMjREDKlSiMkB0c8T7KH62XJHzvipUMgF VcbHLWLz4nORanB60JgMjvnLcPpRgUpvXC6aNuljvfHUs1fIne4sLwly7uwQcJRYB/2i pQq8nIydUzByzA3IELgwold+p1Xs4hOPjUANEtlkyLzFmsrJ8kw2kqQ0em+0CdfuRtlX Ze9ycvkzbpY1C+HoDOWEc+zCsaID5Xx9MdSHQuKdzFByiimH3BQySH4ycFe6bbq8b8Cg 3Yl/bfpwqHpjFPAzT1xrzJGsiKo0+zoruAkjHUs+T0nEYl/WaGkWXisIp4hqLGWUDneK jGfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@metanate.com header.s=stronger header.b=w3hIoexZ; 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=metanate.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sm15-20020a17090b2e4f00b0020af39f326fsi2544887pjb.133.2022.10.26.06.18.37; Wed, 26 Oct 2022 06:18:49 -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 (test mode) header.i=@metanate.com header.s=stronger header.b=w3hIoexZ; 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=metanate.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234021AbiJZNNt (ORCPT + 99 others); Wed, 26 Oct 2022 09:13:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233571AbiJZNNm (ORCPT ); Wed, 26 Oct 2022 09:13:42 -0400 Received: from metanate.com (unknown [IPv6:2001:8b0:1628:5005::111]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A795CFBCD8 for ; Wed, 26 Oct 2022 06:13:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=metanate.com; s=stronger; h=In-Reply-To:Content-Type:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description; bh=hVlTEDNXqc/fdmdheJRXcBghemReuWQuEg72Ug1yjCQ=; b=w3hIo exZgL3mE1EU8J0QZCFZNzGgmAd71kq7c212s3cOAdKD8+tZiGPsFE6mss3OeQR5/Uskrv1benxejF pBbY4CleScuxjuKMp53MaE8jpI4TNnwx0xbL0q0mFS+mLpqbTVBLfkR61L5NRVCubvbp1hZ+JDsb4 W8DypmVA8cWH+TKpr+g5cs0t79owvqcvK0+ly12gX2X8ZZfBvt5YrUe+J8TJN/60VY1r6N+vcwUh/ ljCbL/Ks4N+TH8g/yWDp3ZlVtnlgQZLpYK7eP6WK76ijUlRW6M5PmzmI4UZ3icuQ8KSJhQkRTSbZS +fBzphM6n/OH5uZhpqNty1IjV2CtQ==; Received: from dougal.metanate.com ([192.168.88.1] helo=donbot) by email.metanate.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1ongDr-0007Dc-Mv; Wed, 26 Oct 2022 14:13:33 +0100 Date: Wed, 26 Oct 2022 14:13:32 +0100 From: John Keeping To: Aurelien Jarno Cc: linux-kernel@vger.kernel.org, Dmitry Osipenko , Sascha Hauer , Sandy Huang , "open list:DRM DRIVERS FOR ROCKCHIP" , "open list:ARM/Rockchip SoC support" , "moderated list:ARM/Rockchip SoC support" Subject: Re: [PATCH] drm/rockchip: dw_hdmi: filter regulator -EPROBE_DEFER error messages Message-ID: References: <20220926203752.5430-1-aurelien@aurel32.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220926203752.5430-1-aurelien@aurel32.net> X-Authenticated: YES X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RDNS_NONE,SPF_HELO_PASS, SPF_PASS,URIBL_BLOCKED autolearn=no 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 Mon, Sep 26, 2022 at 10:37:52PM +0200, 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"); Can we use dev_err_probe() here? There's no DRM-specific variant, but that is already widely used across the DRM subsystem.