Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp26212235rwd; Mon, 3 Jul 2023 06:55:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlFgxM0RGVFCCcsURNVNkKfYkEunmGkdSWSjVcHtmjZHV8ASd9f0sujc/0fmLs19ndehCCF8 X-Received: by 2002:a17:903:22ce:b0:1b8:9b90:e2bc with SMTP id y14-20020a17090322ce00b001b89b90e2bcmr1504919plg.52.1688392558703; Mon, 03 Jul 2023 06:55:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688392558; cv=none; d=google.com; s=arc-20160816; b=kjvprUO3hJqL4FCYLm9kIrwJlwEsGRZxLty+iDDkYMn/ehcyaBoM02nCK5LzFcbZdA 9B04K31xBDW0OHZmiXEp8/HxutnmOXwEHR5QIAIMkHMK32IgSQmKsjK72xItRYff+eMt 66sXUcFsaYRYKU2sT0UnhuLN0q0M6HH4FkhxNu4lbkp4P+72ZLms0RPv27wV24WhjYcR 90NVviOR+qYpiP2f19Vg2shqYZt/om6s5pN1xuRBv1JfXLfeAEd8YtN83eUmV6XOEGPf iN1iL/F0pCu+7P+oWYFgY44yH9TymedJI9/oqKx+53+cCmsFdn6+Ak8zLJHIT8BVW1L2 ZxCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=Dmkv6C+3q0OhDNXDylTCb+3rSuoihy22b5khGTWPfYY=; fh=iGRERHoYig2Z3LVWfvcCj8g0kjrzuq6ojQ3F9gDjT/A=; b=VoIde//7B0LQU/an08qsbu5O5tYQsKEJEuX2bZLBX0QATQJbeNtG7hjzeyX49V0q4m jn8fnnEJIGG1syrg+mAj0lc9PnshMiFxuEcZ8VPXB9V591qBz4fylVyuffF5VwIP/pNe IvCnkr5fPfhEnpyuXdCyNBBs/KMdutkvxd2LjZggdrUNVIZUgOk4n2E5Pe1b8SSkqrsS 7V/9NXOTgCxkyXr0EY2sVVpOmKDhQK1Z58Lu0sPDZ4e5tBoMs4quM9WfaZ7bRkHPjA6k 7rMuf42wUgAQwFby+YLF5IA+MyCvE5X9CX1JXoGNRcIO2LiulSXUjDGnORMTXx3388Ec /8hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=x56IXe8R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h17-20020a170902f55100b001b80643d647si16318437plf.146.2023.07.03.06.55.44; Mon, 03 Jul 2023 06:55:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=x56IXe8R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231429AbjGCNWE (ORCPT + 99 others); Mon, 3 Jul 2023 09:22:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229454AbjGCNWA (ORCPT ); Mon, 3 Jul 2023 09:22:00 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58C1DE3 for ; Mon, 3 Jul 2023 06:21:59 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2b6994a8ce3so65305441fa.1 for ; Mon, 03 Jul 2023 06:21:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688390517; x=1690982517; 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=Dmkv6C+3q0OhDNXDylTCb+3rSuoihy22b5khGTWPfYY=; b=x56IXe8RIxnYL1+6pw4NtYfv1qktWK03Hq4LtRYerU8753MlMMPlbfiYQu112xui2F Yat4bSpDBts7bX0CwkfuEbJTpa2E8QqxQrFYOdq43hC913JaII1dpWGPB+y+9exS0KoC XeLezG/yqBg/w1SzEhw69RYK7Az1UoFjzGVJkiyp669P2tn5iX99KvLDYM7vIECcswcP duATm8LgyLut7Yp1B9HJOb+yGUo24OVNgeLnh/U8b9CkRzmv4XLrjS7nacIM9fGBtOd1 PJdMHZg87m4VXTNWl5bNYOijkYnVOikgDKxRSofwGAwPyrjV2UyA5ZZ83VJRwLKPNdVG qyIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688390517; x=1690982517; 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=Dmkv6C+3q0OhDNXDylTCb+3rSuoihy22b5khGTWPfYY=; b=YXjh98d0dX3qqrcRBltWOfPW8kIHUYXDmMSttdXhBZHFOFqN1WRWIiu5acR1A4cz6f FPEz4nVTEOqXoLJrQM4PU1uKQRif8kzxvScpu8cDwBt18lK+qDtfbv6QkTYdYaFtlp4A tP3zcMgZ05okUxeZU4968TMDNu6YERUJ8dL9aESgtCrp24xqOkxiADFZ8YMNbHZ0IyQS KIVVSmeM871kYhWRDS2GkpvFBPtbjG5aGvDrd35hoOIb6m/5706zm4EpmrOhPjdt/iyq N1eAy4MNzKGPHsMgHAlg6lrIm7BRXp/z8TeF47GeSqiIfvBPSb0gshatoQ612PqEQ/vF +ySQ== X-Gm-Message-State: ABy/qLa5M+bYVb/l7GV0iEgVCcRGWpa/0d28UwLMkBLB9zbaDxAO7y2C RBE3GQJ9IeiGNmhPmsuJT9cZsw== X-Received: by 2002:a2e:9f4d:0:b0:2b6:bd09:4d64 with SMTP id v13-20020a2e9f4d000000b002b6bd094d64mr6888676ljk.34.1688390517732; Mon, 03 Jul 2023 06:21:57 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id u10-20020a2e9f0a000000b002b6b7a98c4bsm3535238ljk.77.2023.07.03.06.21.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jul 2023 06:21:57 -0700 (PDT) From: Linus Walleij Date: Mon, 03 Jul 2023 15:21:50 +0200 Subject: [PATCH v3 2/4] drm/panel: boe-tv101wum-nl6: Drop surplus prepare tracking MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230703-fix-boe-tv101wum-nl6-v3-2-bd6e9432c755@linaro.org> References: <20230703-fix-boe-tv101wum-nl6-v3-0-bd6e9432c755@linaro.org> In-Reply-To: <20230703-fix-boe-tv101wum-nl6-v3-0-bd6e9432c755@linaro.org> To: Ruihai Zhou , Stephen Boyd , Douglas Anderson , Cong Yang , Jitao Shi , Neil Armstrong , Sam Ravnborg , David Airlie , Daniel Vetter Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Linus Walleij X-Mailer: b4 0.12.3 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The DRM panel core already keeps track of if the panel is already prepared so do not reimplement this. Reviewed-by: Sam Ravnborg Signed-off-by: Linus Walleij --- drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c b/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c index 6fd4c9507c88..358918e0f03f 100644 --- a/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c +++ b/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c @@ -51,8 +51,6 @@ struct boe_panel { struct regulator *avee; struct regulator *avdd; struct gpio_desc *enable_gpio; - - bool prepared; }; static int boe_tv110c9m_init(struct mipi_dsi_device *dsi) @@ -1748,9 +1746,6 @@ static int boe_panel_unprepare(struct drm_panel *panel) { struct boe_panel *boe = to_boe_panel(panel); - if (!boe->prepared) - return 0; - if (boe->desc->discharge_on_disable) { regulator_disable(boe->avee); regulator_disable(boe->avdd); @@ -1769,8 +1764,6 @@ static int boe_panel_unprepare(struct drm_panel *panel) regulator_disable(boe->pp3300); } - boe->prepared = false; - return 0; } @@ -1779,9 +1772,6 @@ static int boe_panel_prepare(struct drm_panel *panel) struct boe_panel *boe = to_boe_panel(panel); int ret; - if (boe->prepared) - return 0; - gpiod_set_value(boe->enable_gpio, 0); usleep_range(1000, 1500); @@ -1823,8 +1813,6 @@ static int boe_panel_prepare(struct drm_panel *panel) } } - boe->prepared = true; - return 0; poweroff: -- 2.34.1