Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp357350pxu; Fri, 11 Dec 2020 04:09:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJxWdpfIiDLWPmYP/sQ6wAL6S+tetBBLd4Fi60uZGNXfA3p1pv35a26r7XjuEc+e1tANh4NE X-Received: by 2002:a17:906:dc1:: with SMTP id p1mr10836844eji.9.1607688587705; Fri, 11 Dec 2020 04:09:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607688587; cv=none; d=google.com; s=arc-20160816; b=WPsk/B0aO3AdTw+cLt09iTLs2E82OBjNer3mWNCEXbKvpOc0zl0kon4Pup8scxf9Il AdNe/tljJe9KOaYtlEVNkuURNnSwumrD2sDrYITGXfbLJu5SiRWb27EIdhEDes0bsL6t qspwdsFVw7irSWCF4lMrQhX6YMXEJnylHS0TlsTF+LtoHCY4zvCTIj/QGvdJEuCrx/YK 25IrgGGwsrg9wi2mL0AGOGQP2KNxVNQyZmWx0//fUirtbzxH2UzOB3YzMdkrQHY8PouN I6tmN+L1gPXP9LVfvD5tjVjB7aF4gqXpyJ6ul42BVybdkdj5uUgJ5p72UPDGHlDzQS6f Xvjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=gRBYQyBGuwF8fJMCMaEbmOGyFQn1JfZMKIYmTsFBG9Q=; b=sbvlUt2NwyntgBL9BlVARrVQIO2mj/odCquksUPh4pXw+woVUBc4/+veaYCv+YOttp 9FPut4Fs48Y29gr/xeoYSKPbEO7EpDViI/qSzcSNiOpk60yUI3NebPYKS2aiPZnT+jOt Dkv7XPT3S8958AVWN0rOYcI0Qt2WS73Gt31ORbNYunBBnZA6nlhQEBbUrSO9CPyM9gFB JNxK/qUDnOYQv+1rquEBk3mLyHE5nB8KP77tp0sZHzzY5e4K6uXqPbZ0y4qePLa2UOhV rbxouTPVXoy2rt2r5HGCK3Cxwyg375Vu7vYemocgmLS8PYBPGwsHzIlzSC2pY2v2i5Wz 8uaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="pPwddj/X"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k2si4657414edr.526.2020.12.11.04.09.25; Fri, 11 Dec 2020 04:09:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="pPwddj/X"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389901AbgLKHKM (ORCPT + 99 others); Fri, 11 Dec 2020 02:10:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:57910 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388329AbgLKHKA (ORCPT ); Fri, 11 Dec 2020 02:10:00 -0500 Content-Type: text/plain; charset="utf-8" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1607670559; bh=BXdz3hjV9jTQAtUU5cp0nkac+pcOQK0P5JoqsDaeC7I=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=pPwddj/XzCH/y5kSeZ1YEPHZIHLnsz48i3uN6f7SD5OPrPsI8yalnC9+FAQFOKq4p rquC9D6cGyeWgFOL0bZgRDaG+Z7uhtPUAiOA23M8k6zE2EhUF2l5OnXdu5cOoAekXC pgpOebCGNXoiUSbhDrjlfAxMEQj9PftJxHUxVJp1uQ3MFHQxbmONBqFIpICK/beVeP 724d79IZHW4KM8yejj4xwMNiyn+zMjMXin1BXNBs2ieWgOnoA6ozHAAFlwfQhA/1Wl s2AQgepvhfd1PqJH5/6FydT3dZoGO6DE5kj3vtNbfUlZJdMxDJTJoF4dGqV2HuMS2c kUqD7x6G2mjxQ== MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20201211050257.GR8403@vkoul-mobl> References: <20201208064702.3654324-1-vkoul@kernel.org> <20201208064702.3654324-5-vkoul@kernel.org> <160763259636.1580929.12912274485007017282@swboyd.mtv.corp.google.com> <20201211050257.GR8403@vkoul-mobl> Subject: Re: [PATCH v2 4/5] clk: qcom: clk-alpha-pll: Add support for Lucid 5LPE PLL From: Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , Vivek Aknurwar , Andy Gross , Michael Turquette , Rob Herring , Taniya Das , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jeevan Shriram To: Vinod Koul Date: Thu, 10 Dec 2020 23:09:18 -0800 Message-ID: <160767055805.1580929.10874243981268932091@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Vinod Koul (2020-12-10 21:02:57) > On 10-12-20, 12:36, Stephen Boyd wrote: > > > + > > > + return regmap_update_bits(pll->clkr.regmap, PLL_USER_CTL(pll), > > > + (BIT(pll->width) - 1) << pll->post_di= v_shift, > >=20 > > Use GENMASK? >=20 > Looks like this can be: > GENMASK(pll->width + pll->post_div_shift - 1, pll->post_d= iv_shift) >=20 > Not sure which one you like :) Preferably a local u32 mask =3D GENMASK(...)