From patchwork Thu Sep 27 20:08:25 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 11781 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 8E46724140 for ; Thu, 27 Sep 2012 20:09:32 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 311B2A18B3B for ; Thu, 27 Sep 2012 20:09:32 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so5234801iej.11 for ; Thu, 27 Sep 2012 13:09:32 -0700 (PDT) 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 :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=V6fG78ePqSWMTGayRgFf6YqZqSE7tThZxamz+8b963Y=; b=HM6iemCoCjpPe+1EiRibGvglSOMJX6E6iKu2rCUKg7uJnrhaZUJY/X5JTkfH0G0Grq 5E09umRoB/eIY88TbR8alE3K0LwRZ2YFzeJtMlv1VUOER23pE4raF8WuAjzSvI3bqgKn XAcSRnKEUlCiqKOL5I6it9GV/8mhVnDoOuwAZKrRmiz/aeZHluGhvKmplwatOh+pcPT0 +GRB2gF5v26NeFpIiS6NPYtrU82PJcDoenHbaPTF5MSJf+eMG9zRhCri/RaiA0EKmZK2 bTyv2OekQf3XrbVOK+Q2RMxFQmyh7vuVhn7jEBViFuo9tfIChF9j1QfwF5F1/t/eFsN5 s5Eg== Received: by 10.50.154.227 with SMTP id vr3mr15235570igb.43.1348776571969; Thu, 27 Sep 2012 13:09:31 -0700 (PDT) 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.184.232 with SMTP id ex8csp436275igc; Thu, 27 Sep 2012 13:09:31 -0700 (PDT) Received: by 10.68.132.41 with SMTP id or9mr14764370pbb.67.1348776571285; Thu, 27 Sep 2012 13:09:31 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id pi9si5467641pbb.12.2012.09.27.13.09.31 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 27 Sep 2012 13:09:31 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of mathieu.poirier@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of mathieu.poirier@linaro.org) smtp.mail=mathieu.poirier@linaro.org Received: by mail-pb0-f50.google.com with SMTP id md4so1686045pbc.37 for ; Thu, 27 Sep 2012 13:09:31 -0700 (PDT) Received: by 10.66.74.40 with SMTP id q8mr12150569pav.29.1348776571072; Thu, 27 Sep 2012 13:09:31 -0700 (PDT) Received: from localhost.localdomain (S0106002369de4dac.cg.shawcable.net. [70.73.24.112]) by mx.google.com with ESMTPS id sa2sm1587890pbc.4.2012.09.27.13.09.29 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 27 Sep 2012 13:09:30 -0700 (PDT) From: mathieu.poirier@linaro.org To: patches@linaro.org Subject: [PATCH 08/57] power: ab8500_fg: flush sync on suspend Date: Thu, 27 Sep 2012 14:08:25 -0600 Message-Id: <1348776554-10019-9-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1348776554-10019-1-git-send-email-mathieu.poirier@linaro.org> References: <1348776554-10019-1-git-send-email-mathieu.poirier@linaro.org> X-Gm-Message-State: ALoCoQl4q1hz4L8GPZUID1bgTcAc4FspBRcdyGtZrKvk/g3gIit3kOjGPS3AYO9S9e2pHqCGk0aP From: Jonas Aaberg Do flush sync on the fg workqueue at suspend instead of just flushing it. Signed-off-by: Jonas Aaberg Signed-off-by: Mathieu Poirier Reviewed-by: Johan BJORNSTEDT --- drivers/power/ab8500_fg.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/power/ab8500_fg.c b/drivers/power/ab8500_fg.c index 342d118..1e02b00 100644 --- a/drivers/power/ab8500_fg.c +++ b/drivers/power/ab8500_fg.c @@ -2437,7 +2437,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