Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp95846lqh; Fri, 3 May 2024 14:43:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVSpPOl4K46amG4j7jxrJ93eJezRFsHMBNSk4a6fkfwpUsRXOECM7GS3SxqAFeR77+H3LBz66j4ckEQ6snOzDmxPzKUw0sU5oGvIwa29g== X-Google-Smtp-Source: AGHT+IGxhYykEG4lzUMBsxsKbT4CDqXSYiS0RHvC3fsz4/ky8lBzCdsBSZhiSK0J9o+T3jzaMwnz X-Received: by 2002:a05:620a:4689:b0:790:abd1:440c with SMTP id bq9-20020a05620a468900b00790abd1440cmr4408273qkb.33.1714772604584; Fri, 03 May 2024 14:43:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714772604; cv=pass; d=google.com; s=arc-20160816; b=ZUF3xVphsyi570FefJT7cWd+jEEDczKB0ftLXCslvcUXeBe8uqUekJ/OdytMWq/oXq /T1tDNT9G+3qREuj19WbK+KYZjYSrhxZ2inFuZlcbE/sPrx1/WAsXlwooz9nBRxOgine qPTIdtz3Rn19GXUz/98VzlOOGJKtTQnEwcCEdo1iJF8lyJgHMNxicrIEp50gOnWuGCwB zqmSl4A1BMr/vI+woKnQ9Tm9Qkh1HY8zhfAG5FeXf/mjpmU1b1OBwly26XRaAAEvXBQb tEbO61CR/t2BdaNF/lWSTJnuUTXbUdd3CI1eweWBZzGAnLDz9LUrXtsgKfQu6foGZqy5 qjTw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Qk2LC4K5RJqsx2QB9+nJgz+tBqijGejd/DYbrsWwU0M=; fh=ZS1BpR1IeAjkeoOl/uzIEhzNsmt4HzLaD3aANn8dKIU=; b=m/ifIbTPn4Jsp6WG4kJFdI77pAdZFvYWo0xQUCEAdUJ7+VXwdUeqQMlou88tyGxy2h sE8MuOI8rR5atVo/TP+N547Y1ixDm193HAZFPZAXlBJZcn2JouclwYDI/If9W2wu/BWD bEUIb5pfXOgr67uL7OMoBjfkKa9srEvUG4M+buv6FDRC21REPLzYiBkHku69r6Gisy2E +N+MgUW0IMYKlN2nHhucHj7b32WHjzTnJFQFGxDw78Vb34mWn6IQ0fwKSpaHc1HzFFbQ sfFLMVoIR5TjsiJItLv8/vxmbC15nyinfd8Xf1EK/ixbkzBBByucvAVgKk+OWhygRpnA NaQw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=do4ZuScf; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-168293-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168293-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 l4-20020a05620a28c400b0078ef418ec3fsi4642371qkp.229.2024.05.03.14.43.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 14:43:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168293-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=@chromium.org header.s=google header.b=do4ZuScf; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-168293-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168293-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 39EAC1C23EE8 for ; Fri, 3 May 2024 21:43:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7AA2F13342A; Fri, 3 May 2024 21:37:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="do4ZuScf" Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) (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 99D2813340A for ; Fri, 3 May 2024 21:37:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714772253; cv=none; b=fZtkPZzcK8c5OX7Lw8f0sIMlsIxpjAUzPaZYGbFygVYnl53lhv5EfXgPxv8tGaZmz9CdWR8oIa4yMPvHhw7KxUhHz3crl2nVrdxBQKUyxgrxEh0ykgRjPrkQQpsavBsgd7QriWdp7oaLGxSxNbGYlQD8XrwKHAPPOhpbn044KmY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714772253; c=relaxed/simple; bh=6fe49YSjC4fc9GTEHnSGsu0MOQDQF/+C3YTKVOAm1sI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fVU6G13vYnR8a6J8EKLeQUYqdxL8iTxUFFnhNP0IJgXVN9D06OJEtKccMLkXrk0dY6pv+YOdddgXvxj31weGWWz3sDnFj8MjJDdEhJ/ZPBh1tdfiijZt1TWRNxBc/RUOfFqOrIlvo8DAlrd/M7/dGT45FtrbG6QAacP380QeCb8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=do4ZuScf; arc=none smtp.client-ip=209.85.214.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-1ec486198b6so946505ad.1 for ; Fri, 03 May 2024 14:37:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1714772251; x=1715377051; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Qk2LC4K5RJqsx2QB9+nJgz+tBqijGejd/DYbrsWwU0M=; b=do4ZuScfLSh6LbMmS8dwFNsxsklId2q2gmRNI3TCZLVkwdTguVZf1ju/TZW4LTLj5K dgEzzXkc33yPV7FgQABmal6NvXzE3UgJvUMcOMhoiYFBm6okg8erjG2A3J1t8uJXsbv1 NDSJbQ8nucIbUr3L/Td+5sSG+u0rFy+J+lT/o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714772251; x=1715377051; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Qk2LC4K5RJqsx2QB9+nJgz+tBqijGejd/DYbrsWwU0M=; b=LpOn/RV0TA3Y7M+jrzouOo88Wi+9RTFJe6VbL7hh+zRIiIJhcdqIHZO7LKwte4GmCI WXyGTKoXh7vC7Us5DX5CgWBKPFa7dh2tJkuE8UCoYOZUQeKy73a9I+1IMvGG7A1BpGlr UStqV04XG8svmtC2IFegSKV52LiDSnZO/xzOqZ3dFah8AHDPI0V6kqAfjEpp+Agi+0At DzPklN04VLUq80UGJxxxDDZDCeXgxs5fGECa6AoOpRvmdzSnHJkMWXKj2hkzHn8KS7OW HdSjxwQT0OBpRr8PYiUReUHi+6wS54Z2yE1mg/xrk+oP34QkpZPG8K+cOFfMSRGChfYT SA6w== X-Forwarded-Encrypted: i=1; AJvYcCVLIV6Sz6cFvLel4ZEe+1Xn9evWQVgTTqyupUujwJkrGI9/0l8H1tDOaFenWOKVdEPRmrywaNHEUY+jjIYY1h7YPYAKj8BgYcjEXZnA X-Gm-Message-State: AOJu0YxnGBqZ8V3pA0a/zBJHtgToBXX7EaemOtcQlfgSf+Y5huhl0gKN AKD24LyF27MUY5vJD9KLNXI55s798q8YuUYbJlotDcSITrsbDy71QFJbWLbyEA== X-Received: by 2002:a17:902:f685:b0:1eb:309a:ebdc with SMTP id l5-20020a170902f68500b001eb309aebdcmr5394677plg.30.1714772250902; Fri, 03 May 2024 14:37:30 -0700 (PDT) Received: from dianders.sjc.corp.google.com ([2620:15c:9d:2:fb6a:b54b:7580:64f3]) by smtp.gmail.com with ESMTPSA id j12-20020a170903024c00b001eb51a46f5bsm3729134plh.43.2024.05.03.14.37.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 14:37:30 -0700 (PDT) From: Douglas Anderson To: dri-devel@lists.freedesktop.org, Maxime Ripard Cc: Linus Walleij , Chris Morgan , Yuran Pereira , Neil Armstrong , Douglas Anderson , Daniel Vetter , David Airlie , Jessica Zhang , Maarten Lankhorst , Sam Ravnborg , Thomas Zimmermann , linux-kernel@vger.kernel.org Subject: [RFT PATCH v2 28/48] drm/panel: tdo-tl070wsh30: Stop tracking prepared Date: Fri, 3 May 2024 14:33:09 -0700 Message-ID: <20240503143327.RFT.v2.28.I5025ab14adc2efeef1be1843648547fb725106be@changeid> X-Mailer: git-send-email 2.45.0.rc1.225.g2a3ae87e7f-goog In-Reply-To: <20240503213441.177109-1-dianders@chromium.org> References: <20240503213441.177109-1-dianders@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit As talked about in commit d2aacaf07395 ("drm/panel: Check for already prepared/enabled in drm_panel"), we want to remove needless code from panel drivers that was storing and double-checking the prepared/enabled state. Even if someone was relying on the double-check before, that double-check is now in the core and not needed in individual drivers. Cc: Neil Armstrong Signed-off-by: Douglas Anderson --- Changes in v2: - Only handle 1 panel per patch. - Split removal of prepared/enabled from handling of remove/shutdown. drivers/gpu/drm/panel/panel-tdo-tl070wsh30.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-tdo-tl070wsh30.c b/drivers/gpu/drm/panel/panel-tdo-tl070wsh30.c index d8487bc6d611..36f27c664b69 100644 --- a/drivers/gpu/drm/panel/panel-tdo-tl070wsh30.c +++ b/drivers/gpu/drm/panel/panel-tdo-tl070wsh30.c @@ -24,8 +24,6 @@ struct tdo_tl070wsh30_panel { struct regulator *supply; struct gpio_desc *reset_gpio; - - bool prepared; }; static inline @@ -39,9 +37,6 @@ static int tdo_tl070wsh30_panel_prepare(struct drm_panel *panel) struct tdo_tl070wsh30_panel *tdo_tl070wsh30 = to_tdo_tl070wsh30_panel(panel); int err; - if (tdo_tl070wsh30->prepared) - return 0; - err = regulator_enable(tdo_tl070wsh30->supply); if (err < 0) return err; @@ -74,8 +69,6 @@ static int tdo_tl070wsh30_panel_prepare(struct drm_panel *panel) msleep(20); - tdo_tl070wsh30->prepared = true; - return 0; } @@ -84,9 +77,6 @@ static int tdo_tl070wsh30_panel_unprepare(struct drm_panel *panel) struct tdo_tl070wsh30_panel *tdo_tl070wsh30 = to_tdo_tl070wsh30_panel(panel); int err; - if (!tdo_tl070wsh30->prepared) - return 0; - err = mipi_dsi_dcs_set_display_off(tdo_tl070wsh30->link); if (err < 0) dev_err(panel->dev, "failed to set display off: %d\n", err); @@ -103,8 +93,6 @@ static int tdo_tl070wsh30_panel_unprepare(struct drm_panel *panel) regulator_disable(tdo_tl070wsh30->supply); - tdo_tl070wsh30->prepared = false; - return 0; } -- 2.45.0.rc1.225.g2a3ae87e7f-goog