From: Tony Lindgren <tony@atomide.com>
To: Arun KS <arunks@mistralsolutions.com>
Cc: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>,
Paul Walmsley <paul@booyaka.com>,
linux-omap@vger.kernel.org
Subject: Re: [PATCH] Temporary fix to boot OMAP1 based boards
Date: Wed, 24 Sep 2008 10:12:02 +0300 [thread overview]
Message-ID: <20080924071201.GE5222@atomide.com> (raw)
In-Reply-To: <dfeb90390809240005xadef43dhb78c8ae214baab64@mail.gmail.com>
* Arun KS <arunks@mistralsolutions.com> [080924 10:05]:
> On Wed, Sep 24, 2008 at 9:21 AM, Hiroshi DOYU <Hiroshi.DOYU@nokia.com> wrote:
> > Hi,
> >
> > How about introducing a new typedef in order to accommodate the
> > different size of enable_regs without ifdefs?
> >
> > I think that this is apparently the case categorized into (a) in
> > 'CodyingStyle'.
>
> I am not sure which is the right way to do. Is this what you meant?
No, let's not do this. It should be void __iomem * for sure. Most of
the omap1 clock registers looks just fine for void __iomem *, let's
figure out which registers are broken.
Tony
>
>
> arch/arm/plat-omap/include/mach/clock.h | 8 +++++++-
> 1 files changed, 7 insertions(+), 1 deletions(-)
>
> diff --git a/arch/arm/plat-omap/include/mach/clock.h
> b/arch/arm/plat-omap/include/mach/clock.h
> index f26ad8c..122532e 100644
> --- a/arch/arm/plat-omap/include/mach/clock.h
> +++ b/arch/arm/plat-omap/include/mach/clock.h
> @@ -59,6 +59,12 @@ struct dpll_data {
>
> #endif
>
> +#if defined(CONFIG_ARCH_OMAP1)
> +typedef void __iomem *reg_t;
> +#elif
> +typedef u16 reg_t;
> +#endif
> +
> struct clk {
> struct list_head node;
> struct module *owner;
> @@ -67,7 +73,7 @@ struct clk {
> struct clk *parent;
> unsigned long rate;
> __u32 flags;
> - u16 enable_reg;
> + reg_t enable_reg;
> __u8 enable_bit;
> __s8 usecount;
> u8 idlest_bit;
>
> Regards
> Arun
> >
> > Hiroshi DOYU
> >
> > From: "ext Arun KS" <arunks@mistralsolutions.com>
> > Subject: [PATCH] Temporary fix to boot OMAP1 based boards
> > Date: Tue, 23 Sep 2008 20:53:09 +0530
> >
> >> This patch is a temporary fix for a kernel panic causing at omap1_clk_init
> >>
> >> Signed-off-by: Arun KS <arunks@mistralsolutions.com>
> >> ---
> >> arch/arm/plat-omap/include/mach/clock.h | 4 ++++
> >> 1 files changed, 4 insertions(+), 0 deletions(-)
> >>
> >> diff --git a/arch/arm/plat-omap/include/mach/clock.h
> >> b/arch/arm/plat-omap/include/mach/clock.h
> >> index f26ad8c..b9c471e 100644
> >> --- a/arch/arm/plat-omap/include/mach/clock.h
> >> +++ b/arch/arm/plat-omap/include/mach/clock.h
> >> @@ -67,7 +67,11 @@ struct clk {
> >> struct clk *parent;
> >> unsigned long rate;
> >> __u32 flags;
> >> +#if defined(CONFIG_ARCH_OMAP1)
> >> + void __iomem *enable_reg;
> >> +#elif
> >> u16 enable_reg;
> >> +#endif
> >> __u8 enable_bit;
> >> __s8 usecount;
> >> u8 idlest_bit;
> >> --
> >> 1.5.3.4
> >> --
> >> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> >> the body of a message to majordomo@vger.kernel.org
> >> More majordomo info at http://vger.kernel.org/majordomo-info.html
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
> >
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2008-09-24 7:12 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-23 15:23 [PATCH] Temporary fix to boot OMAP1 based boards Arun KS
2008-09-23 22:43 ` Felipe Balbi
2008-09-24 4:50 ` Arun KS
2008-09-24 3:51 ` Hiroshi DOYU
2008-09-24 7:05 ` Arun KS
2008-09-24 7:12 ` Tony Lindgren [this message]
2008-09-24 8:00 ` Tony Lindgren
2008-09-24 8:03 ` Paul Walmsley
2008-09-24 8:06 ` Tony Lindgren
2008-09-24 8:08 ` Paul Walmsley
2008-09-24 8:34 ` Tony Lindgren
2008-09-24 9:03 ` Arun KS
2008-09-24 14:06 ` Paul Walmsley
2008-09-24 14:27 ` Tony Lindgren
2008-09-24 14:35 ` Paul Walmsley
2008-09-24 14:43 ` Tony Lindgren
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=20080924071201.GE5222@atomide.com \
--to=tony@atomide.com \
--cc=Hiroshi.DOYU@nokia.com \
--cc=arunks@mistralsolutions.com \
--cc=linux-omap@vger.kernel.org \
--cc=paul@booyaka.com \
/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