Received: by 2002:ab2:3b09:0:b0:1ed:14ea:9113 with SMTP id b9csp234635lqc; Thu, 29 Feb 2024 16:12:58 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUhz+R5pulvi7exd8d9JfyDc9mncY5uiCHzG19NioAfag2dxPazxeKUExoOvTjeHMC1JkA9gX0ceUKEWtdyKgkK5RGsML+ZObDa0MgRew== X-Google-Smtp-Source: AGHT+IHT6bXfP1KIT+laaDtKEsqIWlfJHGtvaMh0BQzK7snte4YnxWPgZ1SIj//uJurxU/HyJy+s X-Received: by 2002:a0c:8bda:0:b0:690:4887:90bc with SMTP id a26-20020a0c8bda000000b00690488790bcmr171218qvc.5.1709251977755; Thu, 29 Feb 2024 16:12:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709251977; cv=pass; d=google.com; s=arc-20160816; b=VhV0I+SoqQqbnu54wYElP3/C1mZLuaxZGrDDpW+tVwfE6voMnUTEQkzebQAS+PE4Q3 Tex/yoJulbH2QPppALjDuPSg8MZBzp+extcoQ8Ta50QJRepXkMJ4f7hUfizbZC4b6Jgk sKEK3LUM/moqZt3kd0Bp8akqLk/hdtoNga9JB88+dR4N2l9owQkl4T8QslkvvIwWTYWs Bha7TEHfDCH+qBeTD3ayxoGYx2aA329vI+ActKBDW+4ccLzh1ElcEK+N3yqAde40Rdsa lZprShsxEdKqwUViC9TjZhXPojthRJFDzgrfjCVrIIwXmTthxbWvAA8WaYAC+rOn0gIG IbHw== 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=zmfQvIHA4tHKGsRvlhQ4r1otCVltUoomSwpbJvllBj0=; fh=EPbsNJMLwlXYTg/MTuk9bwilsoK94uNp6NRacKCAfCI=; b=ZyvuwWVd3duKEffWlMazYV9HzHI0JXpqp5SG8W/Lvsj+WgsQaY/EMBgSQko3jwR74L mjfcWQM6dQLH1iPfoO4CVhXcLDfRYDbqtfK71SCwZhkwPrcdcU9ZI2ofg+UVITNtzTiM 7SgVe+jzX3+b6OiXr6EJzb50gYCZLIEa6Y3xwGSeq70HnHxFemU80aZSrvwhPTgSu+eM 9cTYJK/WdGXkQdOz3VN/UWA9usiJbm8DmDW2CuHOwcJw8WPzOEvxXaW+YAHKt7wG8SX1 rcp9RKmj841h+++YG1A/aJh/myl819ynCDx9h2xYC+zqMufrczf260bpcgGK0nIpt850 fwgw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=EJPD0bSu; 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-87720-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87720-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 kd24-20020a056214401800b00690047b8128si2520141qvb.190.2024.02.29.16.12.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 16:12:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87720-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=EJPD0bSu; 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-87720-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87720-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 795381C20F40 for ; Fri, 1 Mar 2024 00:12:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CF9CA1C17; Fri, 1 Mar 2024 00:12:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="EJPD0bSu" 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 853B21FB9 for ; Fri, 1 Mar 2024 00:12:29 +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=1709251951; cv=none; b=DTH6Reln5l5TOU1aYojA9MaYxd/yyYwTT+ldnPaMLXnQSJDTgKjhr3HKuoNAW01Nu1N+kONO79xHIGIrvct/INPHv/OmoxPjsLVQ4oiDtFiBoEpqg11QKCOq+SBkzifixjpnKU7lNuq8B3MxHbCdNh2ODPMNR2o4LgPVbSYqsO0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709251951; c=relaxed/simple; bh=gnT6fVbzwGxli2Y/mzqkTnDg8570zOrbc+nwHaRR3vk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=M91olaCSW+ApQ6ntMZZa0ayq56jEhzqYz/EawagjfjkyQPDoVYC8WffySPe0hf9Q5/BOwBNBZOmdBTZG1MrvUajpzkLPKi0SAmuZ3Yv6qVKaZYwo9Wl8EVieTr9Zmtuom6IaghQ1y/o8icx5rZy0O0hv+tAzoOxyKuNma3HA9QM= 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=EJPD0bSu; 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=1709251947; bh=gnT6fVbzwGxli2Y/mzqkTnDg8570zOrbc+nwHaRR3vk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=EJPD0bSuCixJT6fY8/gLwi/Fr+UYpNod4uZfw2eAXxkQkbdiJ9XVQvnlzO0gTomxk IgF8iDGPhmZsvqLVaamRP9kf84r/VZtfn1qPnAL0v9GgB0HmH+9K1JVcAynmED7xMh ySOj2EmBuIuQcvBmCbti4lh1EAGne009cw+QwqORex2vndvoXh5l6UWYQ0tRNTK6ck j5PNRasF89dtlTJrOgE+L7h1A/y5i0U5D3dAOtwZ8d4dahWTp4NkGNxZCqNRV1juGc CUELRpn3PUqYiiuHClJxJgO1SdE2FOhUc8Xz3Ri5TZvFDeNPqH8RcjTFg3cQ17wF3a FFeExNDQ7bzfA== 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 0007737820EC; Fri, 1 Mar 2024 00:12:21 +0000 (UTC) From: =?utf-8?q?N=C3=ADcolas_F=2E_R=2E_A=2E_Prado?= Date: Thu, 29 Feb 2024 19:12:08 -0500 Subject: [PATCH v2 2/9] drm/bridge: icn6211: 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: <20240229-anx7625-defer-log-no-dsi-host-v2-2-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 , 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 , =?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. Fixes: 8dde6f7452a1 ("drm: bridge: icn6211: Add I2C configuration support") Suggested-by: AngeloGioacchino Del Regno Signed-off-by: NĂ­colas F. R. A. Prado --- drivers/gpu/drm/bridge/chipone-icn6211.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/bridge/chipone-icn6211.c b/drivers/gpu/drm/bridge/chipone-icn6211.c index 82d23e4df09e..ff3284b6b1a3 100644 --- a/drivers/gpu/drm/bridge/chipone-icn6211.c +++ b/drivers/gpu/drm/bridge/chipone-icn6211.c @@ -563,10 +563,8 @@ static int chipone_dsi_host_attach(struct chipone *icn) host = of_find_mipi_dsi_host_by_node(host_node); of_node_put(host_node); - if (!host) { - dev_err(dev, "failed to find dsi host\n"); - return -EPROBE_DEFER; - } + if (!host) + return dev_err_probe(dev, -EPROBE_DEFER, "failed to find dsi host\n"); dsi = mipi_dsi_device_register_full(host, &info); if (IS_ERR(dsi)) { -- 2.44.0