Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp307626lqo; Thu, 9 May 2024 23:39:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUHePYy2pkOE1gUSx0SVfjp+t6voH4NztZPHVexxp70L+MN10r5o4pP5FZWryxzhNfsLjKu4v9NebMRYLFvIdBHauvZXitaooPYwEJ5uw== X-Google-Smtp-Source: AGHT+IGcqP7LX4bxE76We+xg9C4KzgA675qRQ+snP9nDGKy1kgMVj2F2ktjCotqesmKZfmpdvYyz X-Received: by 2002:a50:8ac4:0:b0:572:4f:4efd with SMTP id 4fb4d7f45d1cf-5734d5d02aemr1386158a12.21.1715323194173; Thu, 09 May 2024 23:39:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715323194; cv=pass; d=google.com; s=arc-20160816; b=qgQrpqAvgmDcLmwdU3jiUKFTc7Fuw2mKLLljq4rh++3hYA7Ezh/HIPuVfvDSwE+kSh 4O9gMVqvxUDsTVBaQCOle/HZjEijRhlbPCXIDW5fsH9RCo6mqVhdyyXmJ6TyUW+hlq+M 59mhpEPlFIPOeNXLCUSY8cI1kwipEgHcpW4uBu/1cbQw0Sut+i5qvxuje9qjgM+yvANN p43dxqWhuTXPszGZZh8BkKNvEXhNJyFfTo1zyDSb+STar8YkTVmhzaYjEtnksXefIMI/ cLse9AB9CgCsvDL1oUMF5xyBgFTW27XITVm3fRnuMdMV5u132RNOUUrz7o8WsLFld54R XWWQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:cc:to:from:subject:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=yDDYjOZbYyI7+VrCFYHuMsQn9IaAJCiNGNvsyl18CMA=; fh=Gzl3uAeGdcEGKZ/DdN0uLEfh3arr9V7tc09SYSTGoaQ=; b=SW9pRZe2Df6dHp/ZI+HP//J9nMxEruY2UxRSIBoaBEzIn5rFRtVJfowWBxRI9lQi/+ VvDOBDLyuF1y3Ax/W5nW8TUTMvXrtJXf48sCU/jeR2klIWhPPDzE+3fZQj+e+lZFPter AJH9QuOv3VzTYg8cbH1iyLBDlThjOdzjSB97S7z/6d7SrSBWdLjxGAoSRv8O6HO7fyfY flXe/7O/iZ7sMiYNx7hGi4kg152+FLyScpQ25adij2mtC0o6VAf573+Y7K13DCq+/ndh OPmJ4oM3mgRoDWWcLAegnHVl4y3kRPjHSNavybvpGLl3E3Ll0jRNDPezr43t13bWxlzT 1paw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=PCflBbWN; arc=pass (i=1 spf=pass spfdomain=fairphone.com dkim=pass dkdomain=fairphone.com dmarc=pass fromdomain=fairphone.com); spf=pass (google.com: domain of linux-kernel+bounces-175338-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175338-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c32d2fesi1695614a12.474.2024.05.09.23.39.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 23:39:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175338-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=@fairphone.com header.s=fair header.b=PCflBbWN; arc=pass (i=1 spf=pass spfdomain=fairphone.com dkim=pass dkdomain=fairphone.com dmarc=pass fromdomain=fairphone.com); spf=pass (google.com: domain of linux-kernel+bounces-175338-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175338-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com 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 BBBE41F22A44 for ; Fri, 10 May 2024 06:39:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D1ECE5B69E; Fri, 10 May 2024 06:39:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b="PCflBbWN" Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (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 355591BC2A for ; Fri, 10 May 2024 06:39:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715323186; cv=none; b=jbdkVzVaaHKBciJTLsaTMjbZf1CFy8O+j7DzFbMFYp8eT2gUv/Ek6f9KHnYM7pBskwvIQMjy3h/1Mz5mRKephALGOXYgfprgbhkqE/3GteYtHrgE6SxYOh+khhgInYj3G/0FfO4RiTWjn/7R7QB2IZPH0+pvRGloG9HNp/T8cDk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715323186; c=relaxed/simple; bh=M6/ShrmFP2zIiQ209mU5GrLeH/mOx0rrCknJicOhDHU=; h=Mime-Version:Content-Type:Date:Message-Id:Subject:From:To:Cc: References:In-Reply-To; b=KlzAzdf4u0cmHWdJnLTiNp1UwiBHp+U8QWKodBBZX8Si9PA/SzastBvzp/GGLloiTXioBSH4ea+Zb4XbWIQpmBpS1aN7CYGiY1k6rlMUut+/feo/kHZb8498ap1z2H2k67VjHl5tb/1FNa37o9sZdM+6yP4BcJMtFjZ31NLxMYo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com; spf=pass smtp.mailfrom=fairphone.com; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b=PCflBbWN; arc=none smtp.client-ip=209.85.167.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fairphone.com Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-51f1b378ca5so2920253e87.1 for ; Thu, 09 May 2024 23:39:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1715323182; x=1715927982; darn=vger.kernel.org; h=in-reply-to:references:cc:to:from:subject:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=yDDYjOZbYyI7+VrCFYHuMsQn9IaAJCiNGNvsyl18CMA=; b=PCflBbWNTX7wwLbMKwOVhvxeVR3FPu8+ObpKj15As9kUpMtCDJxv2ir+RzocjInPMR YuO48E5N2SwtUxkobLAiHekFNXXAEsiB/tsTQxlkT3e+8jG6lPXSD6kJalQ63ThaMrD1 pc5WtVnScmxeeJ0zYRZYbeDII2wNJa3ntfW+5gKBnKjG7j4IZED8YBTAkKw0q8bc9YPA iSx66roBjBemB7f/cKu09hj5st0ljH6C8MRoC+KLpJ5wejGxekK254RKNzg/aoxV2Fen IhCA93Wgs4SFFB0aETw1dfuXkod7i+zzrKJDAp3m+jVXoUYyNQU8RJzA6HE9rX6tYRyx 6R1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715323182; x=1715927982; h=in-reply-to:references:cc:to:from:subject:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=yDDYjOZbYyI7+VrCFYHuMsQn9IaAJCiNGNvsyl18CMA=; b=toJurs/4wrO6fYHhPHdV8Kj/5orSkg2L7qiozYTxsGIOSwT4ZUHq3G2AIbi6lQVEzT JynIZL8jgHtosT98J949Ms7GQrVe9qNxgxlwN7hzueb5BWRnEXEoKHb5oka11yQUrsLb Ms2jjRRYYoTbgB3Qu0jkB9HR+TyD6NOc74Lv9CKELV+17llmOiGZ21oWe2EriMPoCMJf IttXPskQC/vabjTPHVhSsC4Kn99ZKxA+XVzIs0OkZGMkor/wonhqVL/MMsDrS4KLcskW Bt04/TxEgQc8p98IWnqrOXI6ML2lgYBgZw6HjwsS/xMZ4ttJ6XMMZtSpsDDqy8968DMC I5zw== X-Forwarded-Encrypted: i=1; AJvYcCXByDW6B5NDYyNMmS0sozim4f3kxjlc3E0F/hDv8uHLlykQu1VbnRaMMAFR302eIbTXXKIKQZTdil7R5g+2QnAolopJWpT2AhCKkeFI X-Gm-Message-State: AOJu0YyMSmpq5kkMWD6/q5NR/r5bRp5fw2N0NFZsbRoH0bV9ig2+o5ha abhFZublA513LldEOygh14FLocwX1lGI9UwT+mP1/pI6nJ5AXo0/lO4v4dN/mDk= X-Received: by 2002:a19:761a:0:b0:519:e878:9385 with SMTP id 2adb3069b0e04-5220fd7c7eemr1123427e87.18.1715323182260; Thu, 09 May 2024 23:39:42 -0700 (PDT) Received: from localhost (2a02-a210-20ba-5a00-9ceb-707b-2d57-26f7.cable.dynamic.v6.ziggo.nl. [2a02:a210:20ba:5a00:9ceb:707b:2d57:26f7]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a1781d207sm150850766b.22.2024.05.09.23.39.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 May 2024 23:39:41 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 10 May 2024 08:39:41 +0200 Message-Id: Subject: Re: [RFT PATCH v2 01/48] drm/panel: raydium-rm692e5: Stop tracking prepared From: "Luca Weiss" To: "Douglas Anderson" , , "Maxime Ripard" Cc: "Linus Walleij" , "Chris Morgan" , "Yuran Pereira" , "Neil Armstrong" , "Konrad Dybcio" , "Daniel Vetter" , "David Airlie" , "Jessica Zhang" , "Maarten Lankhorst" , "Sam Ravnborg" , "Thomas Zimmermann" , X-Mailer: aerc 0.17.0 References: <20240503213441.177109-1-dianders@chromium.org> <20240503143327.RFT.v2.1.I784238de4810658212a5786b219f128460562a37@changeid> In-Reply-To: <20240503143327.RFT.v2.1.I784238de4810658212a5786b219f128460562a37@changeid> On Fri May 3, 2024 at 11:32 PM CEST, Douglas Anderson wrote: > 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: Luca Weiss > Cc: Konrad Dybcio > Signed-off-by: Douglas Anderson Seems to match with the changes I did for another (generated) panel driver I upstreamed - see also: https://github.com/msm8916-mainline/linux-mdss-dsi-panel-driver-generator/c= ommit/74c104440dfd828aa94194fd279c0c505ab55854 Functionally also seems to be fine, I don't see any problems. Thanks! Tested-by: Luca Weiss Regards Luca > --- > > Changes in v2: > - New > > drivers/gpu/drm/panel/panel-raydium-rm692e5.c | 10 ---------- > 1 file changed, 10 deletions(-) > > diff --git a/drivers/gpu/drm/panel/panel-raydium-rm692e5.c b/drivers/gpu/= drm/panel/panel-raydium-rm692e5.c > index a613ba5b816c..21d97f6b8a2f 100644 > --- a/drivers/gpu/drm/panel/panel-raydium-rm692e5.c > +++ b/drivers/gpu/drm/panel/panel-raydium-rm692e5.c > @@ -23,7 +23,6 @@ struct rm692e5_panel { > struct drm_dsc_config dsc; > struct regulator_bulk_data supplies[3]; > struct gpio_desc *reset_gpio; > - bool prepared; > }; > =20 > static inline struct rm692e5_panel *to_rm692e5_panel(struct drm_panel *p= anel) > @@ -171,9 +170,6 @@ static int rm692e5_prepare(struct drm_panel *panel) > struct device *dev =3D &ctx->dsi->dev; > int ret; > =20 > - if (ctx->prepared) > - return 0; > - > ret =3D regulator_bulk_enable(ARRAY_SIZE(ctx->supplies), ctx->supplies)= ; > if (ret < 0) { > dev_err(dev, "Failed to enable regulators: %d\n", ret); > @@ -213,8 +209,6 @@ static int rm692e5_prepare(struct drm_panel *panel) > =20 > mipi_dsi_generic_write_seq(ctx->dsi, 0xfe, 0x00); > =20 > - ctx->prepared =3D true; > - > return 0; > } > =20 > @@ -222,13 +216,9 @@ static int rm692e5_unprepare(struct drm_panel *panel= ) > { > struct rm692e5_panel *ctx =3D to_rm692e5_panel(panel); > =20 > - if (!ctx->prepared) > - return 0; > - > gpiod_set_value_cansleep(ctx->reset_gpio, 1); > regulator_bulk_disable(ARRAY_SIZE(ctx->supplies), ctx->supplies); > =20 > - ctx->prepared =3D false; > return 0; > } > =20