From 4c92928c63ab443dc1d3f5368c0fd6ae40c36c83 Mon Sep 17 00:00:00 2001 From: Balaji Rao Date: Mon, 29 Dec 2008 12:11:30 +0000 Subject: Start charging when the usb current limit is changed. This makes sure that charging status remains correct when currrent limit is altered from userspace. Signed-off-by: Balaji Rao --- arch/arm/mach-s3c2440/mach-gta02.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'arch/arm/mach-s3c2440') diff --git a/arch/arm/mach-s3c2440/mach-gta02.c b/arch/arm/mach-s3c2440/mach-gta02.c index c9c5391f3d0..dc0ef0f2a5b 100644 --- a/arch/arm/mach-s3c2440/mach-gta02.c +++ b/arch/arm/mach-s3c2440/mach-gta02.c @@ -521,14 +521,9 @@ gta02_configure_pmu_for_charger(struct pcf50633 *pcf, void *unused, int res) pcf50633_gpio_set(pcf, PCF50633_GPO, 0); ma = 1000; - pcf->mbc.usb_active = 1; - } else { + } else ma = 100; - /* We know that we can't charge now */ - pcf->mbc.usb_active = 0; - } - pcf50633_mbc_usb_curlim_set(pcf, ma); } @@ -540,9 +535,6 @@ static void gta02_charger_worker(struct work_struct *work) struct pcf50633 *pcf = gta02_pcf_pdata.pcf; if (gta02_usb_vbus_draw) { - /* We can charge now */ - pcf->mbc.usb_active = 1; - pcf50633_mbc_usb_curlim_set(pcf, gta02_usb_vbus_draw); return; } else { -- cgit v1.2.3