Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3282397ybz; Sun, 3 May 2020 23:04:40 -0700 (PDT) X-Google-Smtp-Source: APiQypKh5Pln2x7HV1cYCpUJCJMMS+p/wpdBTnpSJQzGlqJPKXYU5X5pp/ctD8XQ0S9lZuqaMhLk X-Received: by 2002:a05:6402:d0a:: with SMTP id eb10mr12919462edb.60.1588572280824; Sun, 03 May 2020 23:04:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588572280; cv=none; d=google.com; s=arc-20160816; b=RIsy9QwE5UilwM9ny0QnshUntMueSk5c1LYddOA2ltZo1X8+31KNwtdKVSycwggiqO +YMTrjXdgsSuQEka7uy/CKAgP4CQJc/Z2V+njKDj8Kwk9Cu7m3hVgJgiveBsoK3ia7a6 mkFXwPZ+q9omIGHuxZWn6cFr+TLW9g+oZdpe77oSusRXobsol/qhxzIo4jqdf3Bu++zx 76RWrKeMoomvvQLDK8CQTrVUxlA4dSdcsJIQSdwAayJu9jKAjx2zbGDtlJn3iRhk0vFx BnVC0mxum7kPnvqP4H+b6Pnx1AcvT6kHz+gfQtpsNeRByGI5V2ZaW8EYdkk3CSs4LXBF 7iSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:ironport-sdr:ironport-sdr; bh=wwSkw1JLFKqO2GABV0FCUdkrxWfVSb73O+MDw8V1Hdc=; b=zDocAg+M54QqNh2hXryv8IwrltvCLwG5fPQ00yZf8ccJm3k2CtO8KHoT0zCxoMEL9p SxCimhaVvEcG0EGxGfy4QEk3HkRj/8ydfCrTYVAsGmAInUOjw+PQ9NvTgr5wA2UiOOQV I73sbnVZjH7Hxuuye0TkwqbT2HC2xV7ehu7VcBD4PfuaszOhBLBo1XXQ41Ya3yPe6gH7 K2hsYi4+2mDCmIC9qUz9Qn0RCHcqkkExNinFKPvlQg04D8xWi5zS0WKcOh2t8G7uHpF8 Se8EiF6HNfpiED2IxaoioOgiNb0i+7fv2fnZ4QHIUo1+aQyyQIPi8bf51GHevRv5YqPI Yniw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ay22si6080209edb.134.2020.05.03.23.04.16; Sun, 03 May 2020 23:04:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727106AbgEDFqU (ORCPT + 99 others); Mon, 4 May 2020 01:46:20 -0400 Received: from mga12.intel.com ([192.55.52.136]:45500 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725928AbgEDFqU (ORCPT ); Mon, 4 May 2020 01:46:20 -0400 IronPort-SDR: lw3kJGtvlqQRXSPboZblne3yJceKbiUpsCarMewnOSmX3ZL5baGiU3UQ7XwgvOZyyXn5NZm9aV J4bwAT2QwYdg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 May 2020 22:46:20 -0700 IronPort-SDR: TXvKDZUMGElupqRIHsEDPTP3SAOJqu/4Te3id4ZK9HdrJQLpbjoszE0PQZf2gLedKfVr3+DDuR 77c9leqmWWZg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,350,1583222400"; d="scan'208";a="433989799" Received: from mylly.fi.intel.com (HELO [10.237.72.167]) ([10.237.72.167]) by orsmga005.jf.intel.com with ESMTP; 03 May 2020 22:46:16 -0700 Subject: Re: [PATCH] i2c: fix missing pm_runtime_put_sync in i2c_device_probe To: Wolfram Sang , Alain Volmat Cc: robh+dt@kernel.org, mark.rutland@arm.com, pierre-yves.mordret@st.com, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, fabrice.gasnier@st.com References: <1588261401-11914-1-git-send-email-alain.volmat@st.com> <20200430163503.GA15047@ninjato> From: Jarkko Nikula Message-ID: <0a0b4ad7-3c5a-075d-1484-1e95b976ff48@linux.intel.com> Date: Mon, 4 May 2020 08:46:16 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200430163503.GA15047@ninjato> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/30/20 7:35 PM, Wolfram Sang wrote: > On Thu, Apr 30, 2020 at 05:43:21PM +0200, Alain Volmat wrote: >> In case of the I2C client exposes the flag I2C_CLIENT_HOST_NOTIFY, >> pm_runtime_get_sync is called in order to always keep active the >> adapter. However later on, pm_runtime_put_sync is never called >> within the function in case of an error. This commit add this >> error handling. >> >> Fixes: 72bfcee11cf8 ("i2c: Prevent runtime suspend of adapter when Host Notify is required") > Right, I was blind to see this. Reviewed-by: Jarkko Nikula