Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7312ybi; Fri, 7 Jun 2019 03:06:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqzxEfWJ1fPV1DZ05tTTLFWTrHyD1kOgYxOD2TTTymofIyf4AEYUZTEH1rLjQhJ9YcwaSDbm X-Received: by 2002:a63:eb0a:: with SMTP id t10mr1799139pgh.99.1559902009527; Fri, 07 Jun 2019 03:06:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559902009; cv=none; d=google.com; s=arc-20160816; b=kbI0gycLrNBjTL3y9oXzE6uIH0dhz8ypt+MtopJ1pnyia+60DITba2dYHtA3Qqc+e8 MDikcgcntwkBj0LlnkjypERXaN9KNbYZQn8MmZLBuDeItyKyUzvZ0e1Nge3rEpt6gaea vKhDsWj+42e+g61mOIwGK2MrR5Beq0qnMuwjgjwnlNojS8cDxVvLQSmdM8u+NLTKrFBl 2skkNNklKUoG3SVZhhAwDH96V/kdKGBcxLfdLmHLVNxajhR/B9L3gnaMYNISJZXOQW5Z lHXxWuSd80hgEjnUcKTmTMP+CbPzKYWiPppigNvkpy8ay49TGK/7MRxCtgEKu4I4vuBV 14yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject; bh=iMKhfzBmHmzAXCXOAdmHeSZneTZyJkiSZSyGLvKlYdo=; b=pJ6TGEkRqzieeQYDtDmIKjMpBr+dshF7j882Pt57lBom21OyixZ+WHu1KOM+QHhp8N l0Emss1/5XvQ+RLUwThZZAz9PkkTj+GYn39VgEw8PuxSBfalpGZ5qRZmFUpXG9pEJVKG WorIQUgZS/cqfirbKBFn9sDDFORgsS5LjtxlQql3B02QTI9sZtk7ZMc4TG8eIqLN9R5L GyF0JnexHo7jAbNR7cFUYVzYBkvUxusvWy4otzQUCqGh+WcA1z7Hz4d4ZiLfrZYbFY/y P5IskODmKB0BqJvSt7AxLcUYWtHR/aW7qkCZ7GWY1MaKj4Fkn3cbRpcjlCdvytZMTMPp scAA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d15si1316899pfn.56.2019.06.07.03.06.31; Fri, 07 Jun 2019 03:06: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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727315AbfFGKEx convert rfc822-to-8bit (ORCPT + 99 others); Fri, 7 Jun 2019 06:04:53 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:49275 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725978AbfFGKEw (ORCPT ); Fri, 7 Jun 2019 06:04:52 -0400 Received: from [192.168.1.162] ([37.4.249.160]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.183]) with ESMTPSA (Nemesis) id 1N2EDg-1gY7FI0Hdu-013bmj; Fri, 07 Jun 2019 12:04:30 +0200 Subject: Re: [PATCH v2 2/7] clk: bcm283x: add driver interfacing with Raspberry Pi's firmware To: Nicolas Saenz Julienne , Stefan Wahren , linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, f.fainelli@gmail.com, ptesarik@suse.com, sboyd@kernel.org, viresh.kumar@linaro.org, mturquette@baylibre.com, linux-pm@vger.kernel.org, rjw@rjwysocki.net, eric@anholt.net, bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, linux-clk@vger.kernel.org, mbrugger@suse.de, ssuloev@orpaltech.com References: <20190606142255.29454-1-nsaenzjulienne@suse.de> <20190606142255.29454-3-nsaenzjulienne@suse.de> <3c4c8b56-eb02-be6f-9b3a-a94a895f10f0@gmx.net> <5dccf2500f023ce2c78d9ff3f41b53e36843298b.camel@suse.de> From: Stefan Wahren Openpgp: preference=signencrypt Autocrypt: addr=stefan.wahren@i2se.com; keydata= xsFNBFt6gBMBEACub/pBevHxbvJefyZG32JINmn2bsEPX25V6fejmyYwmCGKjFtL/DoUMEVH DxCJ47BMXo344fHV1C3AnudgN1BehLoBtLHxmneCzgH3KcPtWW7ptj4GtJv9CQDZy27SKoEP xyaI8CF0ygRxJc72M9I9wmsPZ5bUHsLuYWMqQ7JcRmPs6D8gBkk+8/yngEyNExwxJpR1ylj5 bjxWDHyYQvuJ5LzZKuO9LB3lXVsc4bqXEjc6VFuZFCCk/syio/Yhse8N+Qsx7MQagz4wKUkQ QbfXg1VqkTnAivXs42VnIkmu5gzIw/0tRJv50FRhHhxpyKAI8B8nhN8Qvx7MVkPc5vDfd3uG YW47JPhVQBcUwJwNk/49F9eAvg2mtMPFnFORkWURvP+G6FJfm6+CvOv7YfP1uewAi4ln+JO1 g+gjVIWl/WJpy0nTipdfeH9dHkgSifQunYcucisMyoRbF955tCgkEY9EMEdY1t8iGDiCgX6s 50LHbi3k453uacpxfQXSaAwPksl8MkCOsv2eEr4INCHYQDyZiclBuuCg8ENbR6AGVtZSPcQb enzSzKRZoO9CaqID+favLiB/dhzmHA+9bgIhmXfvXRLDZze8po1dyt3E1shXiddZPA8NuJVz EIt2lmI6V8pZDpn221rfKjivRQiaos54TgZjjMYI7nnJ7e6xzwARAQABzSlTdGVmYW4gV2Fo cmVuIDxzdGVmYW4ud2FocmVuQGluLXRlY2guY29tPsLBdwQTAQgAIQUCXIdehwIbAwULCQgH AgYVCAkKCwIEFgIDAQIeAQIXgAAKCRCUgewPE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ML AQ== Message-ID: <9bd36133-baef-10b8-08a4-25f5b7be04f3@i2se.com> Date: Fri, 7 Jun 2019 12:04:27 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <5dccf2500f023ce2c78d9ff3f41b53e36843298b.camel@suse.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Content-Language: en-US X-Provags-ID: V03:K1:LqfBV9PvzxA9MnbA+jtacLi6cIOqHaVauPhIDYqDdyUUEZoJWlr YC461MQ/1/I5ZPPtESEfzdpcq9fQ3jT24P9M2hgwAx/XP1oHv6SKPqq2BaTc0p880QHdznf qvlf0oCCucXgMpUyVopiPU5P1qU8R1Sy7ucYlmf1kXtE38uqP2UFF87Wrjzz6sRHHf6G6Rs RPV2NQVJS6xaP1gYpzT5A== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:rYvChbU0r58=:G2RamDWSXfpLa60dYMxrXm z8d2SFKrLM9xAVOdRy5rMIinyAQkr2Z8E1Dru6NNnVd2AqR719gMQPzckl9mwWM7NVAdQ9m2T 5r08OHAT+LJefFkd4PcMwOSKzGw5Tcs9I35mKKCHWUN6FLPwm67uU1Zze+XAvgsAi6o0Nv4mJ HyuqnpBib3Tmw5w7PwWI67qiOVfnbgCGGr9yvWmc9WgcW9q2LoldZ3ApVDuqgTlNwVKI/QoeL S7EYFXckfnI4WZ+M235/Dq6kc2/OFd76zGkX1wyUTfqbvKrRl/jpEV/Olv949MBEii1HqFfVS DACTYcds0I4hWvrHipBv01kIj87pyE6Lg2k/J7LV9YxOsZ6R/wyKvciAISDgUXWug4fs98+Un F8IJRi2g7hqQ4YKd+Nk49aIfTFgc7SIRo4CeGahx77+/k7CT1kRGgoynCP6Gaid5bwXP18xGD Gy4ape4ihX6J+nHj3/HwAQGVkfvFwa1JgOv6kgziecwL/0b32zBnUBqygVYqgVu5wYO+nizKd cMGH8YgCIW2wpTnULR4Vc5fRxwqK7qzaTpNt9aDLIaAtrhQkXePN4JUTSUnIuAGiW451ZjMpK FG6hT3/qm5i5UPIoX4puxukqIBn9eCkrYpxoGE5N0F7SeuG7k4Vx98z3Ms899YZJzKInWZ5Xa y8mIfPYYvgFPG707UfN1DrUbaq4DIUBzT3zYtQc0qkbnFQiJrDP0Ugalf4TNwRe5I0ieXMhcq dFyu3bI0OT4pPMjRoRckOX8slZzjkybsj4iLgMrXt+V/bCR7Zq4ivo2GdAc= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 07.06.19 um 11:42 schrieb Nicolas Saenz Julienne: > On Fri, 2019-06-07 at 11:26 +0200, Stefan Wahren wrote: >> Hi Nicolas, >> >> Am 06.06.19 um 16:22 schrieb Nicolas Saenz Julienne: >>> Raspberry Pi's firmware offers an interface though which update it's >>> clock's frequencies. This is specially useful in order to change the CPU >>> clock (pllb_arm) which is 'owned' by the firmware and we're unable to >>> scale using the register interface provided by clk-bcm2835. >>> >>> Signed-off-by: Nicolas Saenz Julienne >>> Acked-by: Eric Anholt >>> >>> --- >>> >>> Changes since v1: >>> - Use BIT() >>> - Add Kconfig entry, with compile test >>> - remove prepare/unprepare >>> - Fix uninitialized init.name in pllb registration >>> - Add MODULE_ALIAS() >>> - Use determine_rate() instead of round_rate() >>> - Add small introduction explaining need for driver >>> >>> drivers/clk/bcm/Kconfig | 7 + >>> drivers/clk/bcm/Makefile | 1 + >>> drivers/clk/bcm/clk-raspberrypi.c | 302 ++++++++++++++++++++++++++++++ >>> 3 files changed, 310 insertions(+) >>> create mode 100644 drivers/clk/bcm/clk-raspberrypi.c >>> >>> diff --git a/drivers/clk/bcm/Kconfig b/drivers/clk/bcm/Kconfig >>> index 29ee7b776cd4..a4a2775d65e1 100644 >>> --- a/drivers/clk/bcm/Kconfig >>> +++ b/drivers/clk/bcm/Kconfig >>> @@ -64,3 +64,10 @@ config CLK_BCM_SR >>> default ARCH_BCM_IPROC >>> help >>> Enable common clock framework support for the Broadcom Stingray SoC >>> + >>> +config CLK_RASPBERRYPI >>> + tristate "Raspberry Pi firmware based clock support" >>> + depends on RASPBERRYPI_FIRMWARE || (COMPILE_TEST && >>> !RASPBERRYPI_FIRMWARE) >>> + help >>> + Enable common clock framework support for Raspberry Pi's firmware >>> + dependent clocks >>> diff --git a/drivers/clk/bcm/Makefile b/drivers/clk/bcm/Makefile >>> index 002661d39128..eb7159099d82 100644 >>> --- a/drivers/clk/bcm/Makefile >>> +++ b/drivers/clk/bcm/Makefile >>> @@ -7,6 +7,7 @@ obj-$(CONFIG_CLK_BCM_KONA) += clk-bcm21664.o >>> obj-$(CONFIG_COMMON_CLK_IPROC) += clk-iproc-armpll.o clk-iproc-pll.o >>> clk-iproc-asiu.o >>> obj-$(CONFIG_ARCH_BCM2835) += clk-bcm2835.o >>> obj-$(CONFIG_ARCH_BCM2835) += clk-bcm2835-aux.o >>> +obj-$(CONFIG_CLK_RASPBERRYPI) += clk-raspberrypi.o >>> obj-$(CONFIG_ARCH_BCM_53573) += clk-bcm53573-ilp.o >>> obj-$(CONFIG_CLK_BCM_CYGNUS) += clk-cygnus.o >>> obj-$(CONFIG_CLK_BCM_HR2) += clk-hr2.o >> not your fault but you better rebase your next version on linux-next >> because Florian's latest patches ("clk: bcm: Make BCM2835 clock drivers >> selectable") collide with this patch. >> >> Checkpatch gives the following output about this patch: >> >> WARNING: 'harware' may be misspelled - perhaps 'hardware'? >> >> #58: FILE: drivers/clk/bcm/clk-raspberrypi.c:5: >> + * Even though clk-bcm2835 provides an interface to the harware >> registers for >> >> ERROR: code indent should use tabs where possible >> #197: FILE: drivers/clk/bcm/clk-raspberrypi.c:144: >> +^I^I^I^I struct clk_rate_request *req)$ > Noted, thanks. > > As this seems fairly calm, should I send v3 or wait little more? > Please wait until i'm finished with testing. If i don't gave you a feedback until Tuesday, send out your next version. Okay?