Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2739123yba; Mon, 8 Apr 2019 03:45:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqx6K+aGl8UF5wf8mLsHbhUebQkSydQvzISRcYaAq7GRrv1zxRb3ENkNNeO9QAKDNDPtqOXX X-Received: by 2002:a63:84c7:: with SMTP id k190mr27198656pgd.255.1554720349701; Mon, 08 Apr 2019 03:45:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554720349; cv=none; d=google.com; s=arc-20160816; b=myY0QqlLKn1JheVikxpo4UatdDqOZL9dbAegug8uzOf5ACzbk7jadfzejnvtIGKxyD 3ESAKmCVi2PKwJzxmI6tDUhBNCe6jwqY/1C0R4kceDVqEIIw5eEp6N9YHIAuo8I3DIfd LUnz9ZJFi3co2p47KZcXvHyKIs5ORN9wH0XiejVXGSM4Jdnknw0AoYLLcQt4UbThaaJ4 XazLxtPLN3WVl2qnmDCfDOg01q+IJaYHKxNJmtZHi9bAloR14DZdksBIDWSk28ldAcyX U6Cxr5rl4M6SOZJzri3gfQma0MmHtgYyBzAoxdG2gY43H8CyVXH+8rfj7hlY3RzOTAUN BgYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Do567jb5pvMfMDC8A/0Ct++Ouy5BDdPJlPi9HiPjOgI=; b=txXYizWIQVVugmI9TndTvgoY4YaD40YJXo8kVIKkU47hB6hkafQsXvW5DyLzjPnj1p y6p9Meb/gy4pRXVXIJdrWwwuWFz9Fnb6LURMv2Ga+WU+8+HvgB30DveRMKYKXkBOd87H YnaEy7G/QYKd2cBavMD4ycwR+54qspjNIDh/6+x94y4nH/AJoEnyDtNP4VaMFkKX6Tfj 48CZvzYCFR+ctY6nInWWkjvkAX+oiRx7RYplHCuHk7L6wNrleskflooL9WNFLLtF32d8 ozGZJs+PRL40R2S9eyMCALbm1/7qGTawqHMh1uTA5eqiChdtY3iKeY/OUI7PQW1AvZ+r RCkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PoFroFYm; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 127si26627502pgf.595.2019.04.08.03.45.34; Mon, 08 Apr 2019 03:45:49 -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=@linaro.org header.s=google header.b=PoFroFYm; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726711AbfDHKox (ORCPT + 99 others); Mon, 8 Apr 2019 06:44:53 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:43144 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725877AbfDHKow (ORCPT ); Mon, 8 Apr 2019 06:44:52 -0400 Received: by mail-pf1-f194.google.com with SMTP id c8so7388556pfd.10 for ; Mon, 08 Apr 2019 03:44:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Do567jb5pvMfMDC8A/0Ct++Ouy5BDdPJlPi9HiPjOgI=; b=PoFroFYmQDL1qoqLuT2Z2InIhcdfN9or+hy3E9o1C3kWliyeQdCWF8imcV+IRiqDXq Q/D9HQLX96O4hpY6rhOj0v5KYfQe/tvP9fWOFYPPFhrUNbyZDLwo4+TV1Ghz2qrB+BR6 nzk6Cr7ixSHG6f6jUdsSGiFLJ+i2f6RWwf1mL31TeSS51Xwr/6U1QnumIqJAFF5wFm3M VRBPRoWabVqxV1BjBQQxKFvjrL5swvttWiBxQo34VxsVK/IU2gLjbtXNHSIBW9mI5TbK IfbEsyp95cilYFZ5Q/YuiQ6Olq8uPlUVvN6dLJiRcEbCMr7Mhwov0kWstPzbpyxpWUZW n/2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Do567jb5pvMfMDC8A/0Ct++Ouy5BDdPJlPi9HiPjOgI=; b=iCOkcMmq3KcYV3TtZ9Nb00CNGAGPtlXaRWPVkM6SAlqn9hqpThwNPlPur5K/khxbL2 juiu/Is8Qe++2AMAMqe2c+iKulTJmg10OjEPRiWEtp9uyY+Q8GqPxFMTfkVVr2GPiPHB Hh901JWbWTEkLSYSCdvJO4Fjct9/Jy+VEY25k2iUa66+hhMFxa2Y3ZT5YeFR1bPvKYtx EVgDryTu3QqbbTOWK7aiqyF57Bxbys9QvXxUVLsmtMj3YVIkTlpZBv3an909CNf/ZuVM 9hRmbkfBh4NI85QifoiUGPzO8qR1zIcCxTbDGMZYuRBJMAuVgXqWipU17vsQhDSDDUK8 PpCg== X-Gm-Message-State: APjAAAVUTJ08XhzkLGxA98U1M8IU/H8OtsqzA8iPapkLwNB2u0WauWQ+ Dl54YrRAfuGKKkHFmFMFlnmV+Q== X-Received: by 2002:aa7:9aa8:: with SMTP id x8mr6928766pfi.193.1554720291887; Mon, 08 Apr 2019 03:44:51 -0700 (PDT) Received: from localhost ([122.172.162.162]) by smtp.gmail.com with ESMTPSA id k65sm57380024pfb.68.2019.04.08.03.44.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Apr 2019 03:44:51 -0700 (PDT) Date: Mon, 8 Apr 2019 16:14:49 +0530 From: Viresh Kumar To: Niklas Cassel Cc: Ilia Lin , Viresh Kumar , Nishanth Menon , Stephen Boyd , Rob Herring , Mark Rutland , Andy Gross , David Brown , "Rafael J. Wysocki" , linux-arm-msm@vger.kernel.org, jorge.ramirez-ortiz@linaro.org, Sricharan R , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 2/9] cpufreq: qcom: Re-organise kryo cpufreq to use it for other nvmem based qcom socs Message-ID: <20190408104449.zqbamhcrjheanlgt@vireshk-i7> References: <20190404050931.9812-1-niklas.cassel@linaro.org> <20190404050931.9812-3-niklas.cassel@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190404050931.9812-3-niklas.cassel@linaro.org> User-Agent: NeoMutt/20180323-120-3dd1ac Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04-04-19, 07:09, Niklas Cassel wrote: > From: Sricharan R > > The kryo cpufreq driver reads the nvmem cell and uses that data to > populate the opps. There are other qcom cpufreq socs like krait which > does similar thing. Except for the interpretation of the read data, > rest of the driver is same for both the cases. So pull the common things > out for reuse. This is really sad for me. The driver was added in May last year and I am quite sure it would have been known at that time itself that there are more hardware platforms which will end up using this driver because of the similarity in hardware. Not that you (personally) could have done anything about it as you weren't there then, but it should have been taken care of by the then developers. Anyway, its okay now, can't do anything but rename things. -- viresh