Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp5366647imm; Sat, 19 May 2018 00:13:32 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr7AXVUo011vYmzY3Zo2MLlwYd3856eDjbh8h936hczoh1JD/jIi/6/p5fJGkOmKDGDeBeW X-Received: by 2002:a65:53ca:: with SMTP id z10-v6mr9997723pgr.413.1526714012530; Sat, 19 May 2018 00:13:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526714012; cv=none; d=google.com; s=arc-20160816; b=XDhSlQhZ97lWCpnBG2QJnauTUKqcmQrsuH2TXd7pKDAnbGukld9+b6YlsudwWy/QPp WDOZy2mGOhO00QOzWTOdUAfVR2O+Z2w1EEf3UaXpDybqI3tzt4KAG33n3KPrSHbomOAf bSIYRd8An6BxxNn5I4WC2xOXRtHlQWWNxhRCiMbvWD12pRSdpx+3Fbn4T5bGkRU9tQ6u w6BECFx4mCcIyiq7RmAzT6NYTaPLdhmgMoKQgIW/ertT7yeADtCbJnBVMlJaSzoB3cri 4udUum3NIaorhEtqkq5P07cHgfpV1kh89vmLQ8J8YXKTimt0KxWd9+s01KJ2wHJHe5Ml ZYWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=ESMEpiqH2mU350450EyyHEtIzl2pm8YgLzXwdAWG52s=; b=0+t4gB4GAp4Qpd+hU8i4PJ4kXzZAABmy/AXTVuU+5L5ITwFMScM4i4WI8wpRhfrLlL hrODvbdDUmKv4oDBA+ZUOWTFqqRZ3FW88mZqzWnNE9HasBnhhP/MLA/x2wG4zPE46LOr 7zcXloIHN0dqi2hoz53WcFYqMJmMURN7e7AoXR7Pr4EctGa5Hty4Dx06Qp57EhcLZXE1 uD9mX7Hrkc9ng5AfWD3mf0qY1IX8z6HpbL2y1BtpYQ8DSEnCY6K4Lk8alP+OqCox+bUb YaBc7OOx0QLDYpaLSNd9cmt7sKJrmRErZesBniM+t9cV4HWGBSl5Rh8PqcZ+hNjXCTx8 kmvg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x125-v6si1229907pgb.4.2018.05.19.00.13.17; Sat, 19 May 2018 00:13:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751790AbeESHMA convert rfc822-to-8bit (ORCPT + 99 others); Sat, 19 May 2018 03:12:00 -0400 Received: from mailout6.siol.net ([213.250.19.133]:59350 "EHLO mail.siol.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750832AbeESHL5 (ORCPT ); Sat, 19 May 2018 03:11:57 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTP id B34805205D3; Sat, 19 May 2018 09:11:54 +0200 (CEST) X-Virus-Scanned: amavisd-new at psrvmta10.zcs-production.pri Received: from mail.siol.net ([127.0.0.1]) by localhost (psrvmta10.zcs-production.pri [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id VEWMKBufsQir; Sat, 19 May 2018 09:11:54 +0200 (CEST) Received: from mail.siol.net (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTPS id 23BB05205CE; Sat, 19 May 2018 09:11:54 +0200 (CEST) Received: from jernej-laptop.localnet (unknown [194.152.15.144]) (Authenticated sender: 031275009) by mail.siol.net (Postfix) with ESMTPA id 09F9A5205D3; Sat, 19 May 2018 09:11:51 +0200 (CEST) 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-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Škrabec wrote: > > > And this is a bit sloppy, since if phy_clk_num == 3, you won't try to > > > lookup pll-2 either. > > > > 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 ">= 2" > > 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 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 "has_second_parent" to be unambigous that it's boolean in reality. Best regards, Jernej > > > BTW, I'll resend fixed version of this patch for my R40 HDMI series, since > > there is nothing to hold it back, unlike for this. > > Awesome, thanks! > Maxime > > -- > Maxime Ripard, Bootlin (formerly Free Electrons) > Embedded Linux and Kernel engineering > https://bootlin.com