Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7153784pxb; Thu, 18 Feb 2021 02:56:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJycpcxurpuUYq2SYSsnR6Ke10YeIkyXxG+yzALtWHB/Cdf7QJ49tC50pX+9fVQXuTrzm9hN X-Received: by 2002:a17:907:9483:: with SMTP id dm3mr3438049ejc.120.1613645799328; Thu, 18 Feb 2021 02:56:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613645799; cv=none; d=google.com; s=arc-20160816; b=HdfNYMqeTkklumemwlsHp4Tswl3574EqN690eVE+o17RShOrYFk43n8d0P9Nn8uERs ixmc30G1Y/HryUGITGQi0iA3y0p1SysUNj9k2B44YjqPWedICyNm+9H0yrehios+lnnV wPNoZ86DTI9dzPaw4QjKWNwErJmRsmTlwEx8DhIvMlqxxUc/LCFXZDTlrqBW7tkRelxr gCLZekzF0bBhzcB1r0rx4xv8OB0WxxlaDajnkC8hRhB2VI4QwUvh/tQdgXWSIrD0yP0G 3qaeOgbWsWE1Gr0I5l4hllIXj1P79bMEUtiLJ2C5DSft4J9g9MUtOKj3fKp7d1m9b9LX l8ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=wSr3x/1Wqd6GaO9gcg1hlmMszxh66/Vju4w7/AfkyO0=; b=QS2q1RXtoxXre7lqANapUvXjjPaz8muq1/K3/LgL4zkjT9gyhRSQuYl/yRlysoKnww 2ehrOUu6jWNQZPICE8Nosl/fPswxo0dGDDjSTRSAoIu/QeERjYmjIjUGKWJ9NADM2Smq 0PEfAUsv7G2CaV0KzRPlh5KEDNTkyUzH9wfVj4odJDl3OzXrz7JOZ8o+nH4lXyh0otkh TlcozzlO2er/9wwOlB7n+E0+yX/bBCW8q+13a3KXQf9a8voqQv3pNFt8Y/W6nN8nuKvp U/wb0239CFUXKgkfmqsSL8lGgbMsCYbrEN3gziNDWQob0p+IxkhCGN00TBvsl83FF9Ce XwKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IEfg2oar; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g19si3817172ejz.742.2021.02.18.02.56.15; Thu, 18 Feb 2021 02:56:39 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IEfg2oar; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230438AbhBRKxI (ORCPT + 99 others); Thu, 18 Feb 2021 05:53:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:50066 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230352AbhBRJhS (ORCPT ); Thu, 18 Feb 2021 04:37:18 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9E51D64D99; Thu, 18 Feb 2021 09:36:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1613640994; bh=UnZtLNC2SE7t6sL20JzyCDF5LpgoYFQOPCU+CtVkXfo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IEfg2oarpQ9AVEjnfI0xSBr14d9NTYLzO1Mxatgys1i68NteBf8wcGZo09Ta6R9df KtDBFmU+VXVZxK2r1CIaxTL9P/3QjRL1oZixV/mTosBKEjpNtOZwtypWEozOagN636 n2t89hSt/1kT7mZptqS3tHyx6zehYmQJ2zxrV1DQsEcJ0MXE8z9FXKZjpfCkdH2Ed5 mr1BMgsFPJz+odExn1BwrgIM38+SF6LdWLl/xxylAww3+VMFhR3pzFujobDwc7CUbi CN9zywKrDmi5XkO9KNht8sHS2cc3t/0bDK1ig020zDFKTddPXWYACZNPQ6YRpKtuGy +hPj25L8zHNPQ== Date: Thu, 18 Feb 2021 10:36:28 +0100 From: Robert Richter To: Dejin Zheng Cc: corbet@lwn.net, jarkko.nikula@linux.intel.com, andriy.shevchenko@linux.intel.com, mika.westerberg@linux.intel.com, bhelgaas@google.com, wsa@kernel.org, linux-doc@vger.kernel.org, linux-i2c@vger.kernel.org, linux-pci@vger.kernel.org, kw@linux.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 0/4] Introduce pcim_alloc_irq_vectors() Message-ID: References: <20210216160249.749799-1-zhengdejin5@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210216160249.749799-1-zhengdejin5@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17.02.21 00:02:45, Dejin Zheng wrote: > Introduce pcim_alloc_irq_vectors(), a device-managed version of > pci_alloc_irq_vectors(), In some i2c drivers, If pcim_enable_device() > has been called before, then pci_alloc_irq_vectors() is actually a > device-managed function. It is used as a device-managed function, So > replace it with pcim_alloc_irq_vectors(). > > Changelog > --------- > v2 -> v3: > - Add some commit comments for replace some codes in > pcim_release() by pci_free_irq_vectors(). > - Simplify the error handling path in i2c designware > driver. > v1 -> v2: > - Use pci_free_irq_vectors() to replace some code in > pcim_release(). > - Modify some commit messages. > > Dejin Zheng (4): > PCI: Introduce pcim_alloc_irq_vectors() > Documentation: devres: Add pcim_alloc_irq_vectors() This is already taken care of, see pcim_release(): if (dev->msi_enabled) pci_disable_msi(dev); if (dev->msix_enabled) pci_disable_msix(dev); Activated when used with pcim_enable_device(). This series is not required. -Robert > i2c: designware: Use the correct name of device-managed function > i2c: thunderx: Use the correct name of device-managed function > > .../driver-api/driver-model/devres.rst | 1 + > drivers/i2c/busses/i2c-designware-pcidrv.c | 15 +++------ > drivers/i2c/busses/i2c-thunderx-pcidrv.c | 2 +- > drivers/pci/pci.c | 33 ++++++++++++++++--- > include/linux/pci.h | 3 ++ > 5 files changed, 38 insertions(+), 16 deletions(-) > > -- > 2.25.0 >