From patchwork Thu Dec 27 04:09:44 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inderpal Singh X-Patchwork-Id: 13699 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 6FCC523E03 for ; Thu, 27 Dec 2012 04:09:54 +0000 (UTC) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by fiordland.canonical.com (Postfix) with ESMTP id 29084A18351 for ; Thu, 27 Dec 2012 04:09:54 +0000 (UTC) Received: by mail-vc0-f173.google.com with SMTP id f13so9382901vcb.4 for ; Wed, 26 Dec 2012 20:09:53 -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=PbZJDsx0XtHi9gvVZmS0kT/x5TCthYMPi+es077tqTo=; b=BnU6WbZeRA7K0pxqSRBDuM7d8r+uwZ5NVd7fOCyzBy/c/QoZTSmT8EBT49o2WTtL4Z czg1kb6NLIk+zgL5leHqbxJy3DiVNo5uUCx9NOVXr9gfqo4clXSUG9W3XQ/d660U54Nc ANbUThJSEwGJyZk9EP6rYp7WEd6CZJ2J+fWSAFYlM2Moamqvlo0Jc0bQYCX8ItW2I+j5 oeiUeHZMBYUkbwupk7b8vfWqFnELR872NWdR53Dk74zZED87hSvtMThze3IxPZTlU2E1 RqpvmwLzn5T9Ze+WYhSQxlJ9jd8A3mPZZQZcCsQGSn8aJA1sHb2TjCsmA+A4tpKhARtB ZQOw== X-Received: by 10.220.157.9 with SMTP id z9mr44949629vcw.45.1356581393631; Wed, 26 Dec 2012 20:09:53 -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.58.214.195 with SMTP id oc3csp2910vec; Wed, 26 Dec 2012 20:09:53 -0800 (PST) X-Received: by 10.68.189.66 with SMTP id gg2mr57856742pbc.111.1356581392597; Wed, 26 Dec 2012 20:09:52 -0800 (PST) Received: from mail-pa0-f41.google.com (mail-pa0-f41.google.com [209.85.220.41]) by mx.google.com with ESMTPS id n8si28219206paw.262.2012.12.26.20.09.52 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 26 Dec 2012 20:09:52 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.41 is neither permitted nor denied by best guess record for domain of inderpal.singh@linaro.org) client-ip=209.85.220.41; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.41 is neither permitted nor denied by best guess record for domain of inderpal.singh@linaro.org) smtp.mail=inderpal.singh@linaro.org Received: by mail-pa0-f41.google.com with SMTP id bj3so5223222pad.14 for ; Wed, 26 Dec 2012 20:09:52 -0800 (PST) X-Received: by 10.68.209.133 with SMTP id mm5mr92339307pbc.42.1356581392234; Wed, 26 Dec 2012 20:09:52 -0800 (PST) Received: from inder-ubuntu.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPS id v2sm17648251paz.36.2012.12.26.20.09.49 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 26 Dec 2012 20:09:51 -0800 (PST) From: Inderpal Singh To: linux-i2c@vger.kernel.org Cc: linux-samsung-soc@vger.kernel.org, kgene.kim@samsung.com, ben-linux@fluff.org, thomas.abraham@linaro.org, patches@linaro.org Subject: [PATCH 2/2] i2c: s3c2410: free gpios in suspend function Date: Thu, 27 Dec 2012 09:39:44 +0530 Message-Id: <1356581384-23063-2-git-send-email-inderpal.singh@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1356581384-23063-1-git-send-email-inderpal.singh@linaro.org> References: <1356581384-23063-1-git-send-email-inderpal.singh@linaro.org> X-Gm-Message-State: ALoCoQndtamLxAxtg7BDgnQD3pMz6MKITqXYRUBr+hQ0hbsO8UaOr+mBgG/PO8qczYBrBZb0JjMu While resuming the gpios are being requested again, hence we need to free the gpios before going to suspend otherwise it gives "gpio request failed" errors while resuming. Signed-off-by: Inderpal Singh --- drivers/i2c/busses/i2c-s3c2410.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/i2c/busses/i2c-s3c2410.c b/drivers/i2c/busses/i2c-s3c2410.c index f1d1f1e..55c1762 100644 --- a/drivers/i2c/busses/i2c-s3c2410.c +++ b/drivers/i2c/busses/i2c-s3c2410.c @@ -1172,6 +1172,7 @@ static int s3c24xx_i2c_suspend_noirq(struct device *dev) struct platform_device *pdev = to_platform_device(dev); struct s3c24xx_i2c *i2c = platform_get_drvdata(pdev); + s3c24xx_i2c_dt_gpio_free(i2c); i2c->suspended = 1; return 0;