From: Kumar Gala <galak@kernel.crashing.org>
To: Bhushan Bharat-R65777 <R65777@freescale.com>
Cc: "linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>,
"linux-watchdog@vger.kernel.org" <linux-watchdog@vger.kernel.org>,
Xie Shaohui-B21989 <B21989@freescale.com>
Subject: Re: [PATCH 1/2] powerpc/watchdog: move booke watchdog param related code to prom.c
Date: Tue, 10 Jul 2012 06:39:33 -0500 [thread overview]
Message-ID: <E9954978-A8D4-443F-AC4A-0EB52F257F84@kernel.crashing.org> (raw)
In-Reply-To: <6A3DF150A5B70D4F9B66A25E3F7C888D03CF8714@039-SN2MPN1-023.039d.mgd.msft.net>
On May 8, 2012, at 10:46 PM, Bhushan Bharat-R65777 wrote:
>>>>>> .org] On Behalf Of Shaohui Xie
>>>>>> Sent: Tuesday, May 08, 2012 11:37 AM
>>>>>> To: linux-watchdog@vger.kernel.org; linuxppc-dev@lists.ozlabs.org
>>>>>> Cc: Xie Shaohui-B21989
>>>>>> Subject: [PATCH 1/2] powerpc/watchdog: move booke watchdog param
>>>>>> related code to prom.c
>>>>>>=20
>>>>>> Currently, BOOKE watchdog code for checking "wdt" and =
"wdt_period"
>>>>>> is in setup_32.c, it cannot be used in 64-bit, so move it to a
>>>>>> common place prom.c, which will be shared by 32-bit and 64-bit.
>>>>>>=20
>>>>>> Also, replace the simple_strtoul with kstrtol.
>>>>>>=20
>>>>>> Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
>>>>>> ---
>>>>>> arch/powerpc/kernel/prom.c | 27 +++++++++++++++++++++++++++
>>>>>> arch/powerpc/kernel/setup_32.c | 24 ------------------------
>>>>>> 2 files changed, 27 insertions(+), 24 deletions(-)
>>>>>=20
>>>>> Is not setup-common.c is better place to move this?
>>>>=20
>>>> Move out from setup_32.c does not mean it have to go into
>>>> setup-common.c, I need better reason to do this.
>>>>=20
>>>=20
>>> What I think that setup_32.c is for 32 bit, setup_64.c is for 64 bit
>>> and setup-common.c is for both.
>>>=20
>>> I am not saying that you move this to setup-common.c. I am asking =
why
>>> you have not used setup-common.c ? I am ok even with prom.c.
>>>=20
>> [Xie Shaohui] I'm not a fan of prom.c, I did this because I see same =
kind of
>> early parameters checking is did in this file only, so I thought =
maybe I should
>> put them together. And seems setup-common.c is not the place to do =
command line
>> checking (I'm not sure about this).
>>=20
>=20
> Ok, so you are also not sure.
> Let us see what other guys things of this.
Put it in setup-common.c. prom.c has normally been mostly OF/dts =
related parsing.
- k=
next prev parent reply other threads:[~2012-07-10 11:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-08 6:07 [PATCH 1/2] powerpc/watchdog: move booke watchdog param related code to prom.c Shaohui Xie
2012-05-08 17:13 ` Bhushan Bharat-R65777
2012-05-09 3:20 ` Xie Shaohui-B21989
2012-05-09 3:27 ` Bhushan Bharat-R65777
2012-05-09 3:42 ` Xie Shaohui-B21989
2012-05-09 3:46 ` Bhushan Bharat-R65777
2012-07-10 11:39 ` Kumar Gala [this message]
2012-07-10 10:21 ` Xie Shaohui-B21989
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E9954978-A8D4-443F-AC4A-0EB52F257F84@kernel.crashing.org \
--to=galak@kernel.crashing.org \
--cc=B21989@freescale.com \
--cc=R65777@freescale.com \
--cc=linux-watchdog@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).