From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Maxime Ripard Cc: Jagan Teki , Chen-Yu Tsai , Icenowy Zheng , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , David Airlie , dri-devel@lists.freedesktop.org, Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org, Michael Trimarchi , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: Re: [PATCH v2 12/26] drm/sun4i: Add support for multiple DW HDMI PHY clock parents Date: Sat, 19 May 2018 09:11:15 +0200 Message-ID: <1589389.XrQdaPTFv2@jernej-laptop> In-Reply-To: <20180518152651.lfymc3kj7npj5tww@flea> References: <20180518094536.17201-1-jagan@amarulasolutions.com> <4909574.Q3IFWM0xt6@jernej-laptop> <20180518152651.lfymc3kj7npj5tww@flea> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" List-ID: Hi, Dne petek, 18. maj 2018 ob 17:26:51 CEST je Maxime Ripard napisal(a): > On Fri, May 18, 2018 at 04:46:41PM +0200, Jernej =C5=A0krabec wrote: > > > And this is a bit sloppy, since if phy_clk_num =3D=3D 3, you won't tr= y to > > > lookup pll-2 either. > >=20 > > It is highly unlikely this will be higher than 2, at least for this HDMI > > PHY, since it has only 1 bit reserved for parent selection. But since I > > have to fix it, I'll add ">=3D 2" >=20 > If we're only going to have two parents at most, ever, why don't we > had just a single other boolean. This would be less intrusive, and we > wouldn't have to check for those corner cases. It seems that usage of "bool" data type in structures is not wanted anymore= =20 according to checkpatch and this: https://lkml.org/lkml/2017/11/21/384 I guess I'll use "unsigned int" as recommended by Linus and named it=20 "has_second_parent" to be unambigous that it's boolean in reality. Best regards, Jernej >=20 > > BTW, I'll resend fixed version of this patch for my R40 HDMI series, si= nce > > there is nothing to hold it back, unlike for this. >=20 > Awesome, thanks! > Maxime >=20 > -- > Maxime Ripard, Bootlin (formerly Free Electrons) > Embedded Linux and Kernel engineering > https://bootlin.com