Skip to contentSkip to conversation

ndelay typo?

PATCH In review Brian Murphy 3 participants 7 messages Jul 5, 2003 – Jul 10, 2003 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ndelay typo?

Hi Ralf,
I presume you meant this?

/Brian

Index: include/asm/delay.h
===================================================================
RCS file: /cvs/linux/include/asm-mips/delay.h,v
retrieving revision 1.10.2.4

asm/delay.h +1 -1
diff -u -r1.10.2.4 delay.h
@@ -73,6 +73,6 @@
 #endif
 
 #define udelay(usecs) __udelay((usecs),__udelay_val)
-#define ndelay(usecs) __udelay((usecs),__udelay_val)
+#define ndelay(usecs) __ndelay((usecs),__udelay_val)
 
 #endif /* _ASM_DELAY_H */
#1 lore raw
Quoted 1 line · Brian Murphy

I presume you meant this?

Yes, thanks, will fix.

Quoted 6 lines

Index: include/asm/delay.h
===================================================================
RCS file: /cvs/linux/include/asm-mips/delay.h,v
retrieving revision 1.10.2.4
diff -u -r1.10.2.4 delay.h
--- include/asm/delay.h 5 Jul 2003 03:23:46 -0000 1.10.2.4

Btw, don't diff anything in include/asm/. That's a symlink ...

Btw, sorry if I toasted the Lasat support with the Galileo cleanup. There was just so much code duplication, it was insane to maintain.

I'm wondering about the Nile4 support btw. Vrc5074 == NILE4, right?

Ralf

#2 lore raw
Quoted 4 lines · Ralf Baechle
Quoted 1 line · Brian Murphy

I presume you meant this?

Yes, thanks, will fix.

And don't you want to rename the usecs' parameter of ndelay() to nsecs'?

Quoted 1 line

I'm wondering about the Nile4 support btw. Vrc5074 == NILE4, right?

Yep.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#3 lore raw
Quoted 1 line · Geert Uytterhoeven

And don't you want to rename the usecs' parameter of ndelay() to nsecs'?

You've not looked at what I actually checked in, I renamed the argument.

Quoted 3 lines
Quoted 1 line

I'm wondering about the Nile4 support btw. Vrc5074 == NILE4, right?

Yep.

Well, I was wondering because the code in arch/mips/pci/ops-nile4.c which was extraced from the lasat code is completly different from ddb5xxx/ddb5074/pci_ops.c, so it's hard to extract the commonc code into a shared file.

Ralf

#4 lore raw

Nile 4 (was: Re: [PATCH 2.4] ndelay typo?)

Quoted 9 lines · Ralf Baechle
Quoted 3 lines · Geert Uytterhoeven
Quoted 1 line

I'm wondering about the Nile4 support btw. Vrc5074 == NILE4, right?

Yep.

Well, I was wondering because the code in arch/mips/pci/ops-nile4.c which was extraced from the lasat code is completly different from ddb5xxx/ddb5074/pci_ops.c, so it's hard to extract the commonc code into a shared file.

If you know the chip, they are actually quite similar :-)

The differences between the Lasat and the DDB code are these:
- The Lasat code checks the PCI error registers to detect the presence of PCI devices, while the DDB code doesn't,
- The Lasat code is limited to 8 PCI devices on bus 0, while the DDB code uses a different access scheme to access the extra devices,
- The DDB code uses abstraction functions to access the Nile 4 registers, while the Lasat code accesses the registers directly.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#5 lore raw

Re: Nile 4

Quoted 7 lines · Geert Uytterhoeven
Quoted 4 lines

Well, I was wondering because the code in arch/mips/pci/ops-nile4.c which was extraced from the lasat code is completly different from ddb5xxx/ddb5074/pci_ops.c, so it's hard to extract the commonc code into a shared file.

If you know the chip, they are actually quite similar :-)

Quoted 7 lines

The differences between the Lasat and the DDB code are these:
- The Lasat code checks the PCI error registers to detect the presence of PCI devices, while the DDB code doesn't,
- The Lasat code is limited to 8 PCI devices on bus 0, while the DDB code uses a different access scheme to access the extra devices,
- The DDB code uses abstraction functions to access the Nile 4 registers, while the Lasat code accesses the registers directly.

Time to cleanup that mess also then.

Does anybody still care about the DDB5074? I was just told somebody tried it and it didn't boot into userspace ...

Ralf

#6 lore raw

Re: Nile 4

Quoted 2 lines · Ralf Baechle

Does anybody still care about the DDB5074? I was just told somebody tried it and it didn't boot into userspace ...

A few weeks ago I gave it a try (2.4.21-pre4), but I didn't bother to set up a Debian root on NFS to check userspace. At least the kernel booted until IP autoconfig.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds