Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1707313lqp; Mon, 15 Apr 2024 14:50:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUFnWIPdEobcORE8hR+H06OaT90p56VqEJbUceEKOyJ3X3bDQEKcFhBnQcij1wIOUqPnmI2X2Fx87Y2AqyzY/dfztT+IVouInKvG4zpcQ== X-Google-Smtp-Source: AGHT+IGKe4CFHCnLep/00VQVxHQg7MQmNFszCXfc7qiiJW0zXqZTtBYOe/WDMFzkHBTMoyDKNnDE X-Received: by 2002:a25:840c:0:b0:dcc:4b44:3377 with SMTP id u12-20020a25840c000000b00dcc4b443377mr9566957ybk.25.1713217814817; Mon, 15 Apr 2024 14:50:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713217814; cv=pass; d=google.com; s=arc-20160816; b=xDF9AuWL5DPpAvSzFZyvqgYExQ6M49z/WOvPyaqDatrg0PscbHFTaxp2i+Y5jwiVGb lnqPMYFejNLnSOhO6y8Smse8M72PnPy5lOYIey2f5LPGzdvy35pcdB4p9yYBHOxmWDjy aCoDcSuk20OTItZRQIB5haHr7F+Oqgqr0G7aEvIII0OHKc7/4UIU4tib5NJL4PQxxYKK pm4eFOCA+vnTtanMxg53cK2h81h3vo1yHLhiLob0rXSl2INvt3fkN+eAsoo2dofWmwpq pyQhounZwvMK7771xekRexFvI2Ks+nwMRxwpsca4xfHz9+AVTq66/+tIZZV8P2/yXKA9 NH4Q== 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=tkFCEbg1GlkOmkxon9wU3dfX7avknqhW7RHBBgo542M=; fh=cWSJOWGJAjcdyFDFoN1PB+PJKfgvopPPk2h8P3Abz50=; b=FlAt9s5+LrmtbIF2X8t3y5TXojr0pN1iXkR3XaB1TzZgn17KIPWZQzdBUPN0W0OBV8 LwfqUZX6xvywLaKW/udKBaTlc8g1kgvx7d7Azryd9vIKd3+K8nKuw60StMiHmGnz+Pf/ 7R+z6ua32gpjzLhEWFiSDyOOi3juC5L28zOVD4R2byUsUyobbWnomGZg6lfp6noTsVZT 8tPc2NeJEhcKTQA9dZFEH733Hv29raCokjzIZoMkm+2Td/ovo9RKLqQMuS0i5ziYbfhT Gy8tTDMgTrscdTFLbRrLhCbdKWDUydh17fowjnOkGpgT3QXTRjRgrugs/QorNB9ge45b Ms1A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=HGpAB6Ks; 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-145947-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145947-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id eu13-20020ad44f4d000000b0069b1ed8ea7bsi10816458qvb.258.2024.04.15.14.50.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 14:50:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145947-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=HGpAB6Ks; 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-145947-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145947-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 88A481C21B55 for ; Mon, 15 Apr 2024 21:50:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 788A5158873; Mon, 15 Apr 2024 21:49:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="HGpAB6Ks" 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 4E845157474 for ; Mon, 15 Apr 2024 21:49:54 +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=1713217795; cv=none; b=ESlTN7rSY4xbT3hyt4r8/7KZlBHYRZrtQZImmjn7DDKAGgxpAvYC1nsrwfCodDVgDQJ1i6ChX15BFpHl24KEGjutB0us457D2zVdNOVtt2vaWRH3LToODzgRI+9RVD1Wsn7d6ACm3eLiow9duLpwUN7BdCTIVklMmlgAAYwfnoQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713217795; c=relaxed/simple; bh=CqRRZ3SdRs2AKDofOFdE5z8wbNfu+DzJZeFkuzir6+E=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=RtywJ0U/8FKMO3iIuaO1wXUZqAlXpTwsIzoIPpWBpKMnC8wAic/kZgD9l3/I1gJfuhqXijIML8+yzTr01HpReXD/A2COVU16G88ZDW91ak4UOSsbJ+8+cbrwrMhCs9Yti09241zmgSRrKshNTv1fXwGYFmvLI7+YVgN9eWkLDLo= 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=HGpAB6Ks; 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=1713217792; bh=CqRRZ3SdRs2AKDofOFdE5z8wbNfu+DzJZeFkuzir6+E=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=HGpAB6Ks0srXa9q5YGWBcG6HZCLeMdYZVd87NcLvTuMLczZ8wZdWAfqbsK4KcjxVP 75gwFocS0t5IpkNT483UmktJhlCBuM8I4B6wOO8MjErcEOn1ERyYz8flFpkj+7Bu32 4M2Wcy7u/1Crd3Qc/rBl2YGZw4b8Z5iPhcsEXfUix1iqPXgF4opDjF/LHzl6xhZb5+ 8z3LcHlHWmuyXmaR5aKmNJip/42Wv7ckauud0voeiV/Z2WgDPBeOk5hRg6Gv8dFGNr 1jYM1MX3TAZK0nt2jDzOMAnsH4ykzZBZT+j+Gdzyp86p++xv6YZNF22Xz8lfrEuo7d QDs1wCCaTREPA== 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 D33403780016; Mon, 15 Apr 2024 21:49:48 +0000 (UTC) From: =?utf-8?q?N=C3=ADcolas_F=2E_R=2E_A=2E_Prado?= Date: Mon, 15 Apr 2024 17:49:30 -0400 Subject: [PATCH v3 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: <20240415-anx7625-defer-log-no-dsi-host-v3-2-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 , 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. Fixes: 8dde6f7452a1 ("drm: bridge: icn6211: Add I2C configuration support") Suggested-by: AngeloGioacchino Del Regno Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Laurent Pinchart 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