From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CCCECC5CFE7 for ; Wed, 11 Jul 2018 15:14:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8469D208E5 for ; Wed, 11 Jul 2018 15:14:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8469D208E5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nvidia.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388950AbeGKPTG (ORCPT ); Wed, 11 Jul 2018 11:19:06 -0400 Received: from hqemgate14.nvidia.com ([216.228.121.143]:9064 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388936AbeGKPTF (ORCPT ); Wed, 11 Jul 2018 11:19:05 -0400 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com (using TLS: TLSv1, AES128-SHA) id ; Wed, 11 Jul 2018 08:14:15 -0700 Received: from HQMAIL101.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Wed, 11 Jul 2018 08:14:14 -0700 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Wed, 11 Jul 2018 08:14:14 -0700 Received: from [10.21.132.122] (10.124.1.5) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 11 Jul 2018 15:14:15 +0000 Subject: Re: [PATCH v4 2/4] clk: tegra: refactor 7.1 div calculation To: Peter De Schrijver CC: Aapo Vienamo , Prashant Gaikwad , Michael Turquette , Stephen Boyd , Thierry Reding , , , References: <1531154338-3998-1-git-send-email-avienamo@nvidia.com> <1531154338-3998-3-git-send-email-avienamo@nvidia.com> <5805047f-4099-db34-0759-42e4a9e11629@nvidia.com> <20180711080022.GB1636@tbergstrom-lnx.Nvidia.com> <20180711111754.GC1636@tbergstrom-lnx.Nvidia.com> From: Jon Hunter Message-ID: <7022b1f4-97ac-aa1b-5c60-d7041da6704b@nvidia.com> Date: Wed, 11 Jul 2018 16:14:13 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180711111754.GC1636@tbergstrom-lnx.Nvidia.com> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL101.nvidia.com (172.20.187.10) Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/07/18 12:17, Peter De Schrijver wrote: > On Wed, Jul 11, 2018 at 09:42:20AM +0100, Jon Hunter wrote: >> >> On 11/07/18 09:00, Peter De Schrijver wrote: >>> On Tue, Jul 10, 2018 at 05:17:05PM +0100, Jon Hunter wrote: >>>> >>>> On 09/07/18 17:38, Aapo Vienamo wrote: >>>>> From: Peter De Schrijver >>>>> >>>>> Move this to a separate file so it can be used to calculate the sdmmc >>>>> clock dividers. >>>> >>>> Sorry for not commenting sooner, but what is the motivation for moving >>>> this to its own file? I don't see why we need to do this in order to use >>>> elsewhere. Furthermore, the original file is quite aptly named 'clk-divider.c' >>>> and now we have a div71.c which seems quite specific. >>> >>> How else would you do it? >> >> Keep it in the same file? >> > > That seems odd. clk-divider.c is meant to implement a clock type, not > utility functions we happen to need in several types. I see, then why not have a clk-utils.c for stuff like this. I am painting the bikeshed here, but div71.c seems very specific and I still don't understand the 7.1 bit. Cheers Jon -- nvpublic