Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965312AbbENTh1 (ORCPT ); Thu, 14 May 2015 15:37:27 -0400 Received: from mail-ie0-f171.google.com ([209.85.223.171]:34959 "EHLO mail-ie0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965061AbbENThZ (ORCPT ); Thu, 14 May 2015 15:37:25 -0400 MIME-Version: 1.0 In-Reply-To: <1431451444-23155-21-git-send-email-rklein@nvidia.com> References: <1431451444-23155-1-git-send-email-rklein@nvidia.com> <1431451444-23155-21-git-send-email-rklein@nvidia.com> Date: Thu, 14 May 2015 12:37:24 -0700 X-Google-Sender-Auth: CzOOUpa5cTtarln6EAmQTnzuM2A Message-ID: Subject: Re: [PATCH v5 19/21] clk: tegra: Add Super Gen5 Logic From: Benson Leung To: Rhyland Klein Cc: Peter De Schrijver , Mike Turquette , Stephen Warren , Stephen Boyd , Thierry Reding , Alexandre Courbot , Bill Huang , Paul Walmsley , Jim Lin , linux-clk@vger.kernel.org, linux-tegra@vger.kernel.org, "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1386 Lines: 34 On Tue, May 12, 2015 at 10:24 AM, Rhyland Klein wrote: > From: Bill Huang > > Super clock divider control and clock source mux of Tegra210 has changed > a little against prior SoCs, this patch adds Gen5 logic to address those > differences. > > Signed-off-by: Bill Huang > --- > v2: > - Fixed sclk divider address (0x370 -> 0x2c) > > drivers/clk/tegra/Makefile | 1 + > drivers/clk/tegra/clk-tegra-super-gen5.c | 150 ++++++++++++++++++++++++++++++ > drivers/clk/tegra/clk.h | 3 + > 3 files changed, 154 insertions(+) > create mode 100644 drivers/clk/tegra/clk-tegra-super-gen5.c I've diffed clk-tegra-super-gen5.c and the existing clk-tegra-super-gen4.c, and there's a lot of code duplication here. They're the same pair of functions, with several small changes. Since the idea behind pulling out the super clock initialization into a common file was to reuse the same init, could we extend the super-gen4 file (rename if you have to) to support both gens instead? -- Benson Leung Software Engineer, Chrom* OS bleung@chromium.org -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/