From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: Manuel Lauss <mano@roarinelk.homelinux.net>
Cc: linux-mips@linux-mips.org
Subject: Re: [RFC PATCH 1/7] Alchemy: remove cpu_table.
Date: Wed, 25 Jun 2008 01:37:20 +0400 [thread overview]
Message-ID: <48616910.1020002@ru.mvista.com> (raw)
In-Reply-To: <20080624212630.GA3376@roarinelk.homelinux.net>
Hello.
Manuel Lauss wrote:
>>> diff --git a/arch/mips/mm/c-r4k.c b/arch/mips/mm/c-r4k.c
>>> index 2709675..bb22649 100644
>>> --- a/arch/mips/mm/c-r4k.c
>>> +++ b/arch/mips/mm/c-r4k.c
>>>
>>>
>> [...]
>>
>>
>>> @@ -1287,20 +1262,18 @@ static void __cpuinit coherency_setup(void)
>>> case CPU_R4400MC:
>>> clear_c0_config(CONF_CU);
>>> break;
>>> - /*
>>> - * We need to catch the early Alchemy SOCs with
>>> - * the write-only co_config.od bit and set it back to one...
>>> - */
>>> - case CPU_AU1000: /* rev. DA, HA, HB */
>>> - case CPU_AU1100: /* rev. AB, BA, BC ?? */
>>> - case CPU_AU1500: /* rev. AB */
>>> - au1x00_fixup_config_od();
>>> - break;
>>> case PRID_IMP_PR4450:
>>> nxp_pr4450_fixup_config();
>>> break;
>>> }
>>> +
>>> +#ifdef CONFIG_MACH_ALCHEMY
>>> + {
>>> + extern void au1x00_fixup_config_od(void);
>>> + au1x00_fixup_config_od();
>>> + }
>>> +#endif
>>> }
>>>
>>>
>> I've been thru this before. Ralf will hardly accept #ifdef'ery and extern
>> in this file. That's why we have what we have now. :-)
>>
>
> I believe it can be removed entirely from c-r4k.c, the Alchemy
> plat_mem_setup and resume code run it too (and earlier).
>
You cleraly didn't get it. ;-)
It's here because what is written earlier was *discarded* while doing
the coherency setup (remember, the OD bit is write only, so you can't
just RMW the Config reg).
That lead to some crap with USB on Au1500 in particular, IIRC.
> Thanks for having a look!
> Manuel Lauss
>
WBR, Sergei
next prev parent reply other threads:[~2008-06-24 21:37 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-24 20:08 [RFC PATCH 0/7] Alchemy updates Manuel Lauss
2008-06-24 20:09 ` [RFC PATCH 1/7] Alchemy: remove cpu_table Manuel Lauss
2008-06-24 21:04 ` Sergei Shtylyov
2008-06-24 21:26 ` Manuel Lauss
2008-06-24 21:37 ` Sergei Shtylyov [this message]
2008-06-24 21:42 ` Manuel Lauss
2008-06-24 20:09 ` [RFC PATCH 2/7] Alchemy: remove get/set_au1x00_lcd_clock() Manuel Lauss
2008-06-24 20:10 ` [RFC PATCH 3/7] MIPS: make r4k clocksource/clockevent usable as fallbacks Manuel Lauss
2008-06-24 20:11 ` [RFC PATCH 4/7] Alchemy: TOY counter clocksource / clockevent support Manuel Lauss
2008-06-24 20:12 ` [RFC PATCH 5/7] Alchemy: I hate au1000/common/platform.c Manuel Lauss
2008-06-24 20:12 ` [RFC PATCH 6/7] Alchemy: PM: split sysctl code from more useful code Manuel Lauss
2008-06-24 20:14 ` [RFC PATCH 7/7] Alchemy: Fix PM code for Au1200/Au1550 Manuel Lauss
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=48616910.1020002@ru.mvista.com \
--to=sshtylyov@ru.mvista.com \
--cc=linux-mips@linux-mips.org \
--cc=mano@roarinelk.homelinux.net \
/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