Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1274510yba; Fri, 26 Apr 2019 18:06:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqws/HgfWWt1hiWZHqK+9AVUwisgA9DEREtqVw0pcIvIq0r3x3hHQuWhZQjuumVy0Dqo0rEB X-Received: by 2002:a17:902:7241:: with SMTP id c1mr28161867pll.326.1556327212647; Fri, 26 Apr 2019 18:06:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556327212; cv=none; d=google.com; s=arc-20160816; b=0szmZ7wj75NzBKuFxMm136lver1d7ZOLdWRTNHXNLqQ6t/M76vLmnT5pe0ays0UnSc 1xlc2leuN5ehROYxFGZOsyTYNQDg6AZHICEHvK/LWY/PbHhtwqRmd+DIXPCXkwGLOJM0 x/LIOzucEOkTZRItbQKkvkV5NUXxXHb4h1OxgJsCtuVez+WIyEByvUJYyrtmAxBP0IiM HKbL1uZdEhLRwlLYEOe/3i5e63g9Y2ptQVM+4LmkerwvBR1HSfiifgAVT1+y1FgYiEbg EIFQYeFWvG4JcmVusrrzml0UyfVuipSWuY1HtTRwd385ktdOmR+4h11MXR98sFWPq2QA pFzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:user-agent:message-id:cc:to:subject :from:references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=w7xtzG77bIQLj4EH5p8XHdnkslc2MaHBi4pBdgv/a/8=; b=V39TFzb6ae6dumGKil4YmL3lraiK+87qe1Eut2JDipmR85xu2KOnn9PzWwWQpHgihN 4fndMjQHj6NOHRii2NrONh1aFjMuw9TFl3s1xxvXZI39/Tpv5kG8lVCW8b8rj29AmQfj DqBg53PKz6CBT/PhDRQAZNVp3aCv5W2VKzS4ceCGlLxCtWsefn45maB3c/hNTR3VzrLe eNebqjNEoxAkIwovDOVLLgTswlllH3k30R4MBuyY1axVix2i6CGxYtPrAclIo7lJUNZP 2Cba1KYOUMtpG5866+xhv0QNkU18PAb4Keh5RH0fnzOFWIfvGtuk5p4UkZ4hQRTeunTP QxUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yesemrRi; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a61si27748810pla.178.2019.04.26.18.06.05; Fri, 26 Apr 2019 18:06:52 -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; dkim=pass header.i=@kernel.org header.s=default header.b=yesemrRi; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727224AbfD0BBx (ORCPT + 99 others); Fri, 26 Apr 2019 21:01:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:36292 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726266AbfD0BBw (ORCPT ); Fri, 26 Apr 2019 21:01:52 -0400 Received: from localhost (unknown [104.132.0.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DEEA020873; Sat, 27 Apr 2019 01:01:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556326912; bh=w7xtzG77bIQLj4EH5p8XHdnkslc2MaHBi4pBdgv/a/8=; h=In-Reply-To:References:From:Subject:To:Cc:Date:From; b=yesemrRi5X8RA3qSogY0wR6IFNjsCuGDf94v+yi87TNw8NANAtH5SyyTyyza35Wci KMu3bYH7HVPRzyCL0CiyD5manlKpF5+mnOZoQkSC5dAkls3RyulJUOnANgv0mbkPsF 7PYeN9bu0hlAknmYFA7R2QisNwcHeOH0e7f4VqPQ= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20190411082733.3736-2-paul.walmsley@sifive.com> References: <20190411082733.3736-2-paul.walmsley@sifive.com> From: Stephen Boyd Subject: Re: [PATCH v3 1/3] clk: analogbits: add Wide-Range PLL library To: Paul Walmsley , devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Cc: Paul Walmsley , Paul Walmsley , Wesley Terpstra , Palmer Dabbelt , Michael Turquette , Megan Wachs Message-ID: <155632691100.168659.14460051101205812433@swboyd.mtv.corp.google.com> User-Agent: alot/0.8 Date: Fri, 26 Apr 2019 18:01:51 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Paul Walmsley (2019-04-11 01:27:32) > Add common library code for the Analog Bits Wide-Range PLL (WRPLL) IP > block, as implemented in TSMC CLN28HPC. >=20 > There is no bus interface or register target associated with this PLL. > This library is intended to be used by drivers for IP blocks that > expose registers connected to the PLL configuration and status > signals. >=20 > Based on code originally written by Wesley Terpstra > : > https://github.com/riscv/riscv-linux/commit/999529edf517ed75b56659d456d22= 1b2ee56bb60 >=20 > This version incorporates several changes requested by Stephen > Boyd . >=20 > Signed-off-by: Paul Walmsley > Signed-off-by: Paul Walmsley > Cc: Wesley Terpstra > Cc: Palmer Dabbelt > Cc: Michael Turquette > Cc: Stephen Boyd > Cc: Megan Wachs > Cc: linux-clk@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > --- I haven't deeply reviewed at all, but I already get two problems when compile testing these patches. I can fix them up if nothing else needs fixing. drivers/clk/analogbits/wrpll-cln28hpc.c:165 __wrpll_calc_divq() warn: shoul= d 'target_rate << divq' be a 64 bit type? drivers/clk/sifive/fu540-prci.c:214:16: error: return expression in void fu= nction