Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1707880lqp; Mon, 15 Apr 2024 14:51:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX+zuM+AxFNfdCU0S1RcWkw2bAZKWI/S1oNYIFzrrLrWFz5mAm5/xkCDyfhXBMdYarig8Q0qhVq5rgMxLRSZr0Zj32MZEzx9GnfR9wxWQ== X-Google-Smtp-Source: AGHT+IHDPfb+RXzTujgFULsiWWgz/P+Bx95PtlK5H887vw8FXuAtCrXzvSPMsZfiN2DLvOXRfI8r X-Received: by 2002:a05:620a:47c2:b0:78e:bd2f:1088 with SMTP id du2-20020a05620a47c200b0078ebd2f1088mr440376qkb.4.1713217905262; Mon, 15 Apr 2024 14:51:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713217905; cv=pass; d=google.com; s=arc-20160816; b=v4Ogfif2Lc2B2mt1EE+DKt6n0K0JFIfDOAx5mimZdefk2M0bTaKqSzSwyfAxPdYdX+ T2oLheFyqVuz8NXxlT/twPz2vHYFqe785pHgD2Qe2btbYmjMyQF7dyBcMtvNhnxRioEq mU9CCMfmiiZkWxpWn46dFt1NbesgiJnFzJJQGiicHS/+/FQzH1JrfeiEyGVNHDR9lpUG QMX2c4vnxbE1bsXa9voSEPeKL7vD6AnQj2daeJGfhsjC+P5w1ECznQ7nKLsGV6XCF3Tk P4/Xfq6RZourlZXlJJe4UrC/wMPrtnbmW1RduRTpomFWK9rUYKrVrbA+k4qkMMeyCYU3 OYhw== 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=ulVW55CZxPbIdk5RWBVYTRNobyY48tqchp/jpFQrzD8=; fh=yA05Hg+dY714kVs7TGb36NLSzPvYqXggUtf57CWzrvM=; b=JMVr/sj9ZcPTrWDnVxH9dqh3VSmJtz54zpAGd2WAji8vrEFjurOK/1Zl17ZOA42o7c cwhDffq3tabe883uwDl6MP7rGL/Vy/RaOrZL+ISu/GJayC/oewcVrpf6MjqPtey+MVAz guvJfuuhHB9ctFnYXwnMezzcdrHtAuBvKRls5ybgRlb8zHmt8q2hpnC+RwOsIoxqBDCd NxAe46BFNmEVwY7iKv7CbogRrxbby6pb6Nwlzjc58XmAMyYSAH8+JRzgy/NLHIAqwNYK OAnpd+IpvQnA0QesRfcTnSa6r5+sq2ps4i0/2RfSTYPcFBqMRJj5loUzsA/rlgVF15Qx QF8g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=4vAkfOSk; 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-145955-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145955-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id bk34-20020a05620a1a2200b0078d69c0b59fsi12295654qkb.85.2024.04.15.14.51.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 14:51:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145955-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=4vAkfOSk; 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-145955-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145955-linux.lists.archive=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 886D41C221A4 for ; Mon, 15 Apr 2024 21:51:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9E4B8158D94; Mon, 15 Apr 2024 21:50:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="4vAkfOSk" 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 8128E15AAAC for ; Mon, 15 Apr 2024 21:50:23 +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=1713217824; cv=none; b=MD9QsC4dKgY+R9HJrZJQbOCyXAR7Pa3xRKC3oCFUByyjDZvYt0ZSe39GxwVQdOy3IVZY0GRi0um74ciH7djA9NQT0jGouw2Y7ZCqlP4vCU9jvWdUavpLajoH5OnJLfxvA1HVowCvxLif/KoWhh3MocwelI5ZExVVcFdl+LVHyo4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713217824; c=relaxed/simple; bh=Jrt7Z0J7fCt4+JVJZqqS5FDIaFBkB4pyTTZI0XtPT8s=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=F3yrjCXY4Bl0QiPSlVISOQM8kJ6GdMUwHvLY+sT/wocdQmmi2g/TaWYWTV3olpFCz68tBknsFzDRIwc1G1mWS3uuuEFATg9pBdG4bOr470P+4k/quwEHbnQbn4lJ5NpRG1PYj0MDOY/v0wQyg2+XBhZk9QfxldEkECVQuGQq7vQ= 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=4vAkfOSk; 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=1713217821; bh=Jrt7Z0J7fCt4+JVJZqqS5FDIaFBkB4pyTTZI0XtPT8s=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=4vAkfOSkdyhBWA227C3yqkMkbVT2ZMxx6JcxKmlpgmPibs5ty7NSxL7/7PeldCPQb +qyZZLNRjrFx8oon6MZbFU0h2UmAShr9c7nAlazYRTU5sESnGFOypozpnaX3GFX1fg beNK7na4B0NsQNmsUdnoiNJRfJdES5iHbulhtqtvugfxDJF5mpsp66RIr0+PSVEL2j 8cFvRo/TjSbT22ImYkgz5xKLNrbxGCa543cXC9L/85MfM9lPWgdstW7URUCaaTdIFc TUAll+jgNm3UgNlp4A3oQ3y8M6GM7fLMfnY5sodnlSpPIBGtNgXap6dli2hOfEfpEj FXEDYT1xZLWzw== Received: from [192.168.42.226] (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 EC12F37811CD; Mon, 15 Apr 2024 21:50:17 +0000 (UTC) From: =?utf-8?q?N=C3=ADcolas_F=2E_R=2E_A=2E_Prado?= Date: Mon, 15 Apr 2024 17:49:37 -0400 Subject: [PATCH v3 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: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240415-anx7625-defer-log-no-dsi-host-v3-9-619a28148e5c@collabora.com> References: <20240415-anx7625-defer-log-no-dsi-host-v3-0-619a28148e5c@collabora.com> In-Reply-To: <20240415-anx7625-defer-log-no-dsi-host-v3-0-619a28148e5c@collabora.com> To: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , owen , Jagan Teki , Marek Vasut , Adrien Grassein , Srinivas Kandagatla , Sam Ravnborg , Bjorn Andersson , Vinod Koul , Dmitry Baryshkov , Vinay Simha BN , Christopher Vollo , Jessica Zhang , Marijn Suijten , AngeloGioacchino Del Regno Cc: kernel@collabora.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, AngeloGioacchino Del Regno , Abhinav Kumar , Laurent Pinchart , =?utf-8?q?N=C3=ADcolas_F=2E_R=2E_A=2E_Prado?= X-Mailer: b4 0.13.0 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 Reviewed-by: Abhinav Kumar Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Neil Armstrong Reviewed-by: Laurent Pinchart Signed-off-by: NĂ­colas F. R. A. Prado --- 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"); /* register the second DSI device */ dsi1_device = mipi_dsi_device_register_full(dsi1_host, &info); -- 2.44.0