Re: [HP ProLiant WatchDog driver] hpwdt HP WatchDog Patch <resend>

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Bjorn Helgaas
Date: Tuesday, October 23, 2007 - 1:31 pm

On Monday 22 October 2007 05:09:51 pm thomas.mingarelli@hp.com wrote:

I wouldn't be surprised if this device someday turned up on non-x86
systems.  I know there's some x86 firmware stuff in there that clearly
requires x86.  But it'd be nice if the rest of the driver compiled and
worked (minus the x86 firmware functionality) on other architectures.
For example, you could wrap all the event logging code in "#ifdef
CONFIG_X86" and provide a null implementation for !X86.


This is more dangerous than using the gcc assembler operand
syntax, because it assumes things about how the parameters are
put on the stack.


You might consider using dev_printk(), dev_warn(), etc, instead of most
of your printk calls.  Then you get the device ID and driver name
automatically.


The driver assumes only a single instance of the device.  But PCI being
what it is, it's often possible to have multiple cards, so you might
want some protection in case you trip over more than one.

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [HP ProLiant WatchDog driver] hpwdt HP WatchDog Patch ..., Bjorn Helgaas, (Tue Oct 23, 1:31 pm)
Re: [HP ProLiant WatchDog driver] hpwdt HP WatchDog Patch ..., Christoph Hellwig, (Tue Oct 23, 2:20 pm)
RE: [HP ProLiant WatchDog driver] hpwdt HP WatchDog Patch ..., Mingarelli, Thomas, (Tue Oct 23, 4:04 pm)
RE: [HP ProLiant WatchDog driver] hpwdt HP WatchDog Patch ..., Mingarelli, Thomas, (Wed Oct 24, 7:16 am)
Re: [HP ProLiant WatchDog driver] hpwdt HP WatchDog Patch ..., Wim Van Sebroeck, (Wed Oct 24, 9:25 am)