Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933188AbbFJH4I (ORCPT ); Wed, 10 Jun 2015 03:56:08 -0400 Received: from mga03.intel.com ([134.134.136.65]:43802 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752639AbbFJHz7 (ORCPT ); Wed, 10 Jun 2015 03:55:59 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,586,1427785200"; d="scan'208";a="740642652" Date: Wed, 10 Jun 2015 10:55:55 +0300 From: Mika Westerberg To: lucas.de.marchi@gmail.com Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Wolfram Sang , Jarkko Nikula , Fabio Mello , Lucas De Marchi Subject: Re: [PATCH] i2c: designware: use enable on resume instead initialization Message-ID: <20150610075555.GO1478@lahna.fi.intel.com> References: <1433785828-4100-1-git-send-email-lucas.de.marchi@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1433785828-4100-1-git-send-email-lucas.de.marchi@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 625 Lines: 15 On Mon, Jun 08, 2015 at 02:50:28PM -0300, lucas.de.marchi@gmail.com wrote: > @@ -320,7 +320,7 @@ static int dw_i2c_resume(struct device *dev) > clk_prepare_enable(i_dev->clk); > > if (!i_dev->pm_runtime_disabled) > - i2c_dw_init(i_dev); > + i2c_dw_enable(i_dev); This will not work if the device power gets removed (for example being put to D3cold) as it looses context. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/