Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4942022pxb; Mon, 15 Feb 2021 05:36:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJxI4hwXvxvlq99bo50uX7tlIT32M8NR3eJkwyzv9biqbsJOGVc44EY0JBEjKT9oVhWASMjm X-Received: by 2002:a05:6402:4310:: with SMTP id m16mr15613952edc.207.1613396173114; Mon, 15 Feb 2021 05:36:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613396173; cv=none; d=google.com; s=arc-20160816; b=q9MtIVk2oRDja427I4Fd7js4P1KxDYMefhSAn+CsdG8v9QNnEYluHvXAzflb6yQTJm DJZK5v97JaLaOrpBvpKTTRzVtVIGWNN4fhfwkA4OFmlnh4oUpTdOoveCrLTqWjR6tQ0K sOUHR5shNP4WwEPvp5x/Zv5EsYJf5JSaH9B7MnLGMNFx+Gn8gZfKnF7yxWWKW7CG3Pxf /Q7mdHB1sDngV3LIej4GS2t+b1wRkamwuKBmxo/vwF/c0PKr+xsMLB/9NJIT/zY/NqEr Ac8aVvh6z33zB+e5zHioNhdftsluonBZolIxWnOGf1YDpORLTmBzr9j0bAmzqCB1iG+U Mxyg== 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-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=r0gHi6LrikCm+t5mXgjqNHZboRe7mTaLC/eoM1yvCH0=; b=YyBSSD+ODaEecVBJTASuhKb407SkEe/3o0W4IFgMVkAhexnqXBlxQYXEeyASjiKXXe FWgS5pYbAkXp2Tf757hwYlHmew7IfsAJru8Z16W8VyR+bi19/x0qgne1QxkS1o42RTKO NmChHZ2g9Qk6FO3rGuwqSjq1v2M1VpZYZsnN5HKNu4/plxh17sMpFKV4pT+E9RUAsKu8 HdoX0hRxZaIOS0cxQxE+iFklzTdY3zeBxh9YSZAc5P2RSErL31Ha8qQK5ATSGvHsW/rd tXNSaPBQ91Tn4Qup6JdbFFn6CSQXZv6mpfJycYjY+eU6cH95KE52i0R/VTfSTrfaXjvh pdKQ== 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 v18si6352254edw.553.2021.02.15.05.35.48; Mon, 15 Feb 2021 05:36:13 -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 S230305AbhBONbD (ORCPT + 99 others); Mon, 15 Feb 2021 08:31:03 -0500 Received: from mga02.intel.com ([134.134.136.20]:11742 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230253AbhBONak (ORCPT ); Mon, 15 Feb 2021 08:30:40 -0500 IronPort-SDR: BGY6DJYlDlph3e2TK+3NZCQ6IEZF61tb/6TxUj7hKhlhMPyDhiEZIzn3l8K2kUGMP3i4FygKgf HJMJfY93H6Xg== X-IronPort-AV: E=McAfee;i="6000,8403,9895"; a="169812610" X-IronPort-AV: E=Sophos;i="5.81,180,1610438400"; d="scan'208";a="169812610" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2021 05:28:54 -0800 IronPort-SDR: DIXmMMJmAz3vR9XHDZCRkouf+7yLMNdrRd3hwF38/eCUwr9xCTdKhqATzOI+b0PRNdDIPxpq/4 IZe7uWHk3GWw== X-IronPort-AV: E=Sophos;i="5.81,180,1610438400"; d="scan'208";a="438551218" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2021 05:28:52 -0800 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1lBdvk-005CVS-Oj; Mon, 15 Feb 2021 15:28:48 +0200 Date: Mon, 15 Feb 2021 15:28:48 +0200 From: Andy Shevchenko To: Dejin Zheng Cc: jarkko.nikula@linux.intel.com, mika.westerberg@linux.intel.com, wsa@kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH i2c-next] i2c: designware: Consolidate pci_free_irq_vectors to a single place Message-ID: References: <20210214064529.481341-1-zhengdejin5@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 15, 2021 at 03:20:40PM +0200, Andy Shevchenko wrote: > On Sun, Feb 14, 2021 at 02:45:29PM +0800, Dejin Zheng wrote: > > Consolidate pci_free_irq_vectors to a single place using "goto free_irq" > > for simplify the code. FYI, you may rather to introduce a pcim_alloc_irq_vectors() and drop all these calls altogether. Note to everybody: PCIm is not ideal, but this piece is being called whenever pcim_enable_device() makes resources manageable. The problem here is the naming. -- With Best Regards, Andy Shevchenko