Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1217488lqd; Thu, 25 Apr 2024 09:01:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUF2ghqzK65W3nDKlji+HpOpzcxJSOHG/nvw0Rw0W72xewF9HkrK9LHH3e2hii8sc4mLUSzG9tXbDXdxHEYvgyRnxUulV3BH0ZQfIwGMg== X-Google-Smtp-Source: AGHT+IGzDzeR+n+yqDVZAV32ktKMsf8LlWNASd5g8Tn5c7s+AbG53uOb6EipzKheBrv0W3n0Rs+L X-Received: by 2002:a9d:7b4d:0:b0:6eb:9580:6c08 with SMTP id f13-20020a9d7b4d000000b006eb95806c08mr7571344oto.25.1714060883476; Thu, 25 Apr 2024 09:01:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714060883; cv=pass; d=google.com; s=arc-20160816; b=D3lGgO5AwpLLqTyOaZ7k1on6YancLGaztXC6WIBUGqf3OX95e/E5oZwq7JlDAsoAry 5psXycrgsLKpQmJssJPZvMoVOajtun6GaMjcAIvAYXSmddVOhe4msgp5/bbjfydHrV82 wZdY4OCei0Iab3YnvcnfuZ6O+EsfROz8VjLvYGZd4mf34bqbgsdyzmBEaf+S85IcMRoT jlRIajzZXEy6NVqvUsnT639rOqYxDYBRzWZ2Ib46/1klCisyKSg+fLAm2XPWHJtyx/4B CDH/oRCnDoA/6kYqCRfOl6Mr0AeeMSE5fBWlU2FX+cF5p2g+nXPEo7/E0MCac7cBD8Jy FAUw== 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=kckeE+NEI4roa7Me46yLkkObGQIsPjSIT73YQTFPxCk=; fh=owgx32sSHhRaiADlACTA0Kxmpc7T/Cz8KseYOQke4QQ=; b=VIM1AY0EGRHALCUGyjZT+G4SiDzyj63hskipHB4XHlVw9TUUnqdYnidfkbLw6Od8m3 hmfb/8swthMVXeYVE1o5TfYHHiyyujmuK54hfDeR+EujV8LSFKjOx+R3TpozJ1SJI7Zo s/kOGK44o5rhqZ2oeT9y5HZuwjD+VCOMoUdBEH31KKdSkrhJvSERDQq9kf+qcS7m3Da/ Gh6MOSCQ0jQumLk5XP6yE+7ChjvZ06XoBdfFJvjLFRRBLeG+201uxi7M/fM9m1+QpGEG 6peS5LTwwTjzNh9zMYVkG/yOA8JcX870oms+4Ef1BXrKpbjRz1s/PRhlBPTmGvlsBb/+ u7ig==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gB08OIcc; 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-158858-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158858-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 hy9-20020a67e7c9000000b0047b9861b6bbsi3658423vsb.795.2024.04.25.09.01.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 09:01:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158858-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=gB08OIcc; 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-158858-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158858-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 2120C1C20EFE for ; Thu, 25 Apr 2024 16:01:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 10A2F14D2A0; Thu, 25 Apr 2024 16:00:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="gB08OIcc" Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (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 7F11414C59B for ; Thu, 25 Apr 2024 16:00:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714060854; cv=none; b=O0+j0qXuhUNXzY8CGfFotzPbQ11RnujKtmDqXpSHdPg1WR4Gyb8WPWceEu0V0FNjKIy99fcYW5iZCxfWuwyOiDobR28pO26Pa9Zx5somsjCFPXIPDI1t/HhBOQS5ZFzW0TxvKwemaMWBCcclDwJcZCZ44q6VP5ExJjjBnp/hhz4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714060854; c=relaxed/simple; bh=JBXvcCemZK7+GexmKhCeDPXQjou4mKuLIHvf0CFyybU=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=aqnw+MCPHKiZQTttX8q+DCpMal2C/o+pvcnzliQKOENy0BiMA0W4oi+7RDnd3Bl4+KC8oKrYmkEfqIRTaAeiN6tfAnL4YuqMS1BxbQqbUIXU7/SUOGawhX6u8ak+ZbhvUbg0OmCPSEanB+xV0MY35ta4wnTP7uKcH3yOkJrwAos= 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=gB08OIcc; arc=none smtp.client-ip=209.85.128.51 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-wm1-f51.google.com with SMTP id 5b1f17b1804b1-4196c62bb4eso9080085e9.2 for ; Thu, 25 Apr 2024 09:00:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714060851; x=1714665651; 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=kckeE+NEI4roa7Me46yLkkObGQIsPjSIT73YQTFPxCk=; b=gB08OIccV71zTTCV7uVsNzbyR03f4qDMTxOoja5oubEV+WPG1uK31GFBZuoV9TWwSh pRBynavLM4VZzLAqPfVFqEnbVlDmaqJ23ZCnGVlBHpeSgavpLHCe0h2b018kWSSwKrSm VPAgwB8OlU8hwcEtmFFutpqb51bdNu0DZz0Ts9Fb16Vl6MLstWVbzUnz7paGx61mykNJ VDExRWa6DCynzOawUHlsnDCjYF4Sedv1GcUK/Llg14vcwub4lYwh6wWmdqBjw8AlfHxO krnPPSh15NWdvNlSQJ/0W09CLShAotT9GxlwvZ+qv73vdA2wRZRQ+vN9/TX2vX8GexIV OYlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714060851; x=1714665651; 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=kckeE+NEI4roa7Me46yLkkObGQIsPjSIT73YQTFPxCk=; b=RXItWteDNp6Z2n5G3qgMc+RdCmlPvV5oQqAEJGRPcqH1zuBJIEVvf5iepFrLsp1/SN sA+Hw3JvsQE+Il4am5zZVeXwxYshQjudmKPYKQcbruNtHPK6jkYorfNTnbk3m8nBSlB4 eP0PFSNvC3AJDGIOPQDR4wirj77027dzSFKHFOHid+6/KBjeH7t5dsSRfrFrFb0/ZKVm KY0gY3QRx7rLgDJb0QMmUtcPkEryOb+nAajo/FRBO+273/8FOu/kPNBqt8PhZz3Ygnll agGVefUilTvAzafPX11ABqGGhYLdnRJ7gPuaD8uBvBzQT/aK/iN2ObwifRPU/SHbCNTJ t+9A== X-Forwarded-Encrypted: i=1; AJvYcCUk0zuUN9629VP2kaNTuWKj9wQw4WSvbbYEvGEgc4HngqavVGnU9mlonIb//Rw0ZC+29rRc44asn9WAJ9/VKe8wcNZ2VX8y1Q/ivCcX X-Gm-Message-State: AOJu0Yz2uiddKQon88XLVZUbrhxMOd7XQncWMdB7f7s28HuYVwZ0kuuQ owazkrA90yCKwYRT0BpsXUcpHZgKcTp71i5X3WaslF3MNfm3q/64tVQesk0KOJY= X-Received: by 2002:a5d:5642:0:b0:34a:ed29:8d1d with SMTP id j2-20020a5d5642000000b0034aed298d1dmr4312102wrw.64.1714060850776; Thu, 25 Apr 2024 09:00:50 -0700 (PDT) Received: from ?IPV6:2a01:e0a:982:cbb0:15c7:bd9c:c500:ed62? ([2a01:e0a:982:cbb0:15c7:bd9c:c500:ed62]) by smtp.gmail.com with ESMTPSA id v4-20020adfa1c4000000b0034c32e9e2fdsm624252wrv.13.2024.04.25.09.00.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Apr 2024 09:00:50 -0700 (PDT) Message-ID: <85be9e9d-887f-4138-8980-80385ff523fc@linaro.org> Date: Thu, 25 Apr 2024 18:00:49 +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 v1 2/3] drm/panel: ili9341: Respect deferred probe To: Andy Shevchenko , Randy Dunlap , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter References: <20240425142706.2440113-1-andriy.shevchenko@linux.intel.com> <20240425142706.2440113-3-andriy.shevchenko@linux.intel.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 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKk5laWwgQXJtc3Ryb25nIDxuZWlsLmFybXN0cm9uZ0BsaW5hcm8ub3JnPsLAkQQTAQoA OwIbIwULCQgHAwUVCgkICwUWAgMBAAIeAQIXgBYhBInsPQWERiF0UPIoSBaat7Gkz/iuBQJk Q5wSAhkBAAoJEBaat7Gkz/iuyhMIANiD94qDtUTJRfEW6GwXmtKWwl/m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<20240425142706.2440113-3-andriy.shevchenko@linux.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 25/04/2024 16:26, Andy Shevchenko wrote: > GPIO controller might not be available when driver is being probed. > There are plenty of reasons why, one of which is deferred probe. > > Since GPIOs are optional, return any error code we got to the upper > layer, including deferred probe. With that in mind, use dev_err_probe() > in order to avoid spamming the logs. > > Fixes: 5a04227326b0 ("drm/panel: Add ilitek ili9341 panel driver") > Signed-off-by: Andy Shevchenko > --- > drivers/gpu/drm/panel/panel-ilitek-ili9341.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9341.c b/drivers/gpu/drm/panel/panel-ilitek-ili9341.c > index 7584ddb0e441..24c74c56e564 100644 > --- a/drivers/gpu/drm/panel/panel-ilitek-ili9341.c > +++ b/drivers/gpu/drm/panel/panel-ilitek-ili9341.c > @@ -715,11 +715,11 @@ static int ili9341_probe(struct spi_device *spi) > > reset = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_HIGH); > if (IS_ERR(reset)) > - dev_err(dev, "Failed to get gpio 'reset'\n"); > + return dev_err_probe(dev, PTR_ERR(reset), "Failed to get gpio 'reset'\n"); > > dc = devm_gpiod_get_optional(dev, "dc", GPIOD_OUT_LOW); > if (IS_ERR(dc)) > - dev_err(dev, "Failed to get gpio 'dc'\n"); > + return dev_err_probe(dev, PTR_ERR(dc), "Failed to get gpio 'dc'\n"); > > if (!strcmp(id->name, "sf-tc240t-9370-t")) > return ili9341_dpi_probe(spi, dc, reset); Reviewed-by: Neil Armstrong