Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 43ED7C0015E for ; Sat, 12 Aug 2023 10:00:25 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 03B5486961; Sat, 12 Aug 2023 12:00:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="FRm4E+i+"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 21E7A8696B; Sat, 12 Aug 2023 12:00:23 +0200 (CEST) Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4D23786951 for ; Sat, 12 Aug 2023 12:00:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=clamor95@gmail.com Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-99bfcf4c814so375395566b.0 for ; Sat, 12 Aug 2023 03:00:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691834421; x=1692439221; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=E9RE3WScWreC7MFaPpOGC/2YMgdc0vKfOok6+TpaCWc=; b=FRm4E+i+O4e5liNWg+2+dRH7u4C0/Wb6a3EZgbkW9eGSnuQ1vZBs5kmKM2vqGNv3kS 6taTD//aoqoGUEvJOduLBB8tcd9Sy9sqTpSO8UXFUi6Q213AFTOTXzx+lV7BQuVw73it Y+qwtG8WZbGJ/Wl1y10Q8+lyaWwQcsnUbieqe0ps2DQnOPMqt8GmJUsVK2kUS2zOmU+Y 00OwNNP2oQ0IIRah9R545f6B1A1+e8MFS23Hjx3QGEBvyDEnlgu2xvwclLJmL8ldw1X6 wrnjZ2FI8lKQiy01gx+Iydljp5ZvNR7OAWtgohy/Wvbl2q0J3mccIOWJaDM68dKSj68R 4aaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691834421; x=1692439221; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=E9RE3WScWreC7MFaPpOGC/2YMgdc0vKfOok6+TpaCWc=; b=PuNut/Mnf8TEuByDcNjyL1SWRooDmqT4alUZIiW78bc0v9iBzwAR04BXbZm7OuIR2m quBNKju+h8wjYjI45ANFaiWXgg0mqzchQJiYbtiqpkvPXfQqnIa8UZ9T1bQEYaJ+A+d9 ejEvYsGZwPxFxdTiE4pzEHu2xFXBr9GWHGrxKxq10O17oa3kKnmjQtZCixBp7g7kobnQ sU8no+KhCT0HSZeOo72Fna0XkEtEtZ+GdTpEQwYOkWRxZcLhj9jl7MvoUA8TCM0wyRwF ZGVmyRQDQkwuYS8OvmfLxM7am6bHUsC9dc+n4o+q1R6zooIhbYH7bpcitHf4XUnp5niY fJ3w== X-Gm-Message-State: AOJu0YwoXkiLnRYjdEsH8nAzrqfP505fmnQ5uwc4zpOURD6xK+dRCPSX 6BSvQiBZKiWcXM2AfpFXL4g= X-Google-Smtp-Source: AGHT+IEgHtSpFivUGT64/spVTXmkg8vyAzSNXaBIHEMCdMwnTuUnNZwrVKvUd0VzDS0SAGPXTh+5Jg== X-Received: by 2002:a17:906:9ca:b0:99c:441:ffa with SMTP id r10-20020a17090609ca00b0099c04410ffamr3551280eje.29.1691834420431; Sat, 12 Aug 2023 03:00:20 -0700 (PDT) Received: from xeon.. ([188.163.112.48]) by smtp.gmail.com with ESMTPSA id e3-20020a170906248300b0099d02ca4327sm3265453ejb.54.2023.08.12.03.00.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Aug 2023 03:00:19 -0700 (PDT) From: Svyatoslav Ryhel To: Anatolij Gustschin , Simon Glass , Jonas Karlman , Svyatoslav Ryhel Cc: u-boot@lists.denx.de Subject: [PATCH v1 0/3] Video: Keep fixed/gpio regulator counter in balance Date: Sat, 12 Aug 2023 12:59:49 +0300 Message-Id: <20230812095952.27380-1-clamor95@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean The commit 4fcba5d556b4 ("regulator: implement basic reference counter") have made it more important to keep fixed/gpio regulators enable/disable state in balance. The regulator_set_enable_if_allowed function is more relaxed and will wrap all cases where the regulator is busy, already active, missing or if DM_REGULATOR is not enabled. These patches are an expansion of similar Jonas Karlman's patches. Svyatoslav Ryhel (3): video: pwm_backlight: use regulator_set_enable_if_allowed video: simple_panel: use regulator_set_enable_if_allowed video: tegra20: dsi: use regulator_set_enable_if_allowed drivers/video/pwm_backlight.c | 11 +++++------ drivers/video/simple_panel.c | 10 +++++----- drivers/video/tegra20/tegra-dsi.c | 8 +++----- 3 files changed, 13 insertions(+), 16 deletions(-) -- 2.39.2