Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp6667936pxb; Wed, 17 Feb 2021 10:08:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJzANNaKi2SuKsGlk979yJO9DfgJrZIlGum3vGHksNbwy32DfczxVpB4mmnnuya1b4L236/O X-Received: by 2002:a17:906:7945:: with SMTP id l5mr164922ejo.117.1613585309981; Wed, 17 Feb 2021 10:08:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613585309; cv=none; d=google.com; s=arc-20160816; b=G0zvXUD9oW1MLmQD7+4RVJRjBKuuJDjvJGdtr47RV1OLtFK3rHpoDAYZW1/wmwwA7g M4/F57gHXzzjHqMtpS/IGLPOWrW++8fco43ZUIoq5HVgByhkRkutYw7YZxcg4rgj5hiW 4vEyWJVVd6o7kkLW+z67L8ZmgFlzqVxA7jHlDwYBh15EN+7Xvn1EyteJ7s1Sfxwb8WyG U6AdqSUaO3SPbFrcfw4cviB9t1AzJL1taHc9a76bn9ceVgdjCXfEMilbepvVYxEZ+wW3 /2roZnxDYs47JzQbE6EuANZVI/XFiBO9/gs/yQHYXeeQqdLYyjwPxt2xWe1sVataX4kw Ap2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:ironport-sdr :ironport-sdr; bh=qukScYZxwfKU1z6o5ME9ua6drJI/FLHCN2Q0lnAsjgc=; b=wsYL++d075S8MKjlo+A8627DLONw0A/DCj/JOfGnhAAAXzXdCYTtDnB3H302wsN7OD jDQqlUiVrWbA8rnU1/uypWc4zbJxLkKq6VlA8zjbT1x1PbauLsDs0TahZAUZdyoufBdo 2xp7bP3mAu84hzm101vRK0kxGBxyGVmljFF8tnNfE7Ntxz3+DefIFwsGzSDsccohqm9R k4YXsHw6vZRUB/ZBAu/+HG1pszdQrPa01Xr+UYnjeiQGoaMcIdOGMOMjzwDhXepRJC+1 k4Z6RxTwkC9EBYZIVgwS/ZDNtmvbf3YABK84Nhh3n6FWWYwxKQAPHItg236dvi7/NJOR B2mg== 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 u19si1743743edo.170.2021.02.17.10.08.05; Wed, 17 Feb 2021 10:08:29 -0800 (PST) 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 S232825AbhBQNtJ (ORCPT + 99 others); Wed, 17 Feb 2021 08:49:09 -0500 Received: from mga14.intel.com ([192.55.52.115]:57442 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231748AbhBQNtD (ORCPT ); Wed, 17 Feb 2021 08:49:03 -0500 IronPort-SDR: Ucd2bFIG2htyppdwu8dLV2IZlKeesNPq4+jrEhaiwdoQj50rG0S/hA4/lIlv08y1v2pCJw24zn Vo1x13lzPHtw== X-IronPort-AV: E=McAfee;i="6000,8403,9897"; a="182413780" X-IronPort-AV: E=Sophos;i="5.81,184,1610438400"; d="scan'208";a="182413780" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Feb 2021 05:47:07 -0800 IronPort-SDR: F90pREd138flyL/iIcxg7rFosRi7BUx7S/w3QiWC6N/l+QKAx/taM8RgmZbgQo8eKCkORNf4Os qP9ZHR9qgzjQ== X-IronPort-AV: E=Sophos;i="5.81,184,1610438400"; d="scan'208";a="580866233" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Feb 2021 05:47:03 -0800 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1lCNAT-005ibQ-4B; Wed, 17 Feb 2021 15:47:01 +0200 Date: Wed, 17 Feb 2021 15:47:01 +0200 From: Andy Shevchenko To: Dejin Zheng Cc: Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , corbet@lwn.net, jarkko.nikula@linux.intel.com, mika.westerberg@linux.intel.com, rric@kernel.org, helgaas@kernel.org, wsa@kernel.org, linux-doc@vger.kernel.org, linux-i2c@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 3/4] i2c: designware: Use the correct name of device-managed function Message-ID: References: <20210216160249.749799-1-zhengdejin5@gmail.com> <20210216160249.749799-4-zhengdejin5@gmail.com> <20210217114014.GB766103@nuc8i5> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210217114014.GB766103@nuc8i5> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 17, 2021 at 07:40:14PM +0800, Dejin Zheng wrote: > On Tue, Feb 16, 2021 at 06:46:01PM +0100, Krzysztof WilczyƄski wrote: ... > > The change simplifies the error handling path, how? A line of two which > > explains how it has been achieved might help should someone reads the > > commit message in the future. > > > To put it simply, if the driver probe fail, the device-managed function > mechanism will automatically call pcim_release(), then the pci_free_irq_vectors() > will be executed. For details, please see the relevant code. Perhaps as a compromise you may add this short sentence to your commit messages, like "the freeing resources will take automatically when device is gone". -- With Best Regards, Andy Shevchenko