Message ID | 20240228-tidss-dev-err-probe-v1-1-5482252326d3@redhat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-85663-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp3586026dyb; Wed, 28 Feb 2024 12:13:32 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWAUvAovTewGpikX3yCd3Gh3zozSVHeurKjo1OSK8fkeUJmmCip25NLcyvt3xtWWZjDwWFgC1Z/2LNiy31SFknA4JcM9g== X-Google-Smtp-Source: AGHT+IFv0ipJs+xG6T858Jzk6aziKGAdYWDjUfFOV0a7eOADXIaIlkuYPiW8mySP+L7Yt+LGhzjI X-Received: by 2002:a05:6a20:d807:b0:19e:a9e6:baf with SMTP id iv7-20020a056a20d80700b0019ea9e60bafmr443097pzb.0.1709151212355; Wed, 28 Feb 2024 12:13:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709151212; cv=pass; d=google.com; s=arc-20160816; b=rJC0KAdEutyUq5bGdSdrRqz5WbmdpeQwsOAQ1Eq7Dpw3HwC8ih7iywn4siXC+M0+BH 2vMYBTW9cBgnymjixuJHx7/l17jRDU+onzbr5vKRDKl2ndEWdhL74lFyPUoQTuayL7fs MRPNgIo49Nq1xeKWoydbB8Mw1xftubJjkWpeLc/ge7G6m4RMbrcLYt/8eN0EUeYAD9ox 5bhEVO+hfsH2DFnWGGMSUn5SMHbRMbZ7Pb4YqMENv8eETffbAgBOAsbMxXgLOXbZCKUt jIQaq3ayzyOi3AfQJO4ZNbnJ15qkmkkBLshAO8aFviQX/b3u1v8A9iK5Tw3s0veIqLrq jNew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from:dkim-signature; bh=lt7Z2bfGFfZb7GW+qc4A0EHIW+vtSShzIyaaG+Gg6bc=; fh=UkpW8xvIfhaMjuwv0R76kj/jcNNEWCtX5mR+lBl9R+I=; b=fW/lOZYiIJCwOe9aZOu2ouBHuwSt/wsJbJmxn5ZP/3fAzsBNCsDYi/ix93XN0CEVVu XPNt5QjHbYmLMzqqrtNpqPOWENcX0cCsg0d4Icg8bpM/EqT7ENh9Ato2EXQMtd9zMnZj 5QKwyDqTmu3+nJUdPSLstJ74mveqWsuNXyXRsBJh+mgl4PZ9bwf7uBmUTL4pv527vQyj jV9xUyUIdOgrLxliPpnttZAohiQdxUF0f2aqAuhSsw9y74K83CwHXrZrQZPsVvSrQyNg vNfD9W2I4oDNPsE/B3JX/5CfPHAaspXhjgCWLKgPwWgSKgoaTSV7ef5tXVpWd0E6zaab C6qg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QYd4rGVN; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-85663-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85663-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id i23-20020a635857000000b005dc9c8e5051si208657pgm.426.2024.02.28.12.13.32 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 12:13:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85663-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QYd4rGVN; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-85663-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85663-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 53598288FAF for <ouuuleilei@gmail.com>; Wed, 28 Feb 2024 20:12:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C9DFE7443C; Wed, 28 Feb 2024 20:12:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="QYd4rGVN" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 798EA5E07B for <linux-kernel@vger.kernel.org>; Wed, 28 Feb 2024 20:12:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709151148; cv=none; b=P0VblcsC0ImeqaQI7n51UkdUX87N/JFsWiCeX9gS/cYqbYZ4pc0Egl5kfW8e9FwHZz1bWTXNkHQWOxCHcOp5QPdzNRZkU1eOWd1E4CZn8GIKpKZp3hEC+YkpOytW8JlDkJta6DyVQUMZBiJ3EG4qqbo4kgSWk5TPS+CHvUjpA6I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709151148; c=relaxed/simple; bh=vSCY86DjYJ6LoNtj3P/+29GiTUr7GSnsdZ1KbZ/S9k4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=MHtCiFAd3egjI7+NzKC5AsRkroWTAog3k3ObNh3Q0KyN1h9j7pGwIlLtOKk2KOWmyCuhr8pj5WZvcEmKMkiUx1mlkbtFLF+dtFR/9j68BeLtu29rup5Qyqvn/no5nmbVyBxSNKFdb7DjNnOyQswipMwM2zLgQPcgQ88Gi3+k6wI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=QYd4rGVN; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1709151145; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lt7Z2bfGFfZb7GW+qc4A0EHIW+vtSShzIyaaG+Gg6bc=; b=QYd4rGVNz42HwTXwVh/CnrUqL9scxOT4b187fxp8/zizkNIH9VE7viRSSNt6rlqsGG8rTV NZrrkm9QTToFbh09zN/O7VDdVDD4gs9armgdoJNi+/gGFE+/v2rtLQOjtWK+QEFJ5g2ZBG 7ZS6FBysQzKoi/dbxeDoibgQHFMR8DQ= Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-212-lFeeXlUaP52Od5Om9zpcVQ-1; Wed, 28 Feb 2024 15:12:23 -0500 X-MC-Unique: lFeeXlUaP52Od5Om9zpcVQ-1 Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-787b27005b7so14667685a.3 for <linux-kernel@vger.kernel.org>; Wed, 28 Feb 2024 12:12:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709151143; x=1709755943; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=lt7Z2bfGFfZb7GW+qc4A0EHIW+vtSShzIyaaG+Gg6bc=; b=aBdhR6baeZgMnVLH2NoUWqSQtkg3hrnS12jg8RoDfMinibxrqVlaFxpcqKT0zzVUTJ uqRJopZjJZUvaVU5jDxcX/0YDw4bVsIlNE3dmih6lfYxqazsGx+N4mP3+/sPNntL1JT1 bEKwN6HKjESORBSloXXx6meupzeOmuJ0PMzYczgZuM6C9YFRbChMJKmSMWVVUEK0QYTh cjin5Jz9NB4ykMbSncKpDastrIapNs8QnJZkQmWULBF1TVZayNPa1wM7RdMnt7Pw2fyQ z9dFBgHZKtGMnofTV3YJdsiJ4UElRdtHBbBXjw6DlNAqoBQCc8d6mxHUgQDADbGQwsAb DGSQ== X-Forwarded-Encrypted: i=1; AJvYcCVu49AqaiGfPl0mU0oZTYd0yMZQhRTMZ7XA4tTOpxyX5grqq/eIEAyhw2HzvpP8UD9cPvIG+eRxwOfbV9gyXgFU7OpSdarDAl2vDH3X X-Gm-Message-State: AOJu0YwVNFO1kmApdGvVwdLFLwcLA9wRj0YtzOtSdKeolzNmj6oL8FPy 14Zor/bQ8qyUKxhmM2f35XQkev4lFPXdaDPIQ5BLaP6zHK7eF8dyzwWPCs58woMRKh1AYn9ElTx bI/PRfVkAQdtS1Ktv8rkIym8mlI92r7G5BPHihNjSTPlxCDYYDhT5WrcYSf4Vsw== X-Received: by 2002:a05:620a:1108:b0:787:f452:df60 with SMTP id o8-20020a05620a110800b00787f452df60mr97193qkk.47.1709151143417; Wed, 28 Feb 2024 12:12:23 -0800 (PST) X-Received: by 2002:a05:620a:1108:b0:787:f452:df60 with SMTP id o8-20020a05620a110800b00787f452df60mr97173qkk.47.1709151143120; Wed, 28 Feb 2024 12:12:23 -0800 (PST) Received: from [192.168.1.163] ([2600:1700:1ff0:d0e0::37]) by smtp.gmail.com with ESMTPSA id z1-20020ae9e601000000b007873213b29csm122762qkf.49.2024.02.28.12.12.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 12:12:22 -0800 (PST) From: Andrew Halaney <ahalaney@redhat.com> Date: Wed, 28 Feb 2024 14:12:06 -0600 Subject: [PATCH] drm/tidss: Use dev_err_probe() over dev_dbg() when failing to probe the port Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240228-tidss-dev-err-probe-v1-1-5482252326d3@redhat.com> X-B4-Tracking: v=1; b=H4sIAJWT32UC/x3MPQqAMAxA4atIZgM1+H8VcVCbahaVRIog3t3i+ A3vPWCswgZ99oByFJNjTyjyDJZt2ldG8clAjkpH1OIl3gw9R2RVPPWYGcNUF2F2VeOog1SeykH u/zqM7/sBYg+Xc2UAAAA= To: Jyri Sarha <jyri.sarha@iki.fi>, Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>, Maarten Lankhorst <maarten.lankhorst@linux.intel.com>, Maxime Ripard <mripard@kernel.org>, Thomas Zimmermann <tzimmermann@suse.de>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, Enric Balletbo <eballetb@redhat.com> Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Andrew Halaney <ahalaney@redhat.com> X-Mailer: b4 0.12.3 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792174941687554029 X-GMAIL-MSGID: 1792174941687554029 |
Series |
drm/tidss: Use dev_err_probe() over dev_dbg() when failing to probe the port
|
|
Commit Message
Andrew Halaney
Feb. 28, 2024, 8:12 p.m. UTC
This gets logged out to /sys/kernel/debug/devices_deferred in the
-EPROBE_DEFER case and as an error otherwise. The message here provides
useful information to the user when troubleshooting why their display is
not working in either case, so let's make it output appropriately.
Signed-off-by: Andrew Halaney <ahalaney@redhat.com>
---
There's definitely more spots in this driver that could be upgraded from
dev_dbg() to something more appropriate, but this one burned me today so
I thought I'd send a patch for it specifically before I forget.
---
drivers/gpu/drm/tidss/tidss_kms.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
base-commit: 22ba90670a51a18c6b36d285fddf92b9887c0bc3
change-id: 20240228-tidss-dev-err-probe-fa61fb057029
Best regards,
Comments
Andrew Halaney <ahalaney@redhat.com> writes: Hello Andrew, > This gets logged out to /sys/kernel/debug/devices_deferred in the > -EPROBE_DEFER case and as an error otherwise. The message here provides > useful information to the user when troubleshooting why their display is > not working in either case, so let's make it output appropriately. > > Signed-off-by: Andrew Halaney <ahalaney@redhat.com> > --- > There's definitely more spots in this driver that could be upgraded from > dev_dbg() to something more appropriate, but this one burned me today so > I thought I'd send a patch for it specifically before I forget. > --- Makes sense to me and I agree that's useful to have that information there. Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Hello Andrew, Many thanks for proposing this. On Wed, Feb 28, 2024 at 11:02 PM Javier Martinez Canillas <javierm@redhat.com> wrote: > > Andrew Halaney <ahalaney@redhat.com> writes: > > Hello Andrew, > > > This gets logged out to /sys/kernel/debug/devices_deferred in the > > -EPROBE_DEFER case and as an error otherwise. The message here provides > > useful information to the user when troubleshooting why their display is > > not working in either case, so let's make it output appropriately. > > > > Signed-off-by: Andrew Halaney <ahalaney@redhat.com> > > --- > > There's definitely more spots in this driver that could be upgraded from > > dev_dbg() to something more appropriate, but this one burned me today so > > I thought I'd send a patch for it specifically before I forget. > > --- > > Makes sense to me and I agree that's useful to have that information there. > > Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> > Logging in /sys/kernel/debug/devices_deferred was useful for me, so Tested-by: Enric Balletbo i Serra <eballetbo@kernel.org> Cheers, Enric > -- > Best regards, > > Javier Martinez Canillas > Core Platforms > Red Hat >
diff --git a/drivers/gpu/drm/tidss/tidss_kms.c b/drivers/gpu/drm/tidss/tidss_kms.c index a0e494c806a96..f371518f86971 100644 --- a/drivers/gpu/drm/tidss/tidss_kms.c +++ b/drivers/gpu/drm/tidss/tidss_kms.c @@ -135,8 +135,7 @@ static int tidss_dispc_modeset_init(struct tidss_device *tidss) dev_dbg(dev, "no panel/bridge for port %d\n", i); continue; } else if (ret) { - dev_dbg(dev, "port %d probe returned %d\n", i, ret); - return ret; + return dev_err_probe(dev, ret, "port %d probe failed\n", i); } if (panel) {