From patchwork Thu Jan 4 12:41:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quentin Schulz X-Patchwork-Id: 18707 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp5594423dyb; Thu, 4 Jan 2024 05:02:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IGeW2KkNg2fMnZx4AZRbk6C7m4n3n1CY7Wzwba2VtpAnLQMPay/vaA/GgyArWNcE2arI2B6 X-Received: by 2002:a05:6808:3c86:b0:3bc:166c:b53d with SMTP id gs6-20020a0568083c8600b003bc166cb53dmr661189oib.46.1704373345163; Thu, 04 Jan 2024 05:02:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704373345; cv=none; d=google.com; s=arc-20160816; b=sUeXdxYLCDiMmhyHCZdvZ8yOi5fDZU/XTGIH//Tb87e+mM33ehfZo1YxzAd0ku71Xl WCjIuUpb1C7M1VWwqZYX8J1fiOer/FLnkEd0sEm0h/L+ClYQbYtwULnPNEXHkELoO9iI FpJkEi6HszxQoX21OsTmG5n67wurRsvV+T+63qyhMNZT12RK9wNZwx2+A8ddgX5t6i77 nl52AFkgGPymfDHPweUlknPE9WjzEXFPKwbhmapm3W9TZRQ2FrkNdTuby3tEUW/meIer OVHD0LPrzGIJiWAZU9n/WJ4MV9PUwlO8mXg4kJOoFctarCq0nK2qCXAxSki8VyopHChW wM0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=yImOLANUCYTyixM4fBSi/HMwaLSFtHK4Xlal8sn75ts=; fh=zL5V5Qa/Cm+cYsSx/i/aRqSBIZSDNxCrc/UdPyDFK4Y=; b=D96R2bug095gVZYUkSszUZ6r0lKccTmrUD5ESeRAn4NYOyWdUE4Eov6N08qU5XauU3 TyLg08RgNB7DaO82mxhNRFwpULnjRiYi3a89A0SkUlmv2UH0dNTORbfSUr4QMTHPUAUJ FRuGflBJDxHfs/62octR3iZxnvPdeKhmrNC7ym7P1gssl6+9lJ4oc9qmNuOnKD15zBh/ wVDDM55ryEgUp0IHB7Ecszg+McMi/Jfh81Gg/sFXl2riVykgvP6/lJ3soHMxWCOLshcc E3sAeoh07cz6S2Tc/6c14sXSM6SqDGLegXWSrJBK1MtBq69L5OZyxmqr4iz71++I8ruy LfiA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-16673-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16673-ouuuleilei=gmail.com@vger.kernel.org" Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id v21-20020a056102227500b00467aa9af63dsi18433vsd.749.2024.01.04.05.02.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 05:02:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16673-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-16673-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16673-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E708C1C21E40 for ; Thu, 4 Jan 2024 13:02:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5B7C7224CE; Thu, 4 Jan 2024 13:02:01 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from smtp-42ad.mail.infomaniak.ch (smtp-42ad.mail.infomaniak.ch [84.16.66.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B6D9422327 for ; Thu, 4 Jan 2024 13:01:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=0leil.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=0leil.net Received: from smtp-2-0001.mail.infomaniak.ch (unknown [10.5.36.108]) by smtp-2-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4T5R7F66TfzMpnVZ; Thu, 4 Jan 2024 12:42:17 +0000 (UTC) Received: from unknown by smtp-2-0001.mail.infomaniak.ch (Postfix) with ESMTPA id 4T5R7C6rXxzMpnPs; Thu, 4 Jan 2024 13:42:15 +0100 (CET) From: Quentin Schulz To: Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter Cc: Quentin Schulz , Heiko Stuebner , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Quentin Schulz Subject: [PATCH 0/2] drm/panel: ltk050h3146w: error-path debug message improvements Date: Thu, 4 Jan 2024 13:41:56 +0100 Message-ID: <20240104-ltk-dev_err_probe-v1-0-8ef3c0b585d8@theobroma-systems.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Mailer: b4 0.12.4 X-Infomaniak-Routing: alpha X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787164984572288699 X-GMAIL-MSGID: 1787164984572288699 This hides an error message if EPROBE_DEFER was returned when trying to get the reset GPIO. This also makes use of dev_err_probe in lieu of hand-crafted logic inside the driver. Thanks, Quentin Signed-off-by: Quentin Schulz --- Quentin Schulz (2): drm/panel: ltk050h3146w: only print message when GPIO getting is not EPROBE_DEFER drm/panel: ltk050h3146w: use dev_err_probe wherever possible drivers/gpu/drm/panel/panel-leadtek-ltk050h3146w.c | 23 +++++++--------------- 1 file changed, 7 insertions(+), 16 deletions(-) --- base-commit: ac865f00af293d081356bec56eea90815094a60e change-id: 20240104-ltk-dev_err_probe-3c93c1b09242 Best regards,