* AU1000: SSI0 naming inconsistency
@ 2008-11-06 11:06 Martin Gebert
2008-11-06 22:50 ` Sergei Shtylyov
0 siblings, 1 reply; 2+ messages in thread
From: Martin Gebert @ 2008-11-06 11:06 UTC (permalink / raw)
To: linux-mips
Hi!
Working on a 2.6.22 kernel for a AU1100 board, I came across the
following inconsistency in register naming in
include/asm/mach-au1x00/au1000.h, which still exists in 2.6.27.4 (lines
1334-1389). There's no register SSI0_CONTROL, it should be named
SSI0_ENABLE, as it is for SSI1:
--8><--
#define SSI0_CONTROL 0xB1600100
#define SSI_CONTROL_CD (1<<1)
#define SSI_CONTROL_E (1<<0)
/* SSI1 */
[...]
#define SSI1_ENABLE 0xB1680100
[...]
#define SSI_ENABLE_CD (1<<1)
#define SSI_ENABLE_E (1<<0)
--><8--
As I'm not working on a current kernel repo I don't dare to provide a
patch. Would fixing this be desirable?
Martin
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: AU1000: SSI0 naming inconsistency
2008-11-06 11:06 AU1000: SSI0 naming inconsistency Martin Gebert
@ 2008-11-06 22:50 ` Sergei Shtylyov
0 siblings, 0 replies; 2+ messages in thread
From: Sergei Shtylyov @ 2008-11-06 22:50 UTC (permalink / raw)
To: Martin Gebert; +Cc: linux-mips
Hello.
Martin Gebert wrote:
> Working on a 2.6.22 kernel for a AU1100 board, I came across the
> following inconsistency in register naming in
> include/asm/mach-au1x00/au1000.h, which still exists in 2.6.27.4 (lines
> 1334-1389). There's no register SSI0_CONTROL, it should be named
> SSI0_ENABLE, as it is for SSI1:
>
> --8><--
> #define SSI0_CONTROL 0xB1600100
> #define SSI_CONTROL_CD (1<<1)
> #define SSI_CONTROL_E (1<<0)
>
> /* SSI1 */
> [...]
> #define SSI1_ENABLE 0xB1680100
>
> [...]
> #define SSI_ENABLE_CD (1<<1)
> #define SSI_ENABLE_E (1<<0)
> --><8--
>
> As I'm not working on a current kernel repo I don't dare to provide a
> patch. Would fixing this be desirable?
>
This seems to be a only top of iceberg as the SSI register bits are
all defined twice in the arch/mips/include/asm/mach-au1x00/au1000.h. I
wonder why gcc ignores macro redefinitions...
Patch is welcome but be sure not to break the users of those macros (if
there are any :-)...
> Martin
WBR, Sergei
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-06 22:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-06 11:06 AU1000: SSI0 naming inconsistency Martin Gebert
2008-11-06 22:50 ` Sergei Shtylyov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox