Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp230221pxb; Wed, 4 Nov 2020 20:55:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJyr0xWfXoy49RgyeLDvIi7uZLVwxbbj4NdlcWzkzAHGBaZ5OCKVBE5hC6hq1QakBJ+qL+f/ X-Received: by 2002:a17:906:e83:: with SMTP id p3mr536472ejf.243.1604552144293; Wed, 04 Nov 2020 20:55:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604552144; cv=none; d=google.com; s=arc-20160816; b=HJXslcM46gmnFbcm4IK68FUIqk2faQwYljnHr4ypKJ1IC5yeuHWYub21yd8QakJ81w QWVSLP1l2h7v5tUSdJc5QikspDuMgTeRyed7OK3RxcNvANILAa3+VySQV7IN+h7HwR8B o1K8to6Mmb/jv/eg8w/mRz+TxsLW8/Gawh/D9vn30oEb/dGoILu4XHMYIeWNm6j4qvM2 AcbYx210Pm12QyC00jAdvryshkvL02NB62r9zQi6pSh1Nj6ZiHXgf+B+55wEigEcgLbE 2Vc6oyMXNTuiGGvOn8XB3d7Fdw4kt0p7wU9nbPu8xTWayzTx1bOJ9NL2V5TKah5YVPV9 OypQ== 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=eYYTytLphm0Z+fdTEl701WCaAIJgeneN/lnyuljDjOU=; b=YiIH1znw9+qHhDy74NH3FRahVl059kRLw2Bt4RnPwl2q2rTs4EzNXWU3XDXfm5T+I8 EM9Arg+2HcUQroQ9alASEb5JSbJqP3331AnHwLL+FSKcMr9dgYfk2a/sPA8jtfOzANuk xAuYgUTGqijlFc/IO9gZMPs7/oiNdOMC7xrh4lyT3GSyzYAD5faZ5gV4C9Z4FVjPJBhz KINCZ42lKd7/+WXp56UZfigwwLuzKanYB1pc0IPdfgxhNvBDoRZLcWA6qMxa4EBuFUKC 2S5ZKIuutVsqjhpGxRciqon7hfp75X8NlDoE/BF8yppPhpVAG5yeHOWPBKpcDMrBOfSr C8dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vToYG6ri; 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 x9si355690ejc.745.2020.11.04.20.55.21; Wed, 04 Nov 2020 20:55:44 -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=default header.b=vToYG6ri; 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 S1732373AbgKECpq (ORCPT + 99 others); Wed, 4 Nov 2020 21:45:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:56800 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729344AbgKECpq (ORCPT ); Wed, 4 Nov 2020 21:45:46 -0500 Received: from kernel.org (unknown [104.132.1.79]) (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 944272074B; Thu, 5 Nov 2020 02:45:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604544344; bh=ZND+etKvo9cOoumubJj8jAyx7zVBF0vSY5DA1VtbySY=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=vToYG6rik7/vw09/YnScFZDKwVW3nkERgEDEL8Yf27KpbBKY5P/Ne4vovyhUQYFqY ciLFlMCU6d5LuUAGnh9afyXRgmEjB2DaVPKu8XUYAQADGo3d8EuXA6wH9DPToqMjvB +KKewqJce9mQktXfsCl34SICmOwIPwpJJUmqlr2E= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: Subject: Re: [PATCH 1/4] clk: sifive: Extract prci core to common base From: Stephen Boyd Cc: Zong Li To: Zong Li , aou@eecs.berkeley.edu, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, mturquette@baylibre.com, palmer@dabbelt.com, paul.walmsley@sifive.com, yash.shah@sifive.com Date: Wed, 04 Nov 2020 18:45:42 -0800 Message-ID: <160454434294.3965362.6100009498384462585@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. >=20 > 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? > 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 >