Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp293964pxb; Wed, 4 Nov 2020 23:25:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJwOX0A5NeArEZxLqSRxw/hr7d7reZPrlIZyR+C9kDdNMuN4fzbtbOpOL5a4ygO1qu4osQWP X-Received: by 2002:a17:906:268c:: with SMTP id t12mr953845ejc.377.1604561117532; Wed, 04 Nov 2020 23:25:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604561117; cv=none; d=google.com; s=arc-20160816; b=zwH0OXrV/lXdOlTp7TN5Jf/f1qeYdG7RE3LXhgunKiav0VH+wGmBIoR1IEMIyZ64cV 53MSdGC8g0bZz1hLP2DyvbrFuQFFjoyEc6WNEUmL5uD+bYRThvL5HXCVnz4aD2SoA40g 88VblbFXPqYoPmAfH5189OqDAdaJpkHCO7hp/AZmja2F9blRrOs9+11FckMqqYTpgU+S RIpaawibLdLppJ5clCCGrYHBlmPC49re8vQFE/uk+Jm0Wa5dc6VfcGvo4bpKk3bBz3QX kJhbQRKdbPcP4SlPnAehJu1cYJ9om1OYLMVVpE/h/mKvS5UYxSLNjJuu1hjL3nVgkLuy XkDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=WSZ3+zLaojBm8Llmv8mdwwh1sKAbO9V1JJ7VIGY5YaM=; b=qBSCbT+xMjZ6Uy35z/IT9sKIwy8bLnyenPQMuSwaRI/BH+R/p9x8pOcQ2ROXWohEe9 0ZsnRBrHyztiTUFiuKfbmRUkVLT/ZzbSqPJS97aexzvUcWBRtEdJ8WqeiJmHiFMKnyyl gGnGrg5pqhmpyT3s+RRBe7Tg7x2AfKXzN5cpbP5LmRndhKiEHfjl2GBaOpG2NKb/crTM Es7y8Ccp+Kia51hVxXxrmtpdY7vNQhbHBpMUaxfnHbkfJcifnNB/5+U+FG/MxAXVYSJF +6CzW8awBmeJ1aoHp1Qt8qW8GWvsbvlH5VDrt+wDBUuTvdSvIIrtGSzlPpEhytZzOJ5C Kz8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=iqd4cqha; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d18si541167edx.345.2020.11.04.23.24.53; Wed, 04 Nov 2020 23:25:17 -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=@sifive.com header.s=google header.b=iqd4cqha; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727018AbgKEHWY (ORCPT + 99 others); Thu, 5 Nov 2020 02:22:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725320AbgKEHWY (ORCPT ); Thu, 5 Nov 2020 02:22:24 -0500 Received: from mail-oi1-x243.google.com (mail-oi1-x243.google.com [IPv6:2607:f8b0:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D8F1C0613CF for ; Wed, 4 Nov 2020 23:22:24 -0800 (PST) Received: by mail-oi1-x243.google.com with SMTP id j7so693188oie.12 for ; Wed, 04 Nov 2020 23:22:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WSZ3+zLaojBm8Llmv8mdwwh1sKAbO9V1JJ7VIGY5YaM=; b=iqd4cqhaOURh+RJCIK7wwSnQuhnxujTo2ztBt+aVcxykRvNrG9uuBde3XzAhI2pjP9 OOE6bjCaG65Qow41L4PK7cMY5hA3m5pLHsAATuQziti/UZ0+bTHycJBzTs1WKnnc8giT tkB9OA/hvZS1dUUOu23LMJteVg7jYwg6J+RJ2kp/63ti20sl0YrPLjk0haMozMXNKVmb 64oS4WIeHb6RrS6tGBtkbjyiyJUWaKycGNBbqPgg/xgAza+dbfnEvHcJaDQsqkpGWLLs 6VgB5i9La8YVUm0i1paX5ZOAA2//pHVk34C21OIjBlBwfU8aA2aZhgSn9VPAQ3NkOpXw LyPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WSZ3+zLaojBm8Llmv8mdwwh1sKAbO9V1JJ7VIGY5YaM=; b=IXwvdJR5yjylZUIUcigsKdxoCoL+QjmJ/fVfuhyPOzt8R0L8N2YwlYwVuhrSTNKoaH 84q/C8qYfkT/eK5rLF4gJy9a71M/iI0eKiIL1d/zfVuCsDt8ounM7WUJdrMnzr/R7xmw VYxx94m9ZkbyUwqhL0JeuhxaZVd79bqEwPQE1MWgt7Pk4m/418dTF5b8UJgkPuGCPjlU TQljkBFGiVVln+EmtN72ttJ+cpxV+iJs1hgy9mnKaI57liVGGflKj3W0a3KJMDltPI5E 7SGJbn7nethzkI5/FsN/PQOAEmqfvPtBsLoafcPcluiQc7N+c1R6UqBCk6+dstOL3v4l RDag== X-Gm-Message-State: AOAM530ofI66r75Myfd7cw+UewYcWBq6SQMLg3Qv8Mx1zfaTnzm3Ct9G 8p2I7JpyHKavd3Pri/Gu/XZW8r0B2qmiUi1wUdpIEQ== X-Received: by 2002:aca:4b82:: with SMTP id y124mr750400oia.35.1604560943669; Wed, 04 Nov 2020 23:22:23 -0800 (PST) MIME-Version: 1.0 References: <160454434294.3965362.6100009498384462585@swboyd.mtv.corp.google.com> In-Reply-To: <160454434294.3965362.6100009498384462585@swboyd.mtv.corp.google.com> From: Zong Li Date: Thu, 5 Nov 2020 15:22:10 +0800 Message-ID: Subject: Re: [PATCH 1/4] clk: sifive: Extract prci core to common base To: Stephen Boyd Cc: Albert Ou , linux-clk@vger.kernel.org, "linux-kernel@vger.kernel.org List" , linux-riscv , Michael Turquette , Palmer Dabbelt , Paul Walmsley , Yash Shah Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 5, 2020 at 10:45 AM Stephen Boyd wrote: > > Quoting Zong Li (2020-10-16 02:18:23) > > Extract common core of prci driver to an independent file, it could > > allow other chips to reuse it. Separate SoCs-dependent code 'fu540' > > from prci core, then we can easily add 'fu740' later. > > Please indicate if there are any functional changes or this is just code > movement. There are some changes for common use, not just code movement or copies, I would figure out the changes in the commit message in the next version. > > > > > Signed-off-by: Zong Li > > --- > > drivers/clk/sifive/Makefile | 2 + > > drivers/clk/sifive/fu540-prci.c | 586 +------------------------------ > > drivers/clk/sifive/fu540-prci.h | 21 ++ > > drivers/clk/sifive/sifive-prci.c | 409 +++++++++++++++++++++ > > drivers/clk/sifive/sifive-prci.h | 201 +++++++++++ > > How much of this is a copy/pastes? Can you generate patches with > format-patch -M -C to try to find copies and renames? I tried to add -M and -C option to find renames and copies, but it doesn't detect anything here. > > > 5 files changed, 652 insertions(+), 567 deletions(-) > > create mode 100644 drivers/clk/sifive/fu540-prci.h > > create mode 100644 drivers/clk/sifive/sifive-prci.c > > create mode 100644 drivers/clk/sifive/sifive-prci.h > >