From nobody Sat Jul 25 21:59:22 2026 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (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 624923A8FEA for ; Mon, 13 Jul 2026 08:22:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783930942; cv=none; b=G07yI/iWoSG0xLbxyoKIkZb4cc6bi3RstMJs4DRYa/4f+Q+cwngtCkyLa0r5qFUPF57WunhVILZz/nsZNyG7jr59zzcl+H6NTNCbUBu30cTa3u9egzuar5WNOoKps58ND+1MYAG/tQw6EBZzYDplkm8r22MSYyrpy40MH5RRg8w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783930942; c=relaxed/simple; bh=Qlb3SnGIt9Ics+yOTjEuNKOz0J6Lln3r0Gd9A5VuLCU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tc9xUIFhY0G187MbNTD5PYyB1EthI4hfmqtxGB4elD16u0pn4D7z5D5thi8D5Bh2BGiNTVj0GSlUGQ0hFbPql5FEwJw3f/iEqDU7cggC5MAYzFAjrXD0f4Y1yWKpBv4fq4N2HCEf2HhC+Cl8TC/QLJeWbnX4cpSWfEfpnYaUFjw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sigma-star.at; spf=pass smtp.mailfrom=sigma-star.at; dkim=pass (2048-bit key) header.d=sigma-star.at header.i=@sigma-star.at header.b=pe2oi7UB; arc=none smtp.client-ip=209.85.128.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sigma-star.at Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sigma-star.at Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sigma-star.at header.i=@sigma-star.at header.b="pe2oi7UB" Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-493c7902f47so26232005e9.1 for ; Mon, 13 Jul 2026 01:22:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sigma-star.at; s=google; t=1783930936; x=1784535736; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=xQcjUHDQsEmNnfkTtBFa/uOHpWpolesI3ffGjo8pqaw=; b=pe2oi7UBiIpPKhNVmLejJxYVVCeAQ2uYDCJpFl6ddZtsjT8YPKHpkoY2xGomJDpawQ r0H8U/uF6ZFjRwQ9YmFarCv9EhZ5Zc/L6SAwKay1aP3Cz+EmKYV6iAtofiDCqyeJUeaD YD68wCOHRsdbMi6egOf9C5DOj98q8OhVnTaoJTfXFkJLWCm4VJA0VovYOZ8nqWgrC8Mu OLhY5SL25mLvRLTvej3RTxbMS5Yr1jN1BfvEtFw6UYgnx/zxUAgYIh9a7mld2/1g/Ljo jSkmSfybO6yjNXQNQvSvCZNYElci90BycnjvpEdt54hJzu7l+b15mnl5ksx80HXO/10N lX0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783930936; x=1784535736; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=xQcjUHDQsEmNnfkTtBFa/uOHpWpolesI3ffGjo8pqaw=; b=Y92y+hoQUF/HAErMf2V7pdJgCNZl8DLrRDlyxbNoEVmpoNlYXOdaZKfwg3VxZ9jzd+ u9xVi137f2n54tY42WggpYcMzn/qUq2nX3xhb3u8aDyhTyWFkeAC+FLpC8FqCMCFjUMA D9lBBHh5C07DY1xkCB1iGslcDR8LH1ZzzJt+YJjJNEYloFpGnWN1/rslmV9whAFAhRAB 9DsdwJKgg7SxA9nAnIY8G71eX4AkGg+8ROsK2BmFJS4co5BEZKOyJpMyoyMKqZnE+Bz9 yeI02hvp2wZjWDqYpkvfugLUEgPjBderNqmM7lH46HVNrvv/iMchT52U4WN0cNkwC5tU exAQ== X-Forwarded-Encrypted: i=1; AHgh+Rq2xX4TDLIIkkYmtrNGEa8cRi1FVgIggIdJTXbBWxKahNJhk/6bReTa5taNmQ7VjC6+hUiYyi8xEQ3qt7k=@vger.kernel.org X-Gm-Message-State: AOJu0Yy3YqGtGYMjaK9e5EK8vQ7R/zrCVqrSwGtBkpg4xoA/CjQj2b8R GcOfiIRxwDRE2jn4qb5Vnrgqg/YxsrMit8tt/CUBiUcSU9W39afCKTz9R+PcUnDlLEk= X-Gm-Gg: AfdE7cmXBEHxwIDhQ3U3s+1x6+eGOmwyv6k+MNabcwpF7ZEfMuto9Cbt9QcDwPsY/pd tYBzfKVd7NFGNT1U5mw7rcOUXEmLpr8B5KvOHDFd2oCDPgDe2Kj3oy0XgfA7Hfpk8kvTecep45M p8S6rYMVw6O3Ja50xEs8RvmiO//bOnVgwfAs7aDNZ6t/4L81hH/SDjAGERUZubr9XL7DIvQXY3z KJT7fsoTluc7Fq1adk0GDFU7i20PnRPp8QHksWp1LNRqMo54rXfFWW0TYM+3BIcELkKBypCTmaY Gyg9wiY/1HEBblKlmtexfFs4ZMenx6i15QZgvi9wgXtbdyGC8ekrMKeM9QhMbuj+effyDY7LWus xJJn3Vw9ofW/SfRsQWxSAbSyqdekFZ91ym+WnVPhzIBzvMKhrTtkbCAEdco1qUxAzcGGP0SYdnh wfRjIYPF2H9Qt1D0ol2Lv/o+omfEe1KsBLfUHARA== X-Received: by 2002:a05:600c:37cf:b0:493:c4e1:40a6 with SMTP id 5b1f17b1804b1-493f882e97fmr71475255e9.32.1783930936201; Mon, 13 Jul 2026 01:22:16 -0700 (PDT) Received: from localtoast.corp.sigma-star.at ([82.150.214.1]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-493eb6ff432sm332879075e9.4.2026.07.13.01.22.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2026 01:22:15 -0700 (PDT) From: David Oberhollenzer To: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linusw@kernel.org, dmitry.baryshkov@oss.qualcomm.com, neil.armstrong@linaro.org Cc: jesszhan0024@gmail.com, upstream+drm@sigma-star.at, Julian.FRIEDRICH@frequentis.com, David Oberhollenzer Subject: [PATCH] drm/panel: ilitek-ili9881c: do not fail probe if iovcc is absent Date: Mon, 13 Jul 2026 10:22:13 +0200 Message-ID: <20260713082213.75759-1-david.oberhollenzer@sigma-star.at> X-Mailer: git-send-email 2.55.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Commit 4c95b2b7d49e ("drm/panel: ilitek-ili9881c: support Waveshare 7.0" DSI panel") adds an additional iovcc regulator that other Ilitek ili9881c based panels apparently do not have or need. The commit goes out of its way to make usage of this new regulator optional, dutifully testing if the field in `struct ili9881c` is NULL before touching the new regulator. However, in the probe function, it unconditionally fails if devm_regulator_get_optional returns an error. devm_regulator_get_optional() returns -ENODEV if the regulator is missing, causing probe to fail for other panels that do not have an iovcc-supply set in the device tree. Fixes: 4c95b2b7d49e ("drm/panel: ilitek-ili9881c: support Waveshare 7.0" DS= I panel") Signed-off-by: David Oberhollenzer Reviewed-by: Neil Armstrong --- drivers/gpu/drm/panel/panel-ilitek-ili9881c.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c b/drivers/gpu/dr= m/panel/panel-ilitek-ili9881c.c index 0652cdb57d11..6c8d02712566 100644 --- a/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c +++ b/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c @@ -2562,9 +2562,12 @@ static int ili9881c_dsi_probe(struct mipi_dsi_device= *dsi) "Couldn't get our power regulator\n"); =20 ctx->iovcc =3D devm_regulator_get_optional(&dsi->dev, "iovcc"); - if (IS_ERR(ctx->iovcc)) - return dev_err_probe(&dsi->dev, PTR_ERR(ctx->iovcc), + if (IS_ERR(ctx->iovcc)) { + if (PTR_ERR(ctx->iovcc) !=3D -ENODEV) + return dev_err_probe(&dsi->dev, PTR_ERR(ctx->iovcc), "Couldn't get our iovcc regulator\n"); + ctx->iovcc =3D NULL; + } =20 ctx->reset =3D devm_gpiod_get_optional(&dsi->dev, "reset", GPIOD_OUT_LOW); if (IS_ERR(ctx->reset)) --=20 2.55.0