Jack-IRQ storm on resume

Holger Freyther zecke at openmoko.org
Tue Mar 25 23:27:14 CET 2008


Hey Andy, all,

Issue:
	echo "mem" > /sys/power/state
	Resume the device
	echo "1" > /sys/devices/platform/neo1973-pm-gsm.0/power_on
	cat /proc/interrupts
	cat /proc/interrupts

	see the "48:          1     s3c-ext  Neo1973 Headphone Jack" growing fast

Reason:
	gta01_gsm_resume in neo1973_pm_gsm.c is fishy

	1. GTA02_GPIO_nDL_GSM is high by default, setting it to 1 in suspend
	    is useless but safe.
	2. setting it 0 on resume, according to what I think and see, will enable
	    the DL GSM circuit. This create the irq hailstorm.


My solution:
	We do not use nDL_GSM from within Linux, it is configured properly on start, 
and the s3c SOC code will save/restore the GPIOs for us. So there is no need 
to play with it at all.

I have pushed my 'janitor' branch to the git repository and feel free to pick:
	e012743c728485ca29cd1225a10bea3e0b145bbf  (spelling fix)
	5d5ba8e3b95f7ec69afa2d4a2a767ac48b1abfb4   (removal of code)








More information about the openmoko-kernel mailing list