From patchwork Fri Feb 15 12:44:41 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 14856 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id E909023E2E for ; Fri, 15 Feb 2013 12:46:13 +0000 (UTC) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by fiordland.canonical.com (Postfix) with ESMTP id A52AFA18025 for ; Fri, 15 Feb 2013 12:46:13 +0000 (UTC) Received: by mail-vc0-f179.google.com with SMTP id gb23so2148204vcb.10 for ; Fri, 15 Feb 2013 04:46:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state; bh=dlQn69n6Kn9Xn3zHII97/PwXBHtTizSP+KpBZyvSMTU=; b=YIJeGNK29K3VfVWbD0NHlW1veG8iQw+ga2ykRgZkWzW7bffNFl0HuzHyX1tr6b64Ne /eyh+ZIEaIoxCUIow1R05EHGgqoDWfk4IA5+J7HVLAJhIcW9u1UYey8GH/FLbm7FAzZ+ oU2YOh2azS5SgJt3JQYVi4hRRiakUHgtPZFmMfZ9a+sdn3YNkMkfdkvcioFvGhM/PAPE Z4RH3W9WYcBxo9q9yF7pSPURVM6oyY/EpyFsyw5xGBFlo34HtwLSIsSUzSuRsCpSbyum /CcxMXhquz07iH0HU3EOTQjdzzNaIP9hk5EE601fBi9jBM+gb2XFWY7X4vHqlhLOGN7R MafQ== X-Received: by 10.52.98.5 with SMTP id ee5mr2478116vdb.102.1360932373165; Fri, 15 Feb 2013 04:46:13 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.221.4.5 with SMTP id oa5csp10844vcb; Fri, 15 Feb 2013 04:46:12 -0800 (PST) X-Received: by 10.180.101.104 with SMTP id ff8mr5741782wib.11.1360932372135; Fri, 15 Feb 2013 04:46:12 -0800 (PST) Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by mx.google.com with ESMTPS id dj7si1034577wib.92.2013.02.15.04.46.11 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 15 Feb 2013 04:46:12 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.177 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=209.85.212.177; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.177 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) smtp.mail=lee.jones@linaro.org Received: by mail-wi0-f177.google.com with SMTP id hm14so1105309wib.4 for ; Fri, 15 Feb 2013 04:46:11 -0800 (PST) X-Received: by 10.194.108.229 with SMTP id hn5mr4085246wjb.8.1360932366301; Fri, 15 Feb 2013 04:46:06 -0800 (PST) Received: from localhost.localdomain (cpc34-aztw25-2-0-cust250.18-1.cable.virginmedia.com. [86.16.136.251]) by mx.google.com with ESMTPS id bs6sm5133904wib.4.2013.02.15.04.46.03 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 15 Feb 2013 04:46:05 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: arnd@arndb.de, linus.walleij@stericsson.com, cbouatmailru@gmail.com, sameo@linux.intel.com, Per Forlin , Rajkumar Kasirajan , Lee Jones Subject: [PATCH 11/40] pm2301-charger: Force main charger detect Date: Fri, 15 Feb 2013 12:44:41 +0000 Message-Id: <1360932310-30065-12-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1360932310-30065-1-git-send-email-lee.jones@linaro.org> References: <1360932310-30065-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQnfdm+A+z897RZIup9ardmUoW1UEPzRXzRxBtlGFpfp/jkKTlAx1GtqRjHLSapVJmNNVfLQ From: Per Forlin Force main charger detect in turn on status. Signed-off-by: Rajkumar Kasirajan Signed-off-by: Per Forlin Signed-off-by: Lee Jones Reviewed-by: Philippe LANGLAIS Tested-by: Philippe LANGLAIS --- drivers/power/pm2301_charger.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/power/pm2301_charger.c b/drivers/power/pm2301_charger.c index e7eb63d..63f515e 100644 --- a/drivers/power/pm2301_charger.c +++ b/drivers/power/pm2301_charger.c @@ -1067,6 +1067,8 @@ static int __devinit pm2xxx_wall_charger_probe(struct i2c_client *i2c_client, pm2xxx_reg_read(pm2, PM2XXX_REG_INT2, &val); pm2xxx_reg_read(pm2, PM2XXX_REG_INT4, &val); pm2->ac.charger_connected = 1; + ab8500_override_turn_on_stat(~AB8500_POW_KEY_1_ON, + AB8500_MAIN_CH_DET); pm2->ac_conn = true; power_supply_changed(&pm2->ac_chg.psy); sysfs_notify(&pm2->ac_chg.psy.dev->kobj, NULL, "present");