Skip to contentSkip to conversation

ppc32: Fix typo in USB sleep code on intrepid based laptops

PATCH New Benjamin Herrenschmidt 1 participant 1 message May 27, 2004 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc32: Fix typo in USB sleep code on intrepid based laptops

Hi Andrew !

This patch fixes a typo in the low level platform code that puts to sleep and wakes up the USB cell. This fixes a problem when pmdisk is used on those machines (pmdisk patch not merged yet, soon maybe...)

From: Guido Guenther <[email protected]>

arch/ppc/platforms/pmac_feature.c renamed from linux-2.6.6.orig/arch/ppc/platforms/pmac_feature.c +1 -1
diff -ub -Naur ../linux-2.6.6.orig/arch/ppc/platforms/pmac_feature.c ./arch/ppc/platforms/pmac_feature.c
@@ -1156,7 +1156,7 @@
 			(void)MACIO_IN32(KEYLARGO_FCR1);
 			mdelay(1);
 			LOCK(flags);
-			MACIO_BIS(KEYLARGO_FCR0, KL1_USB2_CELL_ENABLE);
+			MACIO_BIS(KEYLARGO_FCR1, KL1_USB2_CELL_ENABLE);
 		}
 		if (number < 4) {
 			reg = MACIO_IN32(KEYLARGO_FCR4);