From f8d84454949a5669abccf0b9c524f46380050c7f Mon Sep 17 00:00:00 2001 From: Andy Green Date: Wed, 19 Nov 2008 17:09:47 +0000 Subject: fix-pcf50633-suspend-resume-onehit-i2c-other-meddling.patch - speed up suspend and resume by using one hit i2c bulk transactions - don't bother storing int mask set on suspend, the default one is what we use anyway - put stack_trace() on pcf50633 low level access that fire if we try to touch them before we resumed - cosmetic source cleanup - reduces resume time for pcf50633 from 450ms to 255ms Signed-off-by: Andy Green --- arch/arm/mach-s3c2440/mach-gta02.c | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) (limited to 'arch') diff --git a/arch/arm/mach-s3c2440/mach-gta02.c b/arch/arm/mach-s3c2440/mach-gta02.c index 9ba1036494d..22de1819475 100644 --- a/arch/arm/mach-s3c2440/mach-gta02.c +++ b/arch/arm/mach-s3c2440/mach-gta02.c @@ -477,24 +477,11 @@ static struct pcf50633_platform_data gta02_pcf_pdata = { .r_fix_batt_par = 10000, .r_sense_milli = 220, .resumers = { - [0] = /* PCF50633_INT1_ADPINS | */ - /* PCF50633_INT1_ADPREM | */ - PCF50633_INT1_USBINS | - PCF50633_INT1_USBREM | - PCF50633_INT1_ALARM, + [0] = PCF50633_INT1_USBINS | + PCF50633_INT1_USBREM | + PCF50633_INT1_ALARM, [1] = PCF50633_INT2_ONKEYF, - [2] = /* PCF50633_INT3_BATFULL | */ - /* PCF50633_INT3_CHGHALT | */ - /* PCF50633_INT3_THLIMON | */ - /* PCF50633_INT3_THLIMOFF | */ - /* PCF50633_INT3_USBLIMON | */ - /* PCF50633_INT3_USBLIMOFF | */ - PCF50633_INT3_ONKEY1S , - [3] = 0 /* | - PCF50633_INT4_LOWSYS | */ - /* PCF50633_INT4_LOWBAT | */ - /* PCF50633_INT4_HIGHTMP */, - [4] = 0 + [2] = PCF50633_INT3_ONKEY1S }, .rails = { [PCF50633_REGULATOR_AUTO] = { -- cgit v1.2.3