Benjamin Herrenschmidt wrote:..On Thu, 2006-05-18 at 12:03 +0800, Zang Roy-r61911 wrote:
@@ -1567,13 +1570,18 @@ static void mv5_read_preamp(struct mv_ho*mmio)
static void mv5_enable_leds(struct mv_host_priv *hpriv, void __iomem
{
u32 tmp;
-
+#ifndef CONFIG_PPC
writel(0, mmio + MV_GPIO_PORT_CTL);
+#endif
You'll have to do better here too... I don't wee why when compiled on
PPC, this driver should "magically" not clear those bits... At the very
least, you should test the machine type if you want to do something
specific to your platform, but first, you'll have to convince Jeff why
this change has to be done in the first place and if there is a better
way to handle it.
Correct... it does seem some bugs were found, but #ifdef powerpc is certainly out of the question. We want the driver to work without ifdefs on all platforms.