From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Lunn Subject: Re: [PATCH 1/4] cpufreq: Add a cpufreq driver for Marvell Dove Date: Wed, 23 Oct 2013 15:51:16 +0200 Message-ID: <20131023135116.GC31126@lunn.ch> References: <1382533461-31021-1-git-send-email-andrew@lunn.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from vps0.lunn.ch ([178.209.37.122]:43400 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751163Ab3JWNzv (ORCPT ); Wed, 23 Oct 2013 09:55:51 -0400 Content-Disposition: inline In-Reply-To: Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org To: Viresh Kumar Cc: Andrew Lunn , Sebastian Hesselbarth , Jason Cooper , "Rafael J. Wysocki" , "linux-pm@vger.kernel.org" , linux ARM On Wed, Oct 23, 2013 at 07:10:41PM +0530, Viresh Kumar wrote: > On 23 October 2013 18:34, Andrew Lunn wrote: > > The Marvell Dove SoC can run the CPU at two frequencies. The high > > frequencey is from a PLL, while the lower is the same as the DDR > > clock. Add a cpufreq driver to swap between these frequences. > > > > Signed-off-by: Andrew Lunn > > Tested-by: Sebastian Hesselbarth > > --- > > Sort header files > > Comment the interrupt handler > > Really? I don't see these two comments being incorporated.. > Also, you would be required to update your patchset ones my > patches are in (And that will happen for v3.13).. +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include There does seem to be a convention that kernel.h and module.h come first, and then i have the rest in order. +/* + * Handle the interrupt raised when the frequency change is + * complete. + */ +static irqreturn_t dove_cpufreq_irq(int irq, void *dev) +{ + return IRQ_HANDLED; +} What more would you like to see in the comment? Thanks Andrew From mboxrd@z Thu Jan 1 00:00:00 1970 From: andrew@lunn.ch (Andrew Lunn) Date: Wed, 23 Oct 2013 15:51:16 +0200 Subject: [PATCH 1/4] cpufreq: Add a cpufreq driver for Marvell Dove In-Reply-To: References: <1382533461-31021-1-git-send-email-andrew@lunn.ch> Message-ID: <20131023135116.GC31126@lunn.ch> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Wed, Oct 23, 2013 at 07:10:41PM +0530, Viresh Kumar wrote: > On 23 October 2013 18:34, Andrew Lunn wrote: > > The Marvell Dove SoC can run the CPU at two frequencies. The high > > frequencey is from a PLL, while the lower is the same as the DDR > > clock. Add a cpufreq driver to swap between these frequences. > > > > Signed-off-by: Andrew Lunn > > Tested-by: Sebastian Hesselbarth > > --- > > Sort header files > > Comment the interrupt handler > > Really? I don't see these two comments being incorporated.. > Also, you would be required to update your patchset ones my > patches are in (And that will happen for v3.13).. +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include There does seem to be a convention that kernel.h and module.h come first, and then i have the rest in order. +/* + * Handle the interrupt raised when the frequency change is + * complete. + */ +static irqreturn_t dove_cpufreq_irq(int irq, void *dev) +{ + return IRQ_HANDLED; +} What more would you like to see in the comment? Thanks Andrew