Received: by 2002:ab2:2441:0:b0:1f3:1f8c:d0c6 with SMTP id k1csp166839lqe; Thu, 4 Apr 2024 03:09:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXAPWfdQveC0Q35h12AdTGYARiW4U/BRTvzcgv7/hFpfFBRCkcY7peFzxGrSJHmjJAmnFoClZjV59JDJYCbjjXbjmC7Mw7sOOEUe04byw== X-Google-Smtp-Source: AGHT+IGgRMvPd+N2ljcqU7b4SVrlCOo+7+7zwBen7y7aF9QVUOA19oDWd3WZC0Jaeu3o9qBVxvXC X-Received: by 2002:a17:906:1391:b0:a51:7a72:294d with SMTP id f17-20020a170906139100b00a517a72294dmr1295602ejc.2.1712225388981; Thu, 04 Apr 2024 03:09:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712225388; cv=pass; d=google.com; s=arc-20160816; b=O/V24fg/8kVHYQisVaspGdiP+qlvHWigcvy7GBJyGU3MhtApE7DlQMltXIt6b+JFhj HpTTRb5SziOaOEvDKxKhxtULUgKm6UwnZUxuVea0cNoSHV739oJeqch2015a4MtlHY+C 6n8O0z5z2I2rfYN/DIMgHgmqIhsCwdyR/Kl+NHUTYQBcnb4ggDw4fn5lxAYEO/eGQRxC g6FeVFbmRjuFe5tUNDEc2pyqHI/uUDCGiHxZLE6Xxh6tZV8GfFDNSgYedkWRoyAIzuF1 l9KSvnSWHwAxxccRi1s6nGnjuRzWH6a7L5pI2FIfugTTzXXjTMLFMvTmwBl1Yxvn8tp5 A5XQ== 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=9gdreFmOsn9hnQ9/3et99EfVumTY2yhwD/QDrRRb3VQ=; fh=/jk1soZ67kY45wwA5dO1m3vHl8pS77oZshdF0U4IcXI=; b=wL37HJe79Q1mgRa9Q8SgvFqEkEFq1fgkkjh5U6Dj2fbaAf11vOKKg6/cXLhzDvpmoZ Ru9G2fijitKpK2DUqPXUNRG2NIA4i2ZIh6mmqV6c8CuKqKzMvwrY9HrP1BxHv+U8+wHi EjKOOqxYk3X+EJdv2KBbQ5f3duG2YV1SLHhFlixGV1tPC3+030yAvMYtejBlTusf+sTL kf9eRwxJLqqG47t8+Cb6S8hr7ZEq7KHdxQk5YrXGVVdVV3BKoBWjZLP8dvh7HCZdDurt sjVe4SE6qbO14wVgvIFwpnbqMdbASntU7w1c/4s9ioDEurbw4oDxARKh0QKBV/tax/6f 0EoA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CLIyDXgC; 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-131220-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131220-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id z9-20020a1709060ac900b00a49b5e830d6si7296853ejf.442.2024.04.04.03.09.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 03:09:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131220-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CLIyDXgC; 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-131220-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131220-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 648C61F23DC2 for ; Thu, 4 Apr 2024 10:09:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1081781ACB; Thu, 4 Apr 2024 10:08:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="CLIyDXgC" Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (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 529647FBB6 for ; Thu, 4 Apr 2024 10:08:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712225298; cv=none; b=JZ9KNt6DHUagT14+wJpAGsEuMqmVkhFknPp9KHruDXhOQUqYGvVLkJ0Ko1S806tjRMCdQzJI05LG65HNa5sNZiq3f0NYyWt9yAoWMOHYNo5moM7++LJOngqcggssWOp1ltHoAd2Q8hjGbZ6ea8qzflWaPoNLNbzfHguO+T8Q1Zw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712225298; c=relaxed/simple; bh=irilOr1F66J72zSf/iZ/FxY1c7hsuCBIEPtG00CVG8k=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JUej4wf3cTx6D7SKWOjpLAgEYi/BP7xTHyV8TaRLNy4m6CJUjFkU846QAOahNacmLT25jnN0ujreOCv2R5eKpBv39KiB8LBBjFeN4W2ZcEONMI6SaMwqrKGUeGFbTvSqOex+p2H7qgZHQ7/tAxFbWg6H4qg5eSwUG/tLHdES3xE= 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=CLIyDXgC; arc=none smtp.client-ip=209.85.208.46 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-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-56c5d05128dso900951a12.0 for ; Thu, 04 Apr 2024 03:08:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712225295; x=1712830095; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=9gdreFmOsn9hnQ9/3et99EfVumTY2yhwD/QDrRRb3VQ=; b=CLIyDXgC85XIjzyJ6IHHDeQ6722QQjxl6N44zrZt5w1FUsLOYZG0V5jkMiaF0XPPBc 7UJJzxYiMv+iUaBP0iyIvbx1SFxwN77UhhCL4/81N/tpCjy6fuGdhUBUXoTA7lEjBPK+ JTzpp5RICvPgz31iy/2dHRcL3r73nfMe2xUBPwMEkqMJLzXUbQZQ0Ry7m9TtNpHmq2q5 3gCXXr82Zi5nb0ggYydVMS4rOKI5CjAZ0WLBr22vkIGeGUiVl6p0z7nKziQovLaaWEzO x8PKKOlo7GBmO29eINqK/1vLAL1VMNC10DDRnoVtkAd5e4nXLF/vfQ6fhxtLkj5dyjtx sX6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712225295; x=1712830095; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9gdreFmOsn9hnQ9/3et99EfVumTY2yhwD/QDrRRb3VQ=; b=VuQx5ApeRKzkBUV3/h6yg/v56hgd2IMqijy1VwXAeHefjiMsLzXhOEjMKdQR1JJFJs UL3/BcHZCN1xhPy64AfYKFP+2BfX8RovnGNQPQoEIoYwx48NDPDTHSkvev0fYl5lFUXX giukVeFFViBga+8gf/kAEzmX3HCGYenpI6wRGG7E+W1yqRqDofZud3vUaiU9MIA6lLvb gx6AKmb7wx15Rx5apwXJTIc5lIMHUHsT/GR08ZK+UaInF9ObuE1UMPREciYF20XuGQiM QIpCLe3h0wnVTh+Raas4tLAu9HgBEGn9YPifNW7wG5KxjXes1rAyNbEpq+w0th1zK3g+ WOpQ== X-Forwarded-Encrypted: i=1; AJvYcCX7kheZH2xFx8Irs05EuZSdMgFhMjN33XK4HqdMUflmPq7PG0LTe+krK08nGlY+wMFnlTxeVVqFrkm2Tz3Sxw9f/AZyDVXdv0SDLPPS X-Gm-Message-State: AOJu0YyEZZPPp3vScEpJ/L7qjOPDNZ8FRD49O+Xb3/0Cma1Z2ib2ZVf7 F+ahnR6dPDfXCiEC8UU/FWeU2Xv0APjI71D+VvdfkQjUPrRvR774UgNxAhH5FBU= X-Received: by 2002:a50:999a:0:b0:568:b622:f225 with SMTP id m26-20020a50999a000000b00568b622f225mr1367415edb.30.1712225294754; Thu, 04 Apr 2024 03:08:14 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id ig10-20020a056402458a00b0056c0a668316sm1984219edb.3.2024.04.04.03.08.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 03:08:14 -0700 (PDT) From: Dmitry Baryshkov Date: Thu, 04 Apr 2024 13:08:04 +0300 Subject: [PATCH 6/6] drm/panel: visionox-rm69299: stop calling regulator_set_load manually 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: <20240404-drop-panel-unregister-v1-6-9f56953c5fb9@linaro.org> References: <20240404-drop-panel-unregister-v1-0-9f56953c5fb9@linaro.org> In-Reply-To: <20240404-drop-panel-unregister-v1-0-9f56953c5fb9@linaro.org> To: Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Matthias Kaehlcke , Harigovindan P , Ritesh Kumar , Sumit Semwal Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Dmitry Baryshkov X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1559; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=irilOr1F66J72zSf/iZ/FxY1c7hsuCBIEPtG00CVG8k=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmDnwGO0eQ0yN5Gyv9QpomFj0R6gyXZ+5rtNEtm IGQoU0uAEaJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZg58BgAKCRCLPIo+Aiko 1WYFCACn5db1y7XDZnwi8s8NKNDV0h88BTcuOpypH5tfLwAH0CVs/5d5b23X+DvXMpORhQEi1jY Dlh/F0h8AceX/ZhR04srs58R1l1cV18WdVKPKoWheb7OstyQjJweYXovPKwMHJ9oAgyIVfGWA2b ZkPVfk1YaWtNi7jLO44GU7J7TOMbi9Y6tHvkxgEb7LpRXi6KzxA5Vxn/hlitMipltv3Th8rHBbU k6h0ttkCAmQbWlJKlqYqcNOE615htx4ndaJ81GMF6rJ4I8/2/oiVwmjy5y3aLOLWsJ0Iurs02L+ MwsKQn0YXCDkU5gtyKKVeeXSmjgnvndGlJJ+gU7szKQ6+s6Q X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Use .init_load_uA part of the bulk regulator API instead of calling register_set_load() manually. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/panel/panel-visionox-rm69299.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-visionox-rm69299.c b/drivers/gpu/drm/panel/panel-visionox-rm69299.c index b15ca56a09a7..272490b9565b 100644 --- a/drivers/gpu/drm/panel/panel-visionox-rm69299.c +++ b/drivers/gpu/drm/panel/panel-visionox-rm69299.c @@ -197,7 +197,9 @@ static int visionox_rm69299_probe(struct mipi_dsi_device *dsi) ctx->dsi = dsi; ctx->supplies[0].supply = "vdda"; + ctx->supplies[0].init_load_uA = 32000; ctx->supplies[1].supply = "vdd3p3"; + ctx->supplies[1].init_load_uA = 13200; ret = devm_regulator_bulk_get(ctx->panel.dev, ARRAY_SIZE(ctx->supplies), ctx->supplies); @@ -227,22 +229,8 @@ static int visionox_rm69299_probe(struct mipi_dsi_device *dsi) goto err_dsi_attach; } - ret = regulator_set_load(ctx->supplies[0].consumer, 32000); - if (ret) { - dev_err(dev, "regulator set load failed for vdda supply ret = %d\n", ret); - goto err_set_load; - } - - ret = regulator_set_load(ctx->supplies[1].consumer, 13200); - if (ret) { - dev_err(dev, "regulator set load failed for vdd3p3 supply ret = %d\n", ret); - goto err_set_load; - } - return 0; -err_set_load: - mipi_dsi_detach(dsi); err_dsi_attach: drm_panel_remove(&ctx->panel); return ret; -- 2.39.2