Message ID | 20240229-anx7625-defer-log-no-dsi-host-v2-9-00506941049a@collabora.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-87727-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2097:b0:108:e6aa:91d0 with SMTP id gs23csp762841dyb; Thu, 29 Feb 2024 16:14:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWvRdp92ePoGFb3bIqAI/DVhi8tiY/Q/nbrDD1F67knux7HJJKDAHYSfgCzoIKkqLM5DSpLfIlN6BxHVXYWorPt8Bt36A== X-Google-Smtp-Source: AGHT+IHDFhgC8RhXwbcEXBOJ/B/oIM+NTKjSxHmVkPjI2+pClsEqFqIFPqq8SDR/+Efr9Ka139l6 X-Received: by 2002:a05:6402:3410:b0:566:ab94:5b83 with SMTP id k16-20020a056402341000b00566ab945b83mr147031edc.23.1709252078423; Thu, 29 Feb 2024 16:14:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709252078; cv=pass; d=google.com; s=arc-20160816; b=ME9R0cSy75TC1mg49VshxUJYTThzP5i3jKithqqYmIbdN/4PDHjzI7ixWFVlIMYUVk 6SE4+aMex//MaN2o3CNzAVzs80HUyKDE+e2a3bOqNG+ZUqZuLGj7dQFPd/qLklSSTk5b zaG6xthkfGJmU2ZnF8kCN0tyTGNUJIQPEFuvPL+qS5WsnZNJFusVNAZxHPjr5B2covcg r5RA39kg1lQlp4e5nEr6aaIfu3JK5+/eDNH/zamgeAkFCczk5cwhiVeHaaYUJFqDgBLG AQ8RdU0CSBVoTKwd7V37P6JttnyiXOvoVaZL/75yh4fInvWXGt9+ql5ierFbV5LUnpqo RgyA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=+nyFIACTroaWiL3ll8MpLSR1PaoGhCAVsYaEIJjfOg8=; fh=EPbsNJMLwlXYTg/MTuk9bwilsoK94uNp6NRacKCAfCI=; b=vHlg7Fc/GCbS2nftShxUuYwf5YDY8Bz1Mzi5bZYhbyv+q2baxnpF1lpMBPGdVLCgSp 0dNwBr1vyt0bPzcp+WBlVSJXg91/9Wd+EY1gKIfWL4+sMF7fs4RMLhOMlQ1afP1gjm33 B++4fj7rZAr3Wd4WufkYSvbo6zWyGU+hX9jYylaAMHC6oHArQeiVUYQCrLg4Qixk68WF Fd7x5Gsmee7owOmsNYLkIOsDrPvrKI3u1dkitGdD3cvE2OIEm8LombxWoTmFbVQgZmY3 dhGNAjUxp3IymTl/GUfN0eoCbNBuPuNxX8jtcEc6RA9czpvzCYAhZYq+vA2VuJRMaw89 BRiw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=bELh1cTn; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-87727-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87727-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id c14-20020aa7c74e000000b0056635572f42si946590eds.588.2024.02.29.16.14.38 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 16:14:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87727-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=bELh1cTn; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-87727-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87727-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 115541F23354 for <ouuuleilei@gmail.com>; Fri, 1 Mar 2024 00:14:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8C1798830; Fri, 1 Mar 2024 00:13:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="bELh1cTn" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 7B3721364 for <linux-kernel@vger.kernel.org>; Fri, 1 Mar 2024 00:13:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709251988; cv=none; b=E+HazQQPaMN/SAzZ6isWvX2QdFpk1/CV/UeMtxsCCS+GIV1fW469jsrI3bGecvQa42aFrlnY+Uv/3L7FcrzGyH+v4KsI6uDpO6rp1ni8TBuhqb2P0pkkOXyV7345Bu2Q5lHfsUqtP5qkoIeQotByNONqCH+gCxqZzXk7X/jREvM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709251988; c=relaxed/simple; bh=plA+/Ds0xvFbb6U3u3M8ilxs/x7ZgpNx1PsraFtKLNM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=pe9B5wD+WmvR1FWp/T9PQKtym8X5wqrcQaM1j+LtqikpxpDBYHCadWNolXTw83ZwXEoEgZql56ICxCU96DGTFh3R+DxJ2psWmvKz270UM6aZwvU5VwOcrKPV7wPtzZrQmJxy5noPP76ZrSgnHaEAN1YedT302oVQQD72fzZ4H84= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=bELh1cTn; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1709251985; bh=plA+/Ds0xvFbb6U3u3M8ilxs/x7ZgpNx1PsraFtKLNM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=bELh1cTnraZfxf8dHy6VCIwRcfxJwFIbKP+rfx9P36tSUl6jdNOa8bfxW+fFHoI4b AXNq+sfqg0CLcRG+1hGv5RyiLTZHEVHEazsZCCTKDuRpgY8mAKwnnFVaJzhdjEfQU7 9PQx302JO3t6shSX/7rjg9Y0noLFaMcqw9rFHg+/EU52m22oKJ2viqQMMTt5NrxTIF 7xForobxy/oTLhbLNT6/Aqb6wMU4kupeYJDyNl1sCc/BZqVv6uJVPV67C2fk+jsko0 itosv+yHr3qgdhs2GtRG1BCw39+AU390RBMuRZLP7EM/+r4gIqsAWRhlq1PGovcjnJ VMl6h2DznZkUQ== Received: from [192.168.1.205] (zone.collabora.co.uk [167.235.23.81]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madrid.collaboradmins.com (Postfix) with ESMTPSA id DEA4037820EE; Fri, 1 Mar 2024 00:13:00 +0000 (UTC) From: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= <nfraprado@collabora.com> Date: Thu, 29 Feb 2024 19:12:15 -0500 Subject: [PATCH v2 9/9] drm/panel: truly-nt35597: Don't log an error when DSI host can't be found 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: 8bit Message-Id: <20240229-anx7625-defer-log-no-dsi-host-v2-9-00506941049a@collabora.com> References: <20240229-anx7625-defer-log-no-dsi-host-v2-0-00506941049a@collabora.com> In-Reply-To: <20240229-anx7625-defer-log-no-dsi-host-v2-0-00506941049a@collabora.com> To: Andrzej Hajda <andrzej.hajda@intel.com>, Neil Armstrong <neil.armstrong@linaro.org>, Robert Foss <rfoss@kernel.org>, Laurent Pinchart <Laurent.pinchart@ideasonboard.com>, Jonas Karlman <jonas@kwiboo.se>, Jernej Skrabec <jernej.skrabec@gmail.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>, owen <qwt9588@gmail.com>, Jagan Teki <jagan@amarulasolutions.com>, Marek Vasut <marex@denx.de>, Adrien Grassein <adrien.grassein@gmail.com>, Srinivas Kandagatla <srinivas.kandagatla@linaro.org>, Sam Ravnborg <sam@ravnborg.org>, Bjorn Andersson <andersson@kernel.org>, Vinod Koul <vkoul@kernel.org>, Dmitry Baryshkov <dmitry.baryshkov@linaro.org>, Vinay Simha BN <simhavcs@gmail.com>, Christopher Vollo <chris@renewoutreach.org>, Jessica Zhang <quic_jesszhan@quicinc.com>, Marijn Suijten <marijn.suijten@somainline.org>, AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org> Cc: kernel@collabora.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= <nfraprado@collabora.com> X-Mailer: b4 0.13.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792280707034610860 X-GMAIL-MSGID: 1792280707034610860 |
Series |
drm: Switch from dev_err to dev_err_probe for missing DSI host error path
|
|
Commit Message
Nícolas F. R. A. Prado
March 1, 2024, 12:12 a.m. UTC
Given that failing to find a DSI host causes the driver to defer probe,
make use of dev_err_probe() to log the reason. This makes the defer
probe reason available and avoids alerting userspace about something
that is not necessarily an error.
Suggested-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
---
drivers/gpu/drm/panel/panel-truly-nt35597.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
Comments
On 2/29/2024 4:12 PM, Nícolas F. R. A. Prado wrote: > Given that failing to find a DSI host causes the driver to defer probe, > make use of dev_err_probe() to log the reason. This makes the defer > probe reason available and avoids alerting userspace about something > that is not necessarily an error. > > Suggested-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> > Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com> > --- > drivers/gpu/drm/panel/panel-truly-nt35597.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Hi Nícolas, Thank you for the patch. On Thu, Feb 29, 2024 at 07:12:15PM -0500, Nícolas F. R. A. Prado wrote: > Given that failing to find a DSI host causes the driver to defer probe, > make use of dev_err_probe() to log the reason. This makes the defer > probe reason available and avoids alerting userspace about something > that is not necessarily an error. > > Suggested-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> > Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com> > --- > drivers/gpu/drm/panel/panel-truly-nt35597.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/panel/panel-truly-nt35597.c b/drivers/gpu/drm/panel/panel-truly-nt35597.c > index b73448cf349d..d447db912a61 100644 > --- a/drivers/gpu/drm/panel/panel-truly-nt35597.c > +++ b/drivers/gpu/drm/panel/panel-truly-nt35597.c > @@ -550,10 +550,8 @@ static int truly_nt35597_probe(struct mipi_dsi_device *dsi) > > dsi1_host = of_find_mipi_dsi_host_by_node(dsi1); > of_node_put(dsi1); > - if (!dsi1_host) { > - dev_err(dev, "failed to find dsi host\n"); > - return -EPROBE_DEFER; > - } > + if (!dsi1_host) > + return dev_err_probe(dev, -EPROBE_DEFER, "failed to find dsi host\n"); return dev_err_probe(dev, -EPROBE_DEFER, "failed to find dsi host\n"); With this addressed, Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> > > /* register the second DSI device */ > dsi1_device = mipi_dsi_device_register_full(dsi1_host, &info); >
Il 01/03/24 07:30, Laurent Pinchart ha scritto: > Hi Nícolas, > > Thank you for the patch. > > On Thu, Feb 29, 2024 at 07:12:15PM -0500, Nícolas F. R. A. Prado wrote: >> Given that failing to find a DSI host causes the driver to defer probe, >> make use of dev_err_probe() to log the reason. This makes the defer >> probe reason available and avoids alerting userspace about something >> that is not necessarily an error. >> >> Suggested-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> >> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com> >> --- >> drivers/gpu/drm/panel/panel-truly-nt35597.c | 6 ++---- >> 1 file changed, 2 insertions(+), 4 deletions(-) >> >> diff --git a/drivers/gpu/drm/panel/panel-truly-nt35597.c b/drivers/gpu/drm/panel/panel-truly-nt35597.c >> index b73448cf349d..d447db912a61 100644 >> --- a/drivers/gpu/drm/panel/panel-truly-nt35597.c >> +++ b/drivers/gpu/drm/panel/panel-truly-nt35597.c >> @@ -550,10 +550,8 @@ static int truly_nt35597_probe(struct mipi_dsi_device *dsi) >> >> dsi1_host = of_find_mipi_dsi_host_by_node(dsi1); >> of_node_put(dsi1); >> - if (!dsi1_host) { >> - dev_err(dev, "failed to find dsi host\n"); >> - return -EPROBE_DEFER; >> - } >> + if (!dsi1_host) >> + return dev_err_probe(dev, -EPROBE_DEFER, "failed to find dsi host\n"); > > return dev_err_probe(dev, -EPROBE_DEFER, > "failed to find dsi host\n"); > > With this addressed, I disagree. That's 87 columns, and the 80-col rule is long gone. Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> > > Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> > >> >> /* register the second DSI device */ >> dsi1_device = mipi_dsi_device_register_full(dsi1_host, &info); >> >
On Fri, Mar 01, 2024 at 09:44:36AM +0100, AngeloGioacchino Del Regno wrote: > Il 01/03/24 07:30, Laurent Pinchart ha scritto: > > On Thu, Feb 29, 2024 at 07:12:15PM -0500, Nícolas F. R. A. Prado wrote: > >> Given that failing to find a DSI host causes the driver to defer probe, > >> make use of dev_err_probe() to log the reason. This makes the defer > >> probe reason available and avoids alerting userspace about something > >> that is not necessarily an error. > >> > >> Suggested-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> > >> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com> > >> --- > >> drivers/gpu/drm/panel/panel-truly-nt35597.c | 6 ++---- > >> 1 file changed, 2 insertions(+), 4 deletions(-) > >> > >> diff --git a/drivers/gpu/drm/panel/panel-truly-nt35597.c b/drivers/gpu/drm/panel/panel-truly-nt35597.c > >> index b73448cf349d..d447db912a61 100644 > >> --- a/drivers/gpu/drm/panel/panel-truly-nt35597.c > >> +++ b/drivers/gpu/drm/panel/panel-truly-nt35597.c > >> @@ -550,10 +550,8 @@ static int truly_nt35597_probe(struct mipi_dsi_device *dsi) > >> > >> dsi1_host = of_find_mipi_dsi_host_by_node(dsi1); > >> of_node_put(dsi1); > >> - if (!dsi1_host) { > >> - dev_err(dev, "failed to find dsi host\n"); > >> - return -EPROBE_DEFER; > >> - } > >> + if (!dsi1_host) > >> + return dev_err_probe(dev, -EPROBE_DEFER, "failed to find dsi host\n"); > > > > return dev_err_probe(dev, -EPROBE_DEFER, > > "failed to find dsi host\n"); > > > > With this addressed, > > I disagree. That's 87 columns, and the 80-col rule is long gone. It's still a maintainer's preference. I soft-enforce it in drivers I maintain. In this case I'll let Neil decide, as he's listed as the maintainer for drivers/gpu/drm/panel/. > Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> > > > Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> > > > >> > >> /* register the second DSI device */ > >> dsi1_device = mipi_dsi_device_register_full(dsi1_host, &info);
Il 01/03/24 09:56, Laurent Pinchart ha scritto: > On Fri, Mar 01, 2024 at 09:44:36AM +0100, AngeloGioacchino Del Regno wrote: >> Il 01/03/24 07:30, Laurent Pinchart ha scritto: >>> On Thu, Feb 29, 2024 at 07:12:15PM -0500, Nícolas F. R. A. Prado wrote: >>>> Given that failing to find a DSI host causes the driver to defer probe, >>>> make use of dev_err_probe() to log the reason. This makes the defer >>>> probe reason available and avoids alerting userspace about something >>>> that is not necessarily an error. >>>> >>>> Suggested-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> >>>> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com> >>>> --- >>>> drivers/gpu/drm/panel/panel-truly-nt35597.c | 6 ++---- >>>> 1 file changed, 2 insertions(+), 4 deletions(-) >>>> >>>> diff --git a/drivers/gpu/drm/panel/panel-truly-nt35597.c b/drivers/gpu/drm/panel/panel-truly-nt35597.c >>>> index b73448cf349d..d447db912a61 100644 >>>> --- a/drivers/gpu/drm/panel/panel-truly-nt35597.c >>>> +++ b/drivers/gpu/drm/panel/panel-truly-nt35597.c >>>> @@ -550,10 +550,8 @@ static int truly_nt35597_probe(struct mipi_dsi_device *dsi) >>>> >>>> dsi1_host = of_find_mipi_dsi_host_by_node(dsi1); >>>> of_node_put(dsi1); >>>> - if (!dsi1_host) { >>>> - dev_err(dev, "failed to find dsi host\n"); >>>> - return -EPROBE_DEFER; >>>> - } >>>> + if (!dsi1_host) >>>> + return dev_err_probe(dev, -EPROBE_DEFER, "failed to find dsi host\n"); >>> >>> return dev_err_probe(dev, -EPROBE_DEFER, >>> "failed to find dsi host\n"); >>> >>> With this addressed, >> >> I disagree. That's 87 columns, and the 80-col rule is long gone. > > It's still a maintainer's preference. I soft-enforce it in drivers I > maintain. In this case I'll let Neil decide, as he's listed as the > maintainer for drivers/gpu/drm/panel/. > Yes, that's right. Comes down to personal opinion. Cheers >> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> >> >>> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> >>> >>>> >>>> /* register the second DSI device */ >>>> dsi1_device = mipi_dsi_device_register_full(dsi1_host, &info); >
On 01/03/2024 10:37, AngeloGioacchino Del Regno wrote: > Il 01/03/24 09:56, Laurent Pinchart ha scritto: >> On Fri, Mar 01, 2024 at 09:44:36AM +0100, AngeloGioacchino Del Regno wrote: >>> Il 01/03/24 07:30, Laurent Pinchart ha scritto: >>>> On Thu, Feb 29, 2024 at 07:12:15PM -0500, Nícolas F. R. A. Prado wrote: >>>>> Given that failing to find a DSI host causes the driver to defer probe, >>>>> make use of dev_err_probe() to log the reason. This makes the defer >>>>> probe reason available and avoids alerting userspace about something >>>>> that is not necessarily an error. >>>>> >>>>> Suggested-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> >>>>> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com> >>>>> --- >>>>> drivers/gpu/drm/panel/panel-truly-nt35597.c | 6 ++---- >>>>> 1 file changed, 2 insertions(+), 4 deletions(-) >>>>> >>>>> diff --git a/drivers/gpu/drm/panel/panel-truly-nt35597.c b/drivers/gpu/drm/panel/panel-truly-nt35597.c >>>>> index b73448cf349d..d447db912a61 100644 >>>>> --- a/drivers/gpu/drm/panel/panel-truly-nt35597.c >>>>> +++ b/drivers/gpu/drm/panel/panel-truly-nt35597.c >>>>> @@ -550,10 +550,8 @@ static int truly_nt35597_probe(struct mipi_dsi_device *dsi) >>>>> dsi1_host = of_find_mipi_dsi_host_by_node(dsi1); >>>>> of_node_put(dsi1); >>>>> - if (!dsi1_host) { >>>>> - dev_err(dev, "failed to find dsi host\n"); >>>>> - return -EPROBE_DEFER; >>>>> - } >>>>> + if (!dsi1_host) >>>>> + return dev_err_probe(dev, -EPROBE_DEFER, "failed to find dsi host\n"); >>>> >>>> return dev_err_probe(dev, -EPROBE_DEFER, >>>> "failed to find dsi host\n"); >>>> >>>> With this addressed, >>> >>> I disagree. That's 87 columns, and the 80-col rule is long gone. >> >> It's still a maintainer's preference. I soft-enforce it in drivers I >> maintain. In this case I'll let Neil decide, as he's listed as the >> maintainer for drivers/gpu/drm/panel/. >> > > Yes, that's right. Comes down to personal opinion. There always was an exception for strings to go over the 80col, and I like it better as an one-liner. So I'm in favor with the initial proposal. Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Neil > > Cheers > >>> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> >>> >>>> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> >>>> >>>>> /* register the second DSI device */ >>>>> dsi1_device = mipi_dsi_device_register_full(dsi1_host, &info); >> >
diff --git a/drivers/gpu/drm/panel/panel-truly-nt35597.c b/drivers/gpu/drm/panel/panel-truly-nt35597.c index b73448cf349d..d447db912a61 100644 --- a/drivers/gpu/drm/panel/panel-truly-nt35597.c +++ b/drivers/gpu/drm/panel/panel-truly-nt35597.c @@ -550,10 +550,8 @@ static int truly_nt35597_probe(struct mipi_dsi_device *dsi) dsi1_host = of_find_mipi_dsi_host_by_node(dsi1); of_node_put(dsi1); - if (!dsi1_host) { - dev_err(dev, "failed to find dsi host\n"); - return -EPROBE_DEFER; - } + if (!dsi1_host) + return dev_err_probe(dev, -EPROBE_DEFER, "failed to find dsi host\n"); /* register the second DSI device */ dsi1_device = mipi_dsi_device_register_full(dsi1_host, &info);