From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 EA66317E90E; Mon, 27 May 2024 19:12:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716837171; cv=none; b=AerPl/nO/9X3GRumKD/NoRPbat34NcQNu7r0qlutni0VXFl3Y+FYJz75PEZrxadFNPEW43DPK6H7iwTFTmSz+0J1u099huBYQv0iOklJh+oFhklPsQ6bmK60SwwtMevfVnrwDDSBM60mJON05FGKDD4r0cHna/64HrdFCVLgGfc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716837171; c=relaxed/simple; bh=k+3GOm06ypxjNAmu0u2ZGlSrqWl0UI+ieTmcazBEVXw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=C1OiiGqUXonm3pZQMb7LjQ02gyqqix+avd4x40JCx0MR6cKjta1jz42TGuUQFvMIZspr7/FOCfr7NuO9Ni/QDx2LXblyrIkVO5DlqWcfVWOFZDgtWyGSoG06NqEzj+xgiU5SKyNBpqPMyWu8CMUapx50AGpOUg23sZpw+OL5s9o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fc5Uw2Bm; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="fc5Uw2Bm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DE73C2BBFC; Mon, 27 May 2024 19:12:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716837170; bh=k+3GOm06ypxjNAmu0u2ZGlSrqWl0UI+ieTmcazBEVXw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fc5Uw2BmssimLX6X8MiHToiza6O1KDljz1utzT1pXkeaswsXxQ4FnmvO5QUVnkJ2t bMuaC11ABXPZSNSOvY3IF3bCXtwTGsoy3JMLZtazOWo8wbH+/L5Nk6MYj3s/Pl7G+j xKeY3tIRAuPCI7Wc6xVX6rSb7vccnBYdHdiEg8nY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, AngeloGioacchino Del Regno , Laurent Pinchart , "=?UTF-8?q?N=C3=ADcolas=20F . =20R . =20A . =20Prado?=" , Robert Foss , Sasha Levin Subject: [PATCH 6.9 337/427] drm/panel: novatek-nt35950: Dont log an error when DSI host cant be found Date: Mon, 27 May 2024 20:56:24 +0200 Message-ID: <20240527185632.642401239@linuxfoundation.org> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240527185601.713589927@linuxfoundation.org> References: <20240527185601.713589927@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: NĂ­colas F. R. A. Prado [ Upstream commit 5ff5505b9a2d827cae3f95dceba258c963138175 ] 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. Fixes: 623a3531e9cf ("drm/panel: Add driver for Novatek NT35950 DSI DriverIC panels") Suggested-by: AngeloGioacchino Del Regno Reviewed-by: Laurent Pinchart Signed-off-by: NĂ­colas F. R. A. Prado Signed-off-by: Robert Foss Link: https://patchwork.freedesktop.org/patch/msgid/20240415-anx7625-defer-log-no-dsi-host-v3-8-619a28148e5c@collabora.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/panel/panel-novatek-nt35950.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-novatek-nt35950.c b/drivers/gpu/drm/panel/panel-novatek-nt35950.c index 648ce92014265..028fdac293f77 100644 --- a/drivers/gpu/drm/panel/panel-novatek-nt35950.c +++ b/drivers/gpu/drm/panel/panel-novatek-nt35950.c @@ -556,10 +556,8 @@ static int nt35950_probe(struct mipi_dsi_device *dsi) } dsi_r_host = of_find_mipi_dsi_host_by_node(dsi_r); of_node_put(dsi_r); - if (!dsi_r_host) { - dev_err(dev, "Cannot get secondary DSI host\n"); - return -EPROBE_DEFER; - } + if (!dsi_r_host) + return dev_err_probe(dev, -EPROBE_DEFER, "Cannot get secondary DSI host\n"); nt->dsi[1] = mipi_dsi_device_register_full(dsi_r_host, info); if (!nt->dsi[1]) { -- 2.43.0