From patchwork Mon Apr 2 18:33:04 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: stigge@antcom.de X-Patchwork-Id: 150207 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-we0-f184.google.com (mail-we0-f184.google.com [74.125.82.184]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 1C7EAB6EE7 for ; Tue, 3 Apr 2012 04:33:55 +1000 (EST) Received: by mail-we0-f184.google.com with SMTP id m1sf1623561wer.11 for ; Mon, 02 Apr 2012 11:33:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=mime-version:x-beenthere:received-spf:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references:x-feas-system-wl :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-google-group-id:list-post :list-help:list-archive:sender:list-subscribe:list-unsubscribe :content-type; bh=YSUf0bzvMXOpU0XOGseGVyU1jwb5nLLew9zGv53BPlo=; b=G38FtK4uj4yFCJj0sH5PsAEGtDD835vN8DvYjowljcePHbbntEMxw5kouZ1dWNO2hq epA6U2dEzDwil9jed6sUTE0tW3zTFg2t1gfXmMp+JFWyOob5AmwCOM0hmqgBCih9Z2RN ODbIwhaGxx+Jn2TRlcy/6rcQIOuMXsP6JQVWY= Received: by 10.180.84.197 with SMTP id b5mr1078591wiz.3.1333391634055; Mon, 02 Apr 2012 11:33:54 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.216.199.199 with SMTP id x49ls5980398wen.1.gmail; Mon, 02 Apr 2012 11:33:23 -0700 (PDT) Received: by 10.180.94.136 with SMTP id dc8mr1648791wib.0.1333391603656; Mon, 02 Apr 2012 11:33:23 -0700 (PDT) Received: by 10.180.94.136 with SMTP id dc8mr1648790wib.0.1333391603644; Mon, 02 Apr 2012 11:33:23 -0700 (PDT) Received: from work-microwave.de (mail.work-microwave.de. [62.245.205.51]) by gmr-mx.google.com with ESMTPS id n12si6715319wiv.0.2012.04.02.11.33.23 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 02 Apr 2012 11:33:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of rst@work-microwave.de designates 62.245.205.51 as permitted sender) client-ip=62.245.205.51; Received: from rst-pc1.lan.work-microwave.de ([192.168.11.78]) (authenticated bits=0) by mail.work-microwave.de with ESMTP id q32IXLHs008162 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 2 Apr 2012 19:33:22 +0100 Received: by rst-pc1.lan.work-microwave.de (Postfix, from userid 1000) id 42917AE065; Mon, 2 Apr 2012 20:33:21 +0200 (CEST) From: Roland Stigge To: arm@kernel.org, linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, w.sang@pengutronix.de, srinivas.bakki@nxp.com, kevin.wells@nxp.com, gregkh@linuxfoundation.org, netdev@vger.kernel.org, rtc-linux@googlegroups.com, a.zummo@towertech.it, linux-watchdog@vger.kernel.org, wim@iguana.be, jonsmirl@gmail.com Cc: Roland Stigge , stable@vger.kernel.org Subject: [rtc-linux] [PATCH v2 5/8] i2c-pnx.c: Fix suspend Date: Mon, 2 Apr 2012 20:33:04 +0200 Message-Id: <1333391587-26290-6-git-send-email-stigge@antcom.de> X-Mailer: git-send-email 1.7.9 In-Reply-To: <1333391587-26290-1-git-send-email-stigge@antcom.de> References: <1333391587-26290-1-git-send-email-stigge@antcom.de> X-FEAS-SYSTEM-WL: rst@work-microwave.de, 192.168.11.78 X-Original-Sender: stigge@antcom.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of rst@work-microwave.de designates 62.245.205.51 as permitted sender) smtp.mail=rst@work-microwave.de Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: Sender: rtc-linux@googlegroups.com List-Subscribe: , List-Unsubscribe: , In the driver's suspend function, clk_enable() was used instead of clk_disable(). This is corrected with this patch. Signed-off-by: Roland Stigge CC: stable@vger.kernel.org --- Applies to v3.4-rc1 drivers/i2c/busses/i2c-pnx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- linux-2.6.orig/drivers/i2c/busses/i2c-pnx.c +++ linux-2.6/drivers/i2c/busses/i2c-pnx.c @@ -546,8 +546,7 @@ static int i2c_pnx_controller_suspend(st { struct i2c_pnx_algo_data *alg_data = platform_get_drvdata(pdev); - /* FIXME: shouldn't this be clk_disable? */ - clk_enable(alg_data->clk); + clk_disable(alg_data->clk); return 0; }