Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8414321ybi; Thu, 6 Jun 2019 11:56:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqzRywojKvWmES2gJYCE5YnrzY5KCoq2mNohM3UkwTlf+jLGPoKfueYmpbzFbRMxfRHPV1OQ X-Received: by 2002:a17:90a:9a95:: with SMTP id e21mr1279566pjp.98.1559847369654; Thu, 06 Jun 2019 11:56:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559847369; cv=none; d=google.com; s=arc-20160816; b=AevaaskRPzwA5xC+xQT2/SC2FMh/pviV6ASEgxspQWcDYOgpAEFOnhDEpuxtbpJq+O 6NUBAKpvCYx7AT4d86WL3XtISwfO0EOPuF4UwX1odYkxkF5duKW5FCCWhfp3PdTdkDAr gKfJ7rRz+1JdKeCWhr16yd6AWQh4K9nRiCXhIUeAM3fyBNlfcBCq6lqGnuBigvSEGImc HKNd7ddQxAy7zVzO0Y5PvDLpWSd8fG05dNUAyrbwAMEqRChqeD41umiaYs8Y85vy7ydn F2PiO55866hktgh/zZqaR3+cf14wqm9UdQklrQtsP4nwjW5dLB1GJFU2KCKMoZubB8nx 97Yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:user-agent:cc:from :subject:to:references:in-reply-to:content-transfer-encoding :mime-version:dkim-signature; bh=ukvdk3JRQyZsg0qpJ24dU8M49xvDMPxVQF7uchZQEj0=; b=DpZl11EcP6BTF0zAMh4Y0v75cNTB63IZ55E8ykTYUuEUcbxwHDV5/9uim30I+1Jla1 v9CSS4ePxQ3+pD5xAnuT/WLBg5RyTRS2Uqc3BRbdEy8Ri+j09tL+roFbkUmP4rgvE+Ai SuBg6SSVtNhKTbJKZddwzhVxCYTNDwCckt0p7B6QuTbJHPhrEf7teqWtAohCeUTLwZIe 0mFBNQUuWt4C7L2njAc7LZdUhqEXFEHll2TWULLlW2193Zpn3moRgz1lnz8nOqa/DDOn YSe8w7JX0hRY+CISaxTdW1UuaGNb0AtpYr0R9ahkCXxgVhifzTAL1q59jyaXuSfYzepx pUwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VXzwjZh3; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 93si2338290plc.139.2019.06.06.11.55.53; Thu, 06 Jun 2019 11:56:09 -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=@kernel.org header.s=default header.b=VXzwjZh3; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730080AbfFFRUy (ORCPT + 99 others); Thu, 6 Jun 2019 13:20:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:52050 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727029AbfFFRUy (ORCPT ); Thu, 6 Jun 2019 13:20:54 -0400 Received: from kernel.org (unknown [104.132.0.74]) (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 C82E42083E; Thu, 6 Jun 2019 17:20:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559841653; bh=6YEYS2jdADr9Oq/g9NGffgzEuz06f2gVd4Lh8QYw1TU=; h=In-Reply-To:References:To:Subject:From:Cc:Date:From; b=VXzwjZh3p8VZPRX7PnXTwCco6S3FNWuYLO+sKtg5HELRMD6B9ePLckxb34uA2Cdf1 E4h9AF7o7xvUfaf15aGV0oFVFX1Jn2Y9f99Ts1r8xIDiC7zJ0rX+eQ7RRT4EEmnlQC TLG6b1DoufRctlYPm6z9bbwhRwD2UcJiehne1uwM= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <2dd0a516bbfe6150112ec7dc5f7d4d85cbe3cd03.camel@suse.de> References: <20190606142255.29454-1-nsaenzjulienne@suse.de> <20190606142255.29454-6-nsaenzjulienne@suse.de> <20190606170505.39C5B20693@mail.kernel.org> <2dd0a516bbfe6150112ec7dc5f7d4d85cbe3cd03.camel@suse.de> To: Nicolas Saenz Julienne , linux-kernel@vger.kernel.org, stefan.wahren@i2se.com Subject: Re: [PATCH v2 5/7] clk: raspberrypi: register platform device for raspberrypi-cpufreq From: Stephen Boyd Cc: linux-arm-kernel@lists.infradead.org, f.fainelli@gmail.com, ptesarik@suse.com, 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 User-Agent: alot/0.8.1 Date: Thu, 06 Jun 2019 10:20:52 -0700 Message-Id: <20190606172053.C82E42083E@mail.kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Nicolas Saenz Julienne (2019-06-06 10:16:56) > On Thu, 2019-06-06 at 10:05 -0700, Stephen Boyd wrote: > > Quoting Nicolas Saenz Julienne (2019-06-06 07:22:58) > > > diff --git a/drivers/clk/bcm/clk-raspberrypi.c b/drivers/clk/bcm/clk- > > > raspberrypi.c > > > index b1365cf19f3a..052296b5fbe4 100644 > > > --- a/drivers/clk/bcm/clk-raspberrypi.c > > > +++ b/drivers/clk/bcm/clk-raspberrypi.c > > > @@ -63,6 +63,8 @@ struct raspberrypi_firmware_prop { > > > __le32 disable_turbo; > > > } __packed; > > > =20 > > > +static struct platform_device *rpi_cpufreq; > >=20 > > Why can't this be stored in platform driver data? >=20 > It actually could, I just followed the same pattern as the code found in = patch > #3. I'll update it in the next version if you prefer it.=20 >=20 Yes please. It reduces global state.