Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp132221lqb; Tue, 16 Apr 2024 10:43:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVkk3AdCWmZOq2h/n+k8OsC3FsAQKuWJ64TU3IWM+Ase5mXU0kq30xfpY/c5OaiFo1UgVs1j9VrZAJEmVWQ56gmo8Q8TbeTfWU44qtiMg== X-Google-Smtp-Source: AGHT+IEdX96ty2ocDVpwjvKCJKB98Xsy1I32kjW5Umqxalf5Zv4vOCP9s75htAVXV+BZ9yBXhRPM X-Received: by 2002:a05:6214:3007:b0:691:4f29:b5d5 with SMTP id ke7-20020a056214300700b006914f29b5d5mr15579060qvb.60.1713289426859; Tue, 16 Apr 2024 10:43:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713289426; cv=pass; d=google.com; s=arc-20160816; b=imiUuYDwo4DoMBjBD9+UCt/vGAf4WH3y2ODJYkLH0pWQM4CmiLx6/8bkTo/PX8fnu2 KkVluEaiGm6XFaeOMqoX+FEjN1TQ0k/XN9wpOaXsCyDbKPMKryO8zniEhbBigWjg+DgS pPKDCJ08YMw4MPZGFS5aFgNDFfHXMameO4S2SWobElpdfbeSnUHQkWMmKQ19sWmH0FwZ NaXvF7KgfXGRg7OsN9LGChf2S1uZsgnCljdVCbKnXMpvggI8+V7RWpaJtkKSVaeAseZn rK/OMU9SzIreQ0AwSBzlqwz5miqWQmXNzDWNHI+3aeaHXqHgtXHIibwhPA84qa2UEpOr DqPg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :date:message-id:dkim-signature; bh=eUEau/pEpt9AkOO4LFO9sGSkzJlYdG9OShqBDzpNMbY=; fh=iNcalwv4bRQ9wHLsnnf/ocoLbhLJyJ6lqTOPgtTMvYk=; b=SYOKCMCAioox/KL7AlEWPafgKP+WKndes/1ToUC/SV7gk8jPMNh2V++i9PUGTTiymr K1wGXh510/k5uF3+w+yMliv3KJBkLlRsnDuNAMwTZFp4sCcHwmx0fqpaFmhyge31Q8YG g4RbSQhegaTIySARY8xaIDql/yzq8Cmyi2FEvsSm97/qTNP6l2oTycCQyDOFccX5CITZ xqA72j+h6SE6Xlj2w5UKzFPylQE4zxuNbpg92USduL3XgErUAUB1fO8YbaD1RoiwmJfq /e196CbGdQ0rIEw4FSN7tmXDeVKYY/E2/ek1j16hu5AUmcy3S0/HzXu5rcM4ukyFu15M QQgA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="VguIuLX/"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-147327-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147327-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id jh22-20020a0562141fd600b0069b24034055si12506768qvb.366.2024.04.16.10.43.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 10:43:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147327-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=@linaro.org header.s=google header.b="VguIuLX/"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-147327-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147327-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 699691C210DC for ; Tue, 16 Apr 2024 17:43:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E572133982; Tue, 16 Apr 2024 17:43:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="VguIuLX/" Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 21166131737 for ; Tue, 16 Apr 2024 17:43:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713289419; cv=none; b=Wlunv5LVhuxc5U08+R9qKN0qdveoMERrIojdbwNcTjoNr5shKVfutwWpABW95O39aDqEp45bO3/7bJ6BhfpBSpEpyhJyfG7Thq0I0v5vL2g+fY1bftooITyzWWNOW8Yr3hl8y7CUGBH0VF3QSZBWO2wCsEaKed1XZQL/OYnX2Og= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713289419; c=relaxed/simple; bh=6dBR7/U90ulcku8SAcSbBXZb2GmWWXMQ7JiRkQprz9Q=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=jnAQuShx+p/lfYPAB54ehx3e+ng8ZmC+yp/D4dHLOs+fCwpxb2R1mLN15Yb3i3zg+YOXKWHEnNKpmGP4Yr26wTm4VQ/ex4OAXNUtYHQaUPAPGV2SojpIqVW/uiPVE5/61iuhpKBvrLe4XVeE44BT3DJG/9hPYkUa2RnGS+RcXgY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=VguIuLX/; arc=none smtp.client-ip=209.85.210.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-6ece8991654so4229897b3a.3 for ; Tue, 16 Apr 2024 10:43:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713289417; x=1713894217; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=eUEau/pEpt9AkOO4LFO9sGSkzJlYdG9OShqBDzpNMbY=; b=VguIuLX/nA9Nz1vWtjUDhv2rgYjxF3XnrJgZdvfbavfhtNaWu47OnJxxKR1shAjnx9 0ieZ1/hP0YGk3q3MRNpU+eaPycgDlA9bf0paD2VYvkn4tO6DCyzHJUDIViynXvf9JGnJ hlZW+0XK23+bGh3XsxHgYOsZueGngC5N9FbmeMoes2Q0eyxBG8rHtqiMdCIc+5aRT4xP X7AsuahYXfcqN+7wnmJr6t4FyUT8wWCmudFhbD6wWLgJyGCxwj7J7FeJrj9xXNE3vpk5 iNeXFmRENBI8dvQHH1TfxbQ2K6LLh1eoNS34ieA4VTbNzLBIS4iIs6z4DfNqzmAlIAv4 +mng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713289417; x=1713894217; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=eUEau/pEpt9AkOO4LFO9sGSkzJlYdG9OShqBDzpNMbY=; b=Ao2ap0X2Nnusc8OSKXRbbDOd22ZxMUhaEQvss3JlT8bAy+xs4SMtY8Twq3vdQparLr UGxFJXaLiLeQdNvsXNPGr8MmMeVSTD6m7N/M3PIuaUkiIZIg6Fchu9DgLaGa1CRAtmsZ nf3XRGbWSP3levkDkVNmxWHPSPyPzxIHDyOBkb1JHu3gESWfmsuclPGaddmBgns9AlC8 j2O9OAjwePLZsHeTBuXElhi2ko+V27/5/2GfRWGq1KfJ4fH5BxsUSZ1F6rUL4EdcPSG1 rgphtnDGeJ5A4sFYNMlAs9x5T2sVfBJPRVhoyl0RwwF1YWbNvlU74t29yeFKExxuRVMe hcVQ== X-Forwarded-Encrypted: i=1; AJvYcCVlE74YjRx9uDoAWsySKD6duuD9Eg/rN1FSDXUbpkRfJ77AfcGzrmr3YqBzBlPflc9gC92/ngbiw+HpJLuq2XZ8GW7OgQEnNdQpkz78 X-Gm-Message-State: AOJu0YwggQGWzp0DUCaiZBRSOTY6IsMDVUCn7kSusw7Ofwni15rrY+Bw SFX7D62bsL67/MOBWNEoGprqHwvltIA69lz9aZQ++YzLxjh4/AnzsoQ8t7k7G/Q= X-Received: by 2002:a05:6a21:2791:b0:1a8:4266:3d02 with SMTP id rn17-20020a056a21279100b001a842663d02mr15369692pzb.30.1713289417249; Tue, 16 Apr 2024 10:43:37 -0700 (PDT) Received: from [10.36.52.145] ([24.75.208.156]) by smtp.gmail.com with ESMTPSA id gx13-20020a056a001e0d00b006ecf25d0b8dsm9284521pfb.184.2024.04.16.10.43.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 16 Apr 2024 10:43:36 -0700 (PDT) Message-ID: <6a05d4ff-1f27-4b7d-88f2-050288d8dc7b@linaro.org> Date: Tue, 16 Apr 2024 19:43:35 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Neil Armstrong Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH v3 8/9] drm/panel: novatek-nt35950: Don't log an error when DSI host can't be found To: =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Andrzej Hajda , 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 References: <20240415-anx7625-defer-log-no-dsi-host-v3-0-619a28148e5c@collabora.com> <20240415-anx7625-defer-log-no-dsi-host-v3-8-619a28148e5c@collabora.com> Content-Language: en-US, fr Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4v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oaCLvf4WeIssFjwB0b6a12opuRP7yo3E3gTCS KmbUuLv1CtxKQF+fUV1cVaTPMyT25Od+RC1K+iOR0F54oUJvJeq7fUzbn/KdlhA8XPGzwGRy 4zcsPWvwnXgfe5tk680fEKZVwOZKIEuJC3v+/yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro In-Reply-To: <20240415-anx7625-defer-log-no-dsi-host-v3-8-619a28148e5c@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 15/04/2024 23:49, NĂ­colas F. R. A. Prado wrote: > 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 > --- > 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 648ce9201426..028fdac293f7 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]) { > Reviewed-by: Neil Armstrong