From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752323AbdLMJsn (ORCPT ); Wed, 13 Dec 2017 04:48:43 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:55174 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751507AbdLMJsi (ORCPT ); Wed, 13 Dec 2017 04:48:38 -0500 Date: Wed, 13 Dec 2017 10:48:40 +0100 From: Greg Kroah-Hartman To: Viresh Kumar Cc: Vincent Guittot , Stephen Boyd , Rajendra Nayak , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, robdclark@gmail.com, s.hauer@pengutronix.de, l.stach@pengutronix.de, shawnguo@kernel.org, fabio.estevam@nxp.com, nm@ti.com, xuwei5@hisilicon.com, robh+dt@kernel.org Subject: Re: [PATCH V4 05/12] boot_constraint: Add support for clk constraints Message-ID: <20171213094840.GG13194@kroah.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 29, 2017 at 07:18:53PM +0530, Viresh Kumar wrote: > This patch adds the clk constraint type. > > The constraint is set by enabling the clk for the device. Once the > device is probed, the clk is disabled and the constraint is removed. > > We may want to do clk_set_rate() from here, but lets wait for some real > users that really want it. > > Tested-by: Rajendra Nayak > Signed-off-by: Viresh Kumar > --- > drivers/boot_constraints/Makefile | 2 +- > drivers/boot_constraints/clk.c | 70 +++++++++++++++++++++++++++++++++++++++ > drivers/boot_constraints/core.c | 4 +++ > drivers/boot_constraints/core.h | 3 ++ > include/linux/boot_constraint.h | 5 +++ > 5 files changed, 83 insertions(+), 1 deletion(-) > create mode 100644 drivers/boot_constraints/clk.c > > diff --git a/drivers/boot_constraints/Makefile b/drivers/boot_constraints/Makefile > index a45616f0c3b0..3424379fd1e4 100644 > --- a/drivers/boot_constraints/Makefile > +++ b/drivers/boot_constraints/Makefile > @@ -1,3 +1,3 @@ > # Makefile for device boot constraints > > -obj-y := core.o supply.o > +obj-y := clk.o core.o supply.o > diff --git a/drivers/boot_constraints/clk.c b/drivers/boot_constraints/clk.c > new file mode 100644 > index 000000000000..b5b1d63c3e76 > --- /dev/null > +++ b/drivers/boot_constraints/clk.c > @@ -0,0 +1,70 @@ > +/* > + * Copyright (C) 2017 Linaro. > + * Viresh Kumar > + * > + * This file is released under the GPLv2. > + */ > + > +#define pr_fmt(fmt) "Clock Boot Constraints: " fmt You don't use this :(