Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1681443pxa; Thu, 13 Aug 2020 14:41:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGToZvf+5o0xtq1tvKfilzQqp5GJK9jTvxz6nNvabefd5Nz3YCODESMNeJhlBfn90g92XY X-Received: by 2002:a17:906:180b:: with SMTP id v11mr6992957eje.427.1597354912945; Thu, 13 Aug 2020 14:41:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597354912; cv=none; d=google.com; s=arc-20160816; b=jZu7zzdeS+0vmD/vtYzcDO9H6WON6tU8ROHrrGpYsLTBA5wNvk8t93314EjEmtTcUW 7ev02aG+It7NgbnxV8rORbSZFgfjBpRMqhqhqNJg5oXad3LH/fhdA3ILKRJSIZPZfnh7 9wBKNFJPOxF035QkktYj9lX2bXKdifH+ZT1JeAJfTGZ4aLI1Nmgmu6mQAU3fMJPSnW0H 39Of070NDcqpsk9/9nBVi4AcNDX6wgqNCQGYt+glI7zOS+tHXJeMcioauUNCd73+Ficv U39o9/j2izF5hc/TJVqWh1TQwW2H/1IjabiKjKn2pNVlplPG8F9uVVeA2VGfiVScc5ov ixQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=WzH1MjUTuvdmeWD/GQb09vfBTOuCK7r6hHZxwesMx0Y=; b=HsTUCx+RKZhIFlmYM1fP1fOSbQd6kLVeA8gOieKvO5GnV2Uh2bYZwPcVQtVQ7Rmurf BCyzWIhmepLT3Ynws/mS9eFsGwYaFftBrcG8PifG1GRT3tkFg2jI5F0AJTTSeYIRkQgs +L3XXM7QdZcWgGRg638kCFxX8wX8DE8hNy3p0HrbCA3WFN1YZtGumBWninoPmtzbhPSQ XqMtPpxOGALzCrCTM/47lLzuJLsajwCUGVNx4ExoafI3ZkgF5Fo0FK3iInek+di1O5Ug 5TRmBaMFl5MitZ/XAvOA1SDOy8AQNSvQuozSajbi1R9590hHJNAIW/p13P802glSHJXb G3Og== 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 si30si4133282ejb.569.2020.08.13.14.41.27; Thu, 13 Aug 2020 14:41:52 -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 S1726596AbgHMVke (ORCPT + 99 others); Thu, 13 Aug 2020 17:40:34 -0400 Received: from mga07.intel.com ([134.134.136.100]:21835 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726192AbgHMVke (ORCPT ); Thu, 13 Aug 2020 17:40:34 -0400 IronPort-SDR: gPoFmbQDoB1sDdpDiSZvlAfgi5Z+JycgLiMmEIDJMraSRPKbjrgY/O9iirrap9s8a+IrBwrljE w418qxt8/Ggg== X-IronPort-AV: E=McAfee;i="6000,8403,9712"; a="218658444" X-IronPort-AV: E=Sophos;i="5.76,309,1592895600"; d="scan'208";a="218658444" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Aug 2020 14:40:33 -0700 IronPort-SDR: bX8ONL1waEA2CrBviOzY+VKb8U80uMrAcyaqIj14Gd/WWboRHPcItAtuddgJCTpYnJBIOOL3yW 0yyEl7tzj6cQ== X-IronPort-AV: E=Sophos;i="5.76,309,1592895600"; d="scan'208";a="439920140" Received: from paasikivi.fi.intel.com ([10.237.72.42]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Aug 2020 14:40:31 -0700 Received: by paasikivi.fi.intel.com (Postfix, from userid 1000) id 0B7A120699; Fri, 14 Aug 2020 00:40:29 +0300 (EEST) Date: Fri, 14 Aug 2020 00:40:29 +0300 From: Sakari Ailus To: Suraj Upadhyay Cc: bingbu.cao@intel.com, tian.shu.qiu@intel.com, mchehab@kernel.org, gregkh@linuxfoundation.org, linux-media@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] staging: media: ipu3: Replace depracated MSI API. Message-ID: <20200813214028.GB24582@paasikivi.fi.intel.com> References: <20200718133238.GA11982@blackclown> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200718133238.GA11982@blackclown> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Suraj, Thanks for the patch. On Sat, Jul 18, 2020 at 07:02:38PM +0530, Suraj Upadhyay wrote: > Replace depracated psi_enable_msi with pci_alloc_irq_vectors. > And as a result modify how the returned value is handled. > > Signed-off-by: Suraj Upadhyay > --- > drivers/staging/media/ipu3/ipu3.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/staging/media/ipu3/ipu3.c b/drivers/staging/media/ipu3/ipu3.c > index ee1bba6bdcac..54690e7442be 100644 > --- a/drivers/staging/media/ipu3/ipu3.c > +++ b/drivers/staging/media/ipu3/ipu3.c > @@ -602,9 +602,9 @@ static irqreturn_t imgu_isr(int irq, void *imgu_ptr) > static int imgu_pci_config_setup(struct pci_dev *dev) > { > u16 pci_command; > - int r = pci_enable_msi(dev); > + int r = pci_alloc_irq_vectors(dev, 1, 1, PCI_IRQ_MSI); > > - if (r) { > + if (r < 0) { > dev_err(&dev->dev, "failed to enable MSI (%d)\n", r); > return r; > } I believe fixing this requires also releasing it, i.e. a call to pci_free_irq_vectors(). This seems to have been missing. -- Kind regards, Sakari Ailus