Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1394996lqh; Mon, 6 May 2024 06:39:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVKCFeXLm9HsvKZBoTrL5W8d0/1WacZNxQOUrStwc8AzlDmKHpmXfK3nO7amJVO5wITkwMQwUXmVjD/w/7BXu5fa7IC1BhlR4UjqPH+3g== X-Google-Smtp-Source: AGHT+IGSumo14IM/TV9GlL3f9XW+/ZJhyjop16fxZ8UrYWYoDYYoYnWDqvDHnjtLca1vn+22k8Cj X-Received: by 2002:a05:620a:4113:b0:790:c18f:5d94 with SMTP id j19-20020a05620a411300b00790c18f5d94mr21872200qko.4.1715002740350; Mon, 06 May 2024 06:39:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715002740; cv=pass; d=google.com; s=arc-20160816; b=ZuyoqKruDNMoo+BxMjbzF9munPt4wAhysPEXOf11UsnIy8RTOFKjrT0Zy9hAiwvWYq aDNJJkioDv3ICQ4s9hPspydmaCIiHP6jTbAeqUGz1uRkLtfnKH5ktC1LGGmnDER5noPi 4YvM8EOwHtxBJmSOLHRAV/FNyh9YT2O7gyUgwgTnN7Eb/+Sv4mbYwEWEoSiypHZQwseG B/OHy/5eWBdnOL1dEoKUXFu5P755JsMTM3jvmTORTRGNZGGQp3fWdDWFm0MIXpS2W0Ca jirNngARm+wX95kptPBkMQdh0DAWKpNdsY4MLEPfJGeWinPuTdM2oeD1Hm85Yj9HW4kB xPLw== 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=d/M+nbQZghrYWQgFZi3Igy/SC6rg1+xGJ3oQ4bcPWKQ=; fh=SuRMajwH7N2ZLVBLirbkCwTFKIhKCObxyHKAw4nU6hQ=; b=vw+fHx2rVOG4TFECddiSC3JQLFisrLf09J+IvLtfvQrssEqpjpAHRBzg6Y7lNlcbS9 lbrzMN8sJct1ET4lhcLWROYImc++J8QpeWaZKST4OajNBF448c8PxBwWU/euK9DN9C32 7eqF+FkPCIEDakkaUfHsI/QCh5OdeuTMyzzBs10DCVQehiwydPEZ8/SbJmEyL0CirLC7 Pzp6b+CgJ295s6p77Lacsa+g36GQvFZuUdYgiQFJALDZG2+lHXt775C9m1pQuse5nDmB tVsbtJYecRDnmqd7CpccZV6H+BGW+mMI/w0Lclt2h1dstZBlQk5kJAKVfP0GuOZVxfI6 UHUw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ikbmr446; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-169904-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169904-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id m3-20020a05620a290300b00790eedcf2f7si9893089qkp.637.2024.05.06.06.39.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 06:39:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169904-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=@kernel.org header.s=k20201202 header.b=Ikbmr446; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-169904-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169904-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 B52641C22E55 for ; Mon, 6 May 2024 13:38:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 57C5C8248E; Mon, 6 May 2024 13:35:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Ikbmr446" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 80F6582486 for ; Mon, 6 May 2024 13:35:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715002542; cv=none; b=qoJ6OHQoTyNYdMCJC4PC0O2huMMSsYpKlMZWYjPCdz6rGTp339/xRWG/ykAuoqHS6wjqr1OeGXESapSYeZkiOy3Xrw6u7Jm+xMmdJvLbV6MBFHa5+KZHTbhAvFDKL1C09nRPn1QJagcxQKH1tb+I5YeKq2EBul657RqI2B2Oo4o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715002542; c=relaxed/simple; bh=On4XVAth8phH/tpwuPnVAjW8rZ3xEljXuSTJvjxVCxA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=beUUaIhFHWyMJReVCMSqYcUKb0fOOyIdgU/qcKfOs2Vt7Pfal9TleSiwDZwaUEsyuWTVHcxrGIo99kBf+7LFQc3WcHxp5A4ATRTJQc4yO1SG6fPYfg1srnU3IzY1DMIRINo4WQxXnH2Dbkdgdr2YYWdaTvhSSQGyluX8IqacSjs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Ikbmr446; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC444C116B1; Mon, 6 May 2024 13:35:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715002542; bh=On4XVAth8phH/tpwuPnVAjW8rZ3xEljXuSTJvjxVCxA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Ikbmr446+4FNMnf+X2Ixk0yrmfaW3BrQGq12yjTcqCoCnSMkfSMw79qQvU1rgZfqu JcZnBDtaLaFpqmQqg4UdyeA5sK5j3exP0iGyduTW+eyccA9s4j2R2u7Lm954PYjFJ1 Q+l9MRMFtFOtcpDQ8ztJ8OYkO3Ce1eEN/UUkyu6VIt2vdXkRs8dxE10Y7teetNDRns cdh+7BrTVQUTngjQ2ZR5sArhQPeeXTR/doaIIdckPjZqmAcuvwIr3bYhciLCreXU9j 6zdG+E+/fBgrr4+SEsziVEUOj+pHa3QSTlHgUxUB4CL6ONgrBQh8PAJVMZlOYWzcoi BbhbiM5RK5trg== From: Michael Walle Date: Mon, 06 May 2024 15:34:37 +0200 Subject: [PATCH 08/20] drm/bridge: tc358775: remove error message if regulator is missing 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: 7bit Message-Id: <20240506-tc358775-fix-powerup-v1-8-545dcf00b8dd@kernel.org> References: <20240506-tc358775-fix-powerup-v1-0-545dcf00b8dd@kernel.org> In-Reply-To: <20240506-tc358775-fix-powerup-v1-0-545dcf00b8dd@kernel.org> To: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Chun-Kuang Hu , Philipp Zabel , Matthias Brugger , AngeloGioacchino Del Regno , Sam Ravnborg , Vinay Simha BN , Tony Lindgren Cc: Daniel Semkowicz , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Michael Walle X-Mailer: b4 0.12.4 A missing regulator node will automatically be replaced by a dummy. Thus regulators are optional anyway. Remove the error message. Signed-off-by: Michael Walle --- drivers/gpu/drm/bridge/tc358775.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/bridge/tc358775.c b/drivers/gpu/drm/bridge/tc358775.c index b7f15164e655..54aea58a3406 100644 --- a/drivers/gpu/drm/bridge/tc358775.c +++ b/drivers/gpu/drm/bridge/tc358775.c @@ -675,18 +675,12 @@ static int tc_probe(struct i2c_client *client) return ret; tc->vddio = devm_regulator_get(dev, "vddio"); - if (IS_ERR(tc->vddio)) { - ret = PTR_ERR(tc->vddio); - dev_err(dev, "vddio-supply not found\n"); - return ret; - } + if (IS_ERR(tc->vddio)) + return PTR_ERR(tc->vddio); tc->vdd = devm_regulator_get(dev, "vdd"); - if (IS_ERR(tc->vdd)) { - ret = PTR_ERR(tc->vdd); - dev_err(dev, "vdd-supply not found\n"); - return ret; - } + if (IS_ERR(tc->vdd)) + return PTR_ERR(tc->vdd); tc->stby_gpio = devm_gpiod_get_optional(dev, "stby", GPIOD_OUT_HIGH); if (IS_ERR(tc->stby_gpio)) -- 2.39.2