From patchwork Sat Sep 4 08:48:01 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sripathy, Vishwanath" X-Patchwork-Id: 155631 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o848oOdw009946 for ; Sat, 4 Sep 2010 08:53:23 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751154Ab0IDIuW (ORCPT ); Sat, 4 Sep 2010 04:50:22 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:41802 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750746Ab0IDIuV (ORCPT ); Sat, 4 Sep 2010 04:50:21 -0400 Received: from dbdp31.itg.ti.com ([172.24.170.98]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id o848nM5h019547 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 4 Sep 2010 03:49:24 -0500 Received: from localhost.localdomain (localhost [127.0.0.1]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id o848nHo6028158; Sat, 4 Sep 2010 14:19:18 +0530 (IST) From: Vishwanath BS To: linux-i2c@vger.kernel.org Cc: linux-omap@vger.kernel.org, Vishwanath BS , Partha Basak , "Rafael J. Wysocki" , Kevin Hilman , Ben Dooks , Jean Delvare Subject: [PATCH V2] I2C: Fix for suspend/resume issue in i2c-core Date: Sat, 4 Sep 2010 14:18:01 +0530 Message-Id: <1283590081-14593-1-git-send-email-vishwanath.bs@ti.com> X-Mailer: git-send-email 1.7.0.4 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Sat, 04 Sep 2010 08:53:26 +0000 (UTC) diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c old mode 100644 new mode 100755 index 6649176..13927d5 --- a/drivers/i2c/i2c-core.c +++ b/drivers/i2c/i2c-core.c @@ -216,12 +216,6 @@ static int i2c_device_pm_resume(struct device *dev) else ret = i2c_legacy_resume(dev); - if (!ret) { - pm_runtime_disable(dev); - pm_runtime_set_active(dev); - pm_runtime_enable(dev); - } - return ret; }