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 07ABD196DB4; Thu, 6 Jun 2024 14:15: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=1717683350; cv=none; b=rWU88uslTqGath7BhqzdxORN5W7absszsKQsfNueYPQqccgWYjjY4YTr00v5rDHAvwAg3Jk5Iz/CghYbARu9re2rPclaLwzhIGN+7j3p0AVo1UEq1Ab1Tf5WgQ8ULuu4n0NGp0Qt0FctC4/o30jejJE9jL3DkPJ6BEF1591GPz4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717683350; c=relaxed/simple; bh=MEWw4HsybF8ep8yms4ao/2lTb6OVVdW5mxPx+9zFpmU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=fXVt5Y4Ld1NfxZqSw7+zSFU3y2ajJznkwxQsFz+tc+BtuctwxH/wyNVuDnyz0NX0aDxcLHZeFet/rpyfQQpQpbW7YS8nSwJDe2uh0nbh3Uh/9KgpWyl2O2TRc0vFdxUkpn++5opUTAmxBWJM17EMTKN6bptzvq6yOJA99NVvH6o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kOXXEJNT; 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="kOXXEJNT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D9496C2BD10; Thu, 6 Jun 2024 14:15:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1717683349; bh=MEWw4HsybF8ep8yms4ao/2lTb6OVVdW5mxPx+9zFpmU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kOXXEJNT0t64yzn+7JUyfanEF+0NLZQrtT1DPhyAXjfVVIPPcDofsHA6JXxrK+dzl HbAu/vlHCxE55oTx8/Z2l9lHzAlRcfzhmX9vw33NBZRQ3Rj1ToWD3DpJ2LAI3ceA1M 9K0GgaX7DVHKbg1AjhMEjSishn/jc3yhbG6Ushts= 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.1 231/473] drm/panel: novatek-nt35950: Dont log an error when DSI host cant be found Date: Thu, 6 Jun 2024 16:02:40 +0200 Message-ID: <20240606131707.488827656@linuxfoundation.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240606131659.786180261@linuxfoundation.org> References: <20240606131659.786180261@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.1-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 5d04957b1144f..ec2780be74d10 100644 --- a/drivers/gpu/drm/panel/panel-novatek-nt35950.c +++ b/drivers/gpu/drm/panel/panel-novatek-nt35950.c @@ -573,10 +573,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