From patchwork Wed Sep 11 15:15:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3466 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 7EA4842E8B for ; Wed, 11 Sep 2024 17:16:07 +0200 (CEST) Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-42cceb06940sf7972315e9.0 for ; Wed, 11 Sep 2024 08:16:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1726067767; cv=pass; d=google.com; s=arc-20240605; b=IlJLYE3vRa7htbodUOV0ihXe5yJ5miS36EDcNrXENQUwOnSIF6oZYjOhFGTTbLbBXv 7SZ+IpuWb2K2IzN6lcQ+TxvAzNpU2T37c212H2o+tLXlB/NKvOTikc4i4J8ftHsUT3kc 7GJ4DvWFMhVrFuorFfKf6+NXoFJG9XYP7p8Dhk3n99849ys+OL1uD1kz9TxQLRixQ57s CftZrEDtO+FGmOI33HhwGvbaY/nRW1uqCV0gAeT5u4PlZwq185ORcpWmjHXN0KchfCs3 gLe501wzDdfzk3Gm8GmMZmOPY9tRD0EOKoYDKgwc2GvoZfE7rvceTbzg6KDSECYKvW1P Twmw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:to:from:dkim-signature; bh=CJ4AHtpjLb1+Y8x3XWWy8Iyzwd89nxd2uPsYjnu7mV8=; fh=cuXmAMRpiUCgGpH+r8yCSQpWe7CZTpNqcfP2Mv4PBBk=; b=dcxsTM0qbwrgvAwhdU6Nd4iY4y89He6pJAOxhwlxF4pa5wkgxy2bi6n1BO+gWsYjgh x24Wf1gjC6woBiDqUdXs6QhR5PeKqo+qJkwsD/eAq6wJ2I6CYaOHN62YAMV/0Cwe5Jim 6ONoC/8FXt+e6Dg2OPBxNKQothuLb8IZPdJuc2i9ZT9Ycho6rQR+qr0qW17NP3fSToJz gBOG5BAggEjPggpCUEN9m2nDgMr5IxT2ZFKhwd7QSFfr/tQGe3Gm11j4ZJ0vJb/Jj93C Bx0gWmDrk9f0EPWXo9UwdLZZPgOKZPsUEAOExiqFu8uKxG3HfSkI6GxkR3ksUn55ANjc 35Og==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=hFr3dUCz; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1726067767; x=1726672567; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:to:from:from:to:cc:subject:date:message-id:reply-to; bh=CJ4AHtpjLb1+Y8x3XWWy8Iyzwd89nxd2uPsYjnu7mV8=; b=iWJ8qpWJLZ84VImrjSM+jtrz5gvu4iglpPwtPHSzHNGUpHdoFSCLmDwwotOr40cLxN PhE3yWglY6IS+2xdYifuUFy/45gqFbEQJXKInNBFtdHwSDezZzw5tzFEZRLKADPgdPGe RWeBConCcB6B/heghRspH8+SbzttcEa76ZbJ0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726067767; x=1726672567; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:to:from:x-beenthere :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=CJ4AHtpjLb1+Y8x3XWWy8Iyzwd89nxd2uPsYjnu7mV8=; b=SeaLIQvGHAkskxc7YJ+hu5ywBLZDcjWucCj23W+KFah7lAJiMXe7rPMZRovqFPQ1MY KWXqMSk6QdH1NefBeWsT3P0Xx4zuIQt6PY8OZK/Upfi8/FZ3T2Pj9zPJA2HbfoHh/TwX S7Knvsc9oE4Ux5trHRNYThyiawjyqCxpuwewquwf9A53S0w0Z3wPb+33eouQYB0ADVmg qR28Z3gEAIlG0Ly+E4FvW73qe96lXd5gLanrNqe5cpHD1cJidL5LfDqi7961ObY+sehx tfvUUKrRu5RGdlwUJQOJGXDBCUz5jW3F79ny909K22u20liCjgtcy6NOfvm730Gti61t an7w== X-Forwarded-Encrypted: i=2; AJvYcCWQLHm7hbJ0GKlaw+r9WJAZb2xNdy6MCnhc0Ox1wYqgmNaWDKxUOE9a1SS0v6lnYOeXZ9BowE4HlHpQIMH9@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YwXyceXxU+AqmPb0Ab9M6KVSCPuNc3otfyC3KC4Vee6mIAgMCSx Y/0MQTqFXvUJG0xOn/xOAB8vM96ngE2GVIeak0+hMtJb8WJlHf9kv7mOqrqN0sD9PQ== X-Google-Smtp-Source: AGHT+IFoEfYKE6Ckxt31n2Yrvw8hWVT+uckFX8klqsE0mb6fOtlXDh/1MlE46uWKHobzA5myKaIWLg== X-Received: by 2002:a5d:69ca:0:b0:374:c3cd:73ea with SMTP id ffacd0b85a97d-378b07cf82dmr2059259f8f.35.1726067767136; Wed, 11 Sep 2024 08:16:07 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a5d:564b:0:b0:374:d287:ec15 with SMTP id ffacd0b85a97d-378a8b7ac34ls618797f8f.1.-pod-prod-03-eu; Wed, 11 Sep 2024 08:16:06 -0700 (PDT) X-Received: by 2002:a5d:4306:0:b0:374:c50e:377b with SMTP id ffacd0b85a97d-378b080cf8cmr1939784f8f.57.1726067765730; Wed, 11 Sep 2024 08:16:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726067765; cv=none; d=google.com; s=arc-20160816; b=pMi5xWUOjjw0HYq9mon84GckI1GoTlT2Otvt/h0H/CmWeG/Q8u2FWmexbE/DUn7ST9 h+FxtCjzjc2atiltca2PiXmwXeSlkhDD56witGbj4YVsILppT75uVjhXUpB0ZdtYLDlc y0mi1xC9K+Ne7a4ySpKIUrjx+gQe31yKPyP3/V8ZtMhHSVIBosieZwpIVKcFnPDDoiVS 1Z10VPXc+GFpesPTnGF5OcamF9oKbBEWYzdbzwJK56pM+/GBCjhrVlcZIQjqoX5zhy0f q0BEfFBNmIFrjiI5PvQdwJgWlhMzhW1cm8Fr0c8j3/jc1p3Tp3ShPH+aIjwWZ8GhZVqL P45A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:dkim-signature; bh=xNM0uEOJzGYGaDc3AkqMrexBEngOsofp+apFwjQz1uM=; fh=FtQepR0uNoeKT2PVdKfTKOkvEYfwbRmoVE9BmlYw3tk=; b=X04G9AuHEJRBZqTVoixoRih5Yl7zHxVdlv55Qxx9gERTNoUt949xbGCd73nS9p8BDt 8wEdYpD/P0Hs1WoG89uPlrtraaDu4rHDwAF/qlgezySAVGMcTVrw59hRqYrZsqerfNEP sM82BBb4zyfAj07F3WnfPfwLpa/0b5Xp9kqXpItdM6omO/4AyZ91Z41jk9mD2A6GLTYj C/hzgTlLXp8hlZFhUG3FqTMIvF8r25rEyxD5rkRVkeaba6iR4GO4dHsoddUFtPSLRK4W 4Pu3t99J8y+nwjmPb+Zo81jD6vapYB3x4W3k4Nn1CZYaXyvoT0b3Q7AokUJhJghKgjZM s2nA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=hFr3dUCz; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id ffacd0b85a97d-378956de59csor1977803f8f.10.2024.09.11.08.16.05 for (Google Transport Security); Wed, 11 Sep 2024 08:16:05 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a5d:68c4:0:b0:374:badf:966f with SMTP id ffacd0b85a97d-378b0796d4bmr1913684f8f.7.1726067764972; Wed, 11 Sep 2024 08:16:04 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com ([2.196.41.3]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-378956d37a1sm11797177f8f.77.2024.09.11.08.16.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 08:16:04 -0700 (PDT) From: Dario Binacchi To: linux-amarula@amarulasolutions.com Subject: [PATCH v2 09/10] drm/panel: synaptics-r63353: Fix regulator unbalance Date: Wed, 11 Sep 2024 17:15:54 +0200 Message-ID: <20240911151555.2915258-9-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240911151555.2915258-1-dario.binacchi@amarulasolutions.com> References: <20240911151555.2915258-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=hFr3dUCz; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Michael Trimarchi The shutdown function can be called when the display is already unprepared. For example during reboot this trigger a kernel backlog. Calling the drm_panel_unprepare, allow us to avoid to trigger the kernel warning. Tested-by: Dario Binacchi Signed-off-by: Michael Trimarchi --- drivers/gpu/drm/panel/panel-synaptics-r63353.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-synaptics-r63353.c b/drivers/gpu/drm/panel/panel-synaptics-r63353.c index 93e3ed545b34..765693d78206 100644 --- a/drivers/gpu/drm/panel/panel-synaptics-r63353.c +++ b/drivers/gpu/drm/panel/panel-synaptics-r63353.c @@ -333,7 +333,7 @@ static void r63353_panel_shutdown(struct mipi_dsi_device *dsi) { struct r63353_panel *rpanel = mipi_dsi_get_drvdata(dsi); - r63353_panel_unprepare(&rpanel->base); + drm_panel_unprepare(&rpanel->base); } static const struct r63353_desc sharp_ls068b3sx02_data = {