Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1277162rbb; Mon, 26 Feb 2024 04:42:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWKbvRdu/WN44P3EZ39OM0EuW8rEw8xkx/7yeGcZ/gtC0PO1cEKMBAhKe0j2ML6aDP4Eai/bpB1RurXpfUeUT0Dt8P2IIbijAAO5L51JQ== X-Google-Smtp-Source: AGHT+IGzSHU3Po/uaYF3jxAjLdWCXh586jOLUBgA61kdb6NuQkj2Y+Koxr1gV6lSqc8+KcFahqCm X-Received: by 2002:aa7:d6cf:0:b0:564:a4e9:3683 with SMTP id x15-20020aa7d6cf000000b00564a4e93683mr5397876edr.16.1708951358460; Mon, 26 Feb 2024 04:42:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708951358; cv=pass; d=google.com; s=arc-20160816; b=x/XKgIkkvAAFqADUEl+ALQ+qZEOQfN5a5V0nrDREShbZK4haGL+N5dA7jHs2/H90WB RPqKoVJxYBg8ENvpigniySMnLQnXVl9g6T1cUcQikcG/MWYzXl8ma6c96h96jxoW+Zr8 P9IukMsK7cEjTC/ez2RlI4mvqzIRIcy32vczHlRkFxJi2yZvXFaSmDTTYlgDplQL4AHh 0svq87ikM0i/39EX3v6G4L2ceU0omKqzvy6S91Svr/bxdufl/+De8o/BKIBigUOwhvo0 yY7w09UCnRv0BV1lGvq4BrnGLDMzf8FVvpM6xwbY0AIgUqD18TWqqYhbWCA83M77cOUj 7fiw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=GAyULuroIYpcMbrAA7APk+1qWQ3OMVexBEVPiiEsAvg=; fh=NaNr814oe1+L6KwGykhXPC9pSIGFrkcOd8HjbgpyKrg=; b=Cl1JWUcPjO20gHpKDQj4b50UImV9/VNZg5nBUBChJYbtBuGfUSHIwmALcOU6DdnIpE ymjOdP301aqzZy159EDIPyVgjARGojbr6kzG7UBoiZaT+EUHlvx+raNR5zmC0PQJchvL JbiMOdpeXKmPm9kARAQMhxgi/P/omDRostS/9ZRnP3YaxiEHNxFLuI7JsE2y9Z4Yo6YH HbTKxrz8jCK01EEw9YmI+DOncYN8YotkppNMJv3+lR543LB8nQPWLfcDCiU3eEZQW7mT n1h/QWMhOgXrZGaI86MDvN45uTWHFbRX5zVMMKsqD2L62aPWXl9A3BVcGhvIYflfS+Nh QkcQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=hruwiW9p; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-81393-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81393-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id u15-20020a50c04f000000b00564b90ae27dsi2051079edd.538.2024.02.26.04.42.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 04:42:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81393-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=hruwiW9p; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-81393-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81393-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.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 C50401F27E3A for ; Mon, 26 Feb 2024 12:42:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7839412A146; Mon, 26 Feb 2024 12:39:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="hruwiW9p" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 447547F7C7; Mon, 26 Feb 2024 12:39:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708951172; cv=none; b=rrANa59KOUvxExc/d4b5+w1vU/L7BGtz7TDoYmP2anDffvsdqArT89xrv47M5PW0smFaSmjDZH1dKQkMbJG03g2NHdfxL5Sm/mFOxjeWeZYK8FfsVK8eJ9vmYs4DZDd+D/Lac6QZfg/27D+opdS1R2wGsTgVWdeoVGzBEq5a9DQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708951172; c=relaxed/simple; bh=WuE4kCD97wZ9bNjHBG7YNNj1l3uPwjiVFXgZ1NInp4w=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=mWaNiFy35a2Ks4KfS/a9Av3OpwU6o6jcjdjEABU592eaIjgPjACJmZYhZGyn+/5hcGNplJcF7aLJQUAVz0rsH5/g3HVB9KSZxCR5dYULPLIRov8AnxLYQxf5TW4wFm2QTR9Xfk3KyISgMyP0zGtDkjTBqun4fm6xtaItfqQMStQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=hruwiW9p; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1708951169; bh=WuE4kCD97wZ9bNjHBG7YNNj1l3uPwjiVFXgZ1NInp4w=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=hruwiW9pNWUrPMI0AD9IZzA/Y9miBS1AqGYeG1A93mG9LQcQ10Ia9jew8ZNEcDawX z2OBZElqRRK3DCorbhKBZoyHyjBIwBA/RxUar/Yj3jUrxr5yPQTsqVoA9ZJsyqBCfO ZZHSzru6f0uYG+SaC3GO+7DoPUxMliKkt+/iWBNtLejHWATUq1lIpomysLNwyhKKQC EIDI/5VBBFNI/7V17e1FzY0YgdFt2y4Vn8VxTTuE0glp/eUpn4mzPFVqSaOyu0XgQq COC7lTErNp+kg4igLcu882DuuMGyfXjVUNGZPxRgNh+yjGuhSWHNC9clYphHHXteDs hmtw0XcRhVcJQ== Received: from [100.113.186.2] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id DD07B37820CF; Mon, 26 Feb 2024 12:39:28 +0000 (UTC) Message-ID: Date: Mon, 26 Feb 2024 13:39:28 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 11/11] drm/mediatek: Rename "pending_needs_vblank" to "needs_vblank" Content-Language: en-US To: Shawn Sung , Chun-Kuang Hu Cc: Philipp Zabel , David Airlie , Daniel Vetter , Matthias Brugger , Sumit Semwal , =?UTF-8?Q?Christian_K=C3=B6nig?= , dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org, Hsiao Chien Sung References: <20240226085059.26850-1-shawn.sung@mediatek.com> <20240226085059.26850-12-shawn.sung@mediatek.com> From: AngeloGioacchino Del Regno In-Reply-To: <20240226085059.26850-12-shawn.sung@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Il 26/02/24 09:50, Shawn Sung ha scritto: > From: Hsiao Chien Sung > > Rename "pending_needs_vblank" to "needs_vblank" to reduce the code size. > This decreases human readability though, so I would prefer that we omit this one. Regards, Angelo > Signed-off-by: Hsiao Chien Sung > --- > drivers/gpu/drm/mediatek/mtk_crtc.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/mediatek/mtk_crtc.c b/drivers/gpu/drm/mediatek/mtk_crtc.c > index 7fe234de83a3..a1fb6c67681d 100644 > --- a/drivers/gpu/drm/mediatek/mtk_crtc.c > +++ b/drivers/gpu/drm/mediatek/mtk_crtc.c > @@ -42,7 +42,7 @@ struct mtk_crtc { > struct drm_crtc base; > bool enabled; > > - bool pending_needs_vblank; > + bool needs_vblank; > struct drm_pending_vblank_event *event; > > struct drm_plane *planes; > @@ -105,9 +105,9 @@ static void mtk_crtc_finish_page_flip(struct mtk_crtc *mtk_crtc) > static void mtk_drm_finish_page_flip(struct mtk_crtc *mtk_crtc) > { > drm_crtc_handle_vblank(&mtk_crtc->base); > - if (!mtk_crtc->config_updating && mtk_crtc->pending_needs_vblank) { > + if (!mtk_crtc->config_updating && mtk_crtc->needs_vblank) { > mtk_crtc_finish_page_flip(mtk_crtc); > - mtk_crtc->pending_needs_vblank = false; > + mtk_crtc->needs_vblank = false; > } > } > > @@ -571,7 +571,7 @@ static void mtk_crtc_update_config(struct mtk_crtc *mtk_crtc, bool needs_vblank) > mutex_lock(&mtk_crtc->hw_lock); > mtk_crtc->config_updating = true; > if (needs_vblank) > - mtk_crtc->pending_needs_vblank = true; > + mtk_crtc->needs_vblank = true; > > for (i = 0; i < mtk_crtc->layer_nr; i++) { > struct drm_plane *plane = &mtk_crtc->planes[i];