From patchwork Mon Nov 20 12:29:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quentin Schulz X-Patchwork-Id: 13461161 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 96B5EC54FB9 for ; Mon, 20 Nov 2023 12:31:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=H67EtUGOY5EEbfKfrsfG2jEmCDvyBiVVlk+iXixgJbo=; b=eSUIpLprfx/kpl BJ8R7QAwp23utomdtU7CiaDxSFuAy+xjzGA4/tq3/vuSfNjk46E1jhhxfGgcUUqeBsTDyvGgnDM09 LKbwAqVlnOoSYmNMLEPob6SY6n4hB4R+uUxElGnJNfix+YXys4CRvVuMZu8eha7GWJJkwmC0Cxk20 FwRSxYjJX33Oj/Ms69AuRf0C87I8R0Uznr+2RuhL6tucm9/MspRMG3exJtWt16XpRCEZNIrj4EfJ9 /6LPPlTeqy7C46iZWrrOJQwlfKNfREoxDzOIGuh2ARvAhDqtK6B+f9oVSHLFw4Et0qUSY5zDKKXvo hAPWe4+UOI/XQtoudG/g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r53QY-00C0DS-0f; Mon, 20 Nov 2023 12:30:58 +0000 Received: from relay9-d.mail.gandi.net ([2001:4b98:dc4:8::229]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r53Pu-00C020-0q; Mon, 20 Nov 2023 12:30:32 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id 7E158FF80E; Mon, 20 Nov 2023 12:30:04 +0000 (UTC) From: Quentin Schulz To: Sandy Huang , =?utf-8?q?Heiko_St=C3=BCbner?= , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Mark Yao Cc: Quentin Schulz , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Fabio Estevam , Quentin Schulz Subject: [PATCH v2 0/2] drm/rockchip: lvds: improve erroring out when drm_of_find_panel_or_bridge fails Date: Mon, 20 Nov 2023 13:29:47 +0100 Message-ID: <20231120-rk-lvds-defer-msg-v2-0-9c59a5779cf9@theobroma-systems.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-Mailer: b4 0.12.4 X-GND-Sasl: foss@0leil.net X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231120_043018_866970_05F4F3F0 X-CRM114-Status: UNSURE ( 9.04 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org drm_of_find_panel_or_bridge may return a different error code than EPROBE_DEFER so let's not overwrite it. At the same time, let's demote the DRM_DEV_ERROR message to dev_err_probe so that the scary message isn't shown (by default) whenever EPROBE_DEFER is returned to not mislead users. Signed-off-by: Quentin Schulz --- Changes in v2: - add a patch for not overwriting return code with EPROBE_DEFER - use dev_err_probe instead of DRM_DEV_DEBUG - Link to v1: https://lore.kernel.org/r/20231117-rk-lvds-defer-msg-v1-1-1e6894cf9a74@theobroma-systems.com --- Quentin Schulz (2): drm/rockchip: lvds: do not overwrite error code drm/rockchip: lvds: do not print scary message when probing defer drivers/gpu/drm/rockchip/rockchip_lvds.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- base-commit: 98b1cc82c4affc16f5598d4fa14b1858671b2263 change-id: 20231117-rk-lvds-defer-msg-b2944b73d791 Best regards,