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: 16796 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9910:0:b0:403:3b70:6f57 with SMTP id i16csp2163144vqn; Mon, 20 Nov 2023 04:31:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IEC/3u3mrzu5u9e4IaqWS3RaTDcx931fHYru9x8sf1rMxvR5JrKisahjf1+6WcJLRlBNL0A X-Received: by 2002:a17:903:644:b0:1cc:4598:6f46 with SMTP id kh4-20020a170903064400b001cc45986f46mr4524022plb.57.1700483492315; Mon, 20 Nov 2023 04:31:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700483492; cv=none; d=google.com; s=arc-20160816; b=X98mw1EpNqtSfApxj6Qia9+eBCv7ksQYCfIKOTQFnX38jAqs28HyzibfT6I1WDVJ4x eM+Y/WyE40fRVLl20WM4w3l9hTg/RzvovUO0VSY9UBhC9+FJVgLxu03cnmV3fMi3dzqa HRwQ8KmBpRrKiC4y9O38hAR2VIf77A1vYwu0mnaGSwUEEpG7c6CDml5JYRGxIytnUF9n unz3Diugdmz+Ka6qGVeOGgQoEMsJh6FL+k44PWkGQrX1h//y2Q43gnzZa9TjMT8SUyM9 GO/4W7/rQdh5I6Jc9d0uX8s/VRVbQjISMYG1DeHeXko7Ji62Pt+SdpcNpLvoFDxOGBgp LhUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=QGsD6gDLYxbO1D6bvneYssM5C+bS0J3488HqWlZf7WY=; fh=61MsDxO2nlB28w/gDedjzWsFJxOlFE0AkoXm0k2ZWfg=; b=t2GdAimFpyD0KhW112eoq2psQF088wB+oQPL7kcLAaieTUGc1JIfoY5Jahjh9qRi+V GyOXT+W9CRgyhLOB4EjbNwd/5zy5lLyz+vaizrPeVHZSsPOiY//yXVbl5+X4ytubdvVj rKLBvnOeUZrnUB8godiSLCyIZJMVKJ5EUoUTW6ND/imu1AF04WLPNn0x/g6zJHYtiJYR OsO20Alu1PiQSViEXRdu9JvMGeCQFdktBJLWJHwN+k5/jReueVVwryz4NJuXaDL5IKOg RFFkUhiPhLEyeoeTQ9noE8jU8VhPy3SKQNPmtzE0VN51K8kD7nNvqqC5jH4vfHebur3/ Dgzw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id q7-20020a17090311c700b001c75866c987si8184861plh.584.2023.11.20.04.31.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 04:31:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 4305A806E3CD; Mon, 20 Nov 2023 04:30:30 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233250AbjKTMaP (ORCPT + 27 others); Mon, 20 Nov 2023 07:30:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233208AbjKTMaN (ORCPT ); Mon, 20 Nov 2023 07:30:13 -0500 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AF62FF for ; Mon, 20 Nov 2023 04:30:09 -0800 (PST) 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-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 20 Nov 2023 04:30:30 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783086178301154401 X-GMAIL-MSGID: 1783086178301154401 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,