From patchwork Thu Dec 13 15:21:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 13540 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 C1C5523E2A for ; Thu, 13 Dec 2012 15:22:03 +0000 (UTC) Received: from mail-ia0-f180.google.com (mail-ia0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 64A02A185E5 for ; Thu, 13 Dec 2012 15:22:03 +0000 (UTC) Received: by mail-ia0-f180.google.com with SMTP id t4so2037299iag.11 for ; Thu, 13 Dec 2012 07:22:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=uD8pxAvSEW1i6OJAg/knJzD8WBhjn4rl7+osZsOwUBs=; b=TRxswgXOEHhkRmZthO7awgKzIvIusSF3McLhlt+Gz3ufV2E1DgOHiFS/HDKyLxJoQD 6HOKK49pEbVelBGizZJwmELxtmvFXaZAtcsOkvthN5JoLiT5J8JBCUgvUWcCBNA5KOVT 5k49JPpU4hp8/Qz62HkGuh4kwPQSfV9zImP0XEPS1D0DbjmLXcNPRJTRF6HZ2d5/8pH0 NjJFYg9hRz3yOgxNV0RtVPU91X+a8v8JjdZdcPac1h6yFs2ythd5qzN1jmQkCmpJ8U3S KslhUROgP3plO5t+nh3A4JY6vjlR00oaUds4CtbiYkkNKaYRdk5NGUxFwiYZ98dkomMV kOEg== Received: by 10.50.36.164 with SMTP id r4mr1908046igj.57.1355412122851; Thu, 13 Dec 2012 07:22:02 -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.50.67.148 with SMTP id n20csp16252igt; Thu, 13 Dec 2012 07:22:02 -0800 (PST) Received: by 10.194.93.40 with SMTP id cr8mr9080350wjb.16.1355412121756; Thu, 13 Dec 2012 07:22:01 -0800 (PST) Received: from mail-we0-f169.google.com (mail-we0-f169.google.com [74.125.82.169]) by mx.google.com with ESMTPS id gn5si10216765wib.6.2012.12.13.07.22.01 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 13 Dec 2012 07:22:01 -0800 (PST) Received-SPF: neutral (google.com: 74.125.82.169 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=74.125.82.169; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.169 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-we0-f169.google.com with SMTP id t49so1015770wey.14 for ; Thu, 13 Dec 2012 07:22:01 -0800 (PST) Received: by 10.180.72.232 with SMTP id g8mr29780899wiv.0.1355412121287; Thu, 13 Dec 2012 07:22:01 -0800 (PST) Received: from localhost.localdomain (cpc1-aztw13-0-0-cust473.18-1.cable.virginmedia.com. [77.102.241.218]) by mx.google.com with ESMTPS id i6sm8200894wix.5.2012.12.13.07.21.59 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 13 Dec 2012 07:22:00 -0800 (PST) From: Lee Jones To: linux-kernel@vger.kernel.org Cc: cbou@mail.ru, Jonas Aaberg , Lee Jones Subject: [PATCH 04/18] power: ab8500_fg: flush sync on suspend Date: Thu, 13 Dec 2012 15:21:27 +0000 Message-Id: <1355412102-14265-5-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1355412102-14265-1-git-send-email-lee.jones@linaro.org> References: <1355412102-14265-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQn0GWY38acKxBPWmIEGgHpkcRt37t4ACtunz7+mnFkiqb+/nakIHbcgM9UKlEOsOFy8ochE From: Jonas Aaberg Do flush sync on the fg workqueue at suspend instead of just flushing it. Signed-off-by: Lee Jones Signed-off-by: Jonas Aaberg Reviewed-by: Johan BJORNSTEDT --- drivers/power/ab8500_fg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/ab8500_fg.c b/drivers/power/ab8500_fg.c index 828529e..b1bc893 100644 --- a/drivers/power/ab8500_fg.c +++ b/drivers/power/ab8500_fg.c @@ -2436,7 +2436,7 @@ static int ab8500_fg_suspend(struct platform_device *pdev, { struct ab8500_fg *di = platform_get_drvdata(pdev); - flush_delayed_work(&di->fg_periodic_work); + flush_delayed_work_sync(&di->fg_periodic_work); /* * If the FG is enabled we will disable it before going to suspend