From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Sun, 20 Feb 2011 13:39:48 +0100 (CET) Received: from mail-ew0-f49.google.com ([209.85.215.49]:52837 "EHLO mail-ew0-f49.google.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S1491045Ab1BTMjo (ORCPT ); Sun, 20 Feb 2011 13:39:44 +0100 Received: by ewy23 with SMTP id 23so205407ewy.36 for ; Sun, 20 Feb 2011 04:39:37 -0800 (PST) Received: by 10.213.14.20 with SMTP id e20mr154551eba.28.1298205577285; Sun, 20 Feb 2011 04:39:37 -0800 (PST) Received: from [192.168.2.2] ([91.79.106.47]) by mx.google.com with ESMTPS id t50sm3857121eeh.6.2011.02.20.04.39.34 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 20 Feb 2011 04:39:35 -0800 (PST) Message-ID: <4D610B3A.5070705@mvista.com> Date: Sun, 20 Feb 2011 15:38:18 +0300 From: Sergei Shtylyov User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: "Anoop P.A" CC: ralf@linux-mips.org, linux-mips@linux-mips.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Make msp7120_reset generic References: <1298037329-13683-1-git-send-email-anoop.pa@gmail.com> In-Reply-To: <1298037329-13683-1-git-send-email-anoop.pa@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 29233 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: sshtylyov@mvista.com Precedence: bulk X-list: linux-mips Hello. On 18-02-2011 16:55, Anoop P.A wrote: > From: Anoop P A > Remove platform dependency code from msp7120 reset code and make it generic. > Now the code can be reused for other boards running msp71xx family SoC. > Signed-off-by: Anoop P A [...] > diff --git a/arch/mips/pmc-sierra/msp71xx/msp_setup.c b/arch/mips/pmc-sierra/msp71xx/msp_setup.c > index fb37a10..4a6cc0d 100644 > --- a/arch/mips/pmc-sierra/msp71xx/msp_setup.c > +++ b/arch/mips/pmc-sierra/msp71xx/msp_setup.c > @@ -18,30 +18,33 @@ > > #include > #include > +#include > > #if defined(CONFIG_PMC_MSP7120_GW) > -#include > + /* GPIO 9 is the 4th GPIO of register 3 > + */ Not clear why you're using a multi-line comment where a single-one line one (and not indented) would be enough? > @@ -78,49 +81,56 @@ void msp7120_reset(void) > /* Wait a bit for the DDRC to settle */ > for (i = 0; i < 100000000; i++); > > -#if defined(CONFIG_PMC_MSP7120_GW) > +#if defined MSP_BOARD_RESET_GPIO Hm, didn't know that the 'defined' syntax without parens is valid too... > @@ -141,9 +151,7 @@ void msp_power_off(void) > > void __init plat_mem_setup(void) > { > - _machine_restart = msp_restart; > - _machine_halt = msp_halt; > - pm_power_off = msp_power_off; > +/*TODO: Move mem setup here */ This line should be indented. WBR, Sergei