Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1295921lqa; Mon, 29 Apr 2024 04:43:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWyteMU/o8vuZBlfW0XR0qOqrMKz/7JS/WnZX/+zLmtQtCoyLmSAQNBHnX25x0ct12seN6NTfx2n7SNJ6bdLACNFvBjuH0NUx65ds4B1g== X-Google-Smtp-Source: AGHT+IF1QtCPjMrI6KTzhxdzPQObIP69Wa1RnRkNYCayvLHqlun6nVLX5RzaGfrwSIfEL8N/yteI X-Received: by 2002:a05:6300:808c:b0:1aa:5a22:5eca with SMTP id ap12-20020a056300808c00b001aa5a225ecamr13633399pzc.31.1714390995665; Mon, 29 Apr 2024 04:43:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714390995; cv=pass; d=google.com; s=arc-20160816; b=i6Suu5OUKam2wgE1lhOzVuQpL+aefk/Hzj3c3xwT4HqRepeg9dyilVcnnAvwv6sRzw gvUXWtER/fk5oFvzQBbju5bRkvuJnqaihemAZBXN5PqDNvYC+9JrcFKWDhe/hl5D1dk2 hXUQmE/JYTt6AHDuF6yCmf15py9psfmzrl/WRDXkNw8WRQVtc85tmFMxoXVneQSptQeo ErzGJxWx7BeLKATL62xk4srID/I4mCKDDBr7WpY+6Xog9S8sKdD8GvqMT6/zCNAc15f3 Q80jwlM3uyaoqbkyZt+iMZo+a0HUTmcLH1gbIkDEm0a78B0q+PSiZ4yd9MGbBlGw1hFE nb/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=s9la03KAqMZbmHkM+p4tM0f8zTwprOrhAE2ZUhSrgT0=; fh=WjSaJPsfD/l/n32jZexTaQIyFVbGAyQWgh9EynypuGA=; b=H9ylDRc5vvdMlUYSGnuQlzJEvPVIybupjY/A3sbeUX95zfSMxTRsFBDc96mbViLjSr c7y7nqnavYfYA4sJMmjJ3iXUnGRXuNYjtTjhp2aSTanN8lJs/HxS0FU99J0A6vOEbLNZ oziQEhr5xR3GHm/y0GO4vorBfVCraFFZzsLcZelpIF5/P7h+it4laS01st7Fwzg8ruUU +oi1SB2nPNKuDrpHxEL8/augaQ0KQPJgUOdcuyXw6xSjhGrCaKt/zUfZnOYvDaoIW5vy hZXmQyYe7nPJ+dUFzH5AcM3gdIUKqSFoyNxi6gowGrRRm0BPZy2ZJna5ZTef/gsIGhCz X3tw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ckzv3usm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-162147-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162147-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id t42-20020a056a0013aa00b006f3f527c30asi3236923pfg.84.2024.04.29.04.43.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 04:43:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162147-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ckzv3usm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-162147-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162147-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id E5BCCB215A5 for ; Mon, 29 Apr 2024 11:31:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D4A5344C85; Mon, 29 Apr 2024 11:30:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Ckzv3usm" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 0C23340BFE for ; Mon, 29 Apr 2024 11:30:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714390228; cv=none; b=YkUuB+EcLC8noOwePxNY3ADuuhe6wiSBr1/qG7V3/WjvGn0OvRx/QzoC430SCLzBhBpRXYiBKlsRdbjNj50krE+8AQTTLeo5HecFX/kkrEL7dpetJIavc8FJalIV9otC+pFYxGCO3TfbgCOo1UWvIe5wj6fBHeIsph5bNZclFnQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714390228; c=relaxed/simple; bh=s9la03KAqMZbmHkM+p4tM0f8zTwprOrhAE2ZUhSrgT0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KRST1jljhzE+pLPwt/y2KI4uw2OeIgMDM5VHRZv5N+vFXkp4z/8YUNfjIj2CAkOQKnsny44ivCpDXI+yDIc885u44o6I1dO87KGDVuS+bI6PluQ5cU1E2VmD8QFyRJLuRlsT3bLSU23QeIiXaD/SkZSK5f2WKLVme+/qeDWbvM0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Ckzv3usm; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 545B7C113CD; Mon, 29 Apr 2024 11:30:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714390227; bh=s9la03KAqMZbmHkM+p4tM0f8zTwprOrhAE2ZUhSrgT0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ckzv3usmQnXsMZi87PZnCjE/Nxq7K4+bTiq8vaRhF8+cT5QoYUkxgpxNMihah1YT5 JnYf8LjFRMDjHR5ntgTQGPe6bfhS2WEwlyJHACA1IXvO9DOypJ49rRlWGrxTGgZ2J/ wZecRbCGYkGG7NN6VhQlFancLWTC/R5VGLM63d/uczlSjTlD0Y53UHzSHezR0yj7cc MpxyZoO25b3331Wi/9RXZci+Vwgg7oEjxlOSWJ48I4xYJL2E+hQoe609OvWvW9rKvp P4QLbk/+ZW0Vud7cwH/YTSIJxgjZPLsV0787ZBLNvJ6+2/MgRh4Z78xeFW8iDYSdMv It2NBHhzGQXOA== Date: Mon, 29 Apr 2024 13:30:24 +0200 From: Maxime Ripard To: Sui Jingfeng Cc: Sui Jingfeng , Maarten Lankhorst , Thomas Zimmermann , David Airlie , Daniel Vetter , Douglas Anderson , Laurent Pinchart , Biju Das , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: drm/debugfs: Drop conditionals around of_node pointers Message-ID: <20240429-enchanted-cooperative-jacamar-cf2902@houat> References: <20240321222258.1440130-1-sui.jingfeng@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha384; protocol="application/pgp-signature"; boundary="3nmuggz3oikoizoh" Content-Disposition: inline In-Reply-To: --3nmuggz3oikoizoh Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Apr 28, 2024 at 04:52:13PM +0800, Sui Jingfeng wrote: > ping >=20 > =E5=9C=A8 2024/3/22 06:22, Sui Jingfeng =E5=86=99=E9=81=93: > > Having conditional around the of_node pointer of the drm_bridge structu= re > > turns out to make driver code use ugly #ifdef blocks. The code being ugly is an opinion, what problem is it causing exactly? > Drop the conditionals to simplify debugfs. What does it simplifies? > >=20 > > Fixes: d8dfccde2709 ("drm/bridge: Drop conditionals around of_node poin= ters") > > Signed-off-by: Sui Jingfeng Why do we want to backport that patch to stable? Maxime --3nmuggz3oikoizoh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iJUEABMJAB0WIQTkHFbLp4ejekA/qfgnX84Zoj2+dgUCZi+EywAKCRAnX84Zoj2+ dvtsAX47pT1uA7b31OvET3HBHTtXyenRfki8jPgwaCBOQV19P4BIYankTKkwNNly 1KoRjAMBgMAjKByVUU852HrG8xSBQ++PQ9em26hkmkBm2QkB0VQoIpSlDN+gEyB9 Fhk/ZF5o0Q== =B2q0 -----END PGP SIGNATURE----- --3nmuggz3oikoizoh--