[PATCH/2.6.17-rc4 4/10]Powerpc: Add tsi108 pic support

Benjamin Herrenschmidt benh at kernel.crashing.org
Tue May 30 14:17:48 EST 2006


On Tue, 2006-05-30 at 11:28 +0800, Zang Roy-r61911 wrote:

> Tsi108 implementation of MPIC has many differences form the original one,  the following
> code implements it with mpic. Any comment? The following patch is just based on
> my previous send out patches.
> 
> Integrate Tundra Semiconductor tsi108 host bridge interrupt controller 
> to mpic arch.

As usual... #ifdef's are evil. Only use them to avoid building bits that
are not useful for a given platform, not to change the behaviour of a
driver. By changing the MPIC driver with #ifdef's, you once again
prevent building a generic kernel image that can boot both your board
and pSeries, powermac, etc...

Please add an MPIC flag instead (as there is already for specifying, for
example, big endian MPICs) and add the necessary abstractions (for
example, put some register stride in the mpic instance structure and
initialize them based on the flags etc...)

Cheers,
Ben.





More information about the Linuxppc-dev mailing list