Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp773646ybh; Sat, 18 Jul 2020 21:36:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwt01EzVfmZzrojm1vWWjOy/wJPaFbD42GPCVe61BEW8KhbBOkS4YFrHgShm5V4F6rsY3xp X-Received: by 2002:a17:906:65b:: with SMTP id t27mr10127427ejb.457.1595133371861; Sat, 18 Jul 2020 21:36:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595133371; cv=none; d=google.com; s=arc-20160816; b=Jc9lx8/hz4tNaf4p7vg3XXFBHTM1wypQOkckTAN/W2hQMrkvhcWrjhJne3EJbRmDZL zcdEQUS4Lgu58zrbzECc1AuFu/Pf+rSROT5a0VvVM2oUlVvM3d/Q953c4qvYM05no/h7 S0u7pdG3s7P5NarmJ/A0dhz0rtGviNV/mjRb8optDZQYJN+t+k7xGMPAoskyoqONOdAd aUGJH956TQiyhrKXwWjjtUZwTcOUxMtuwTxE29sBmXOsMZdebvnWYzRsUEw9MEX641+s 7mFPFGDM4fOtHe1DXZ7FRCBu0GKPlfU22n7AokYZHv4m3b/r1jWAS9b2kHPpoo+FjD/r luwg== 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:dkim-signature; bh=RhbYjjsEblGVOuvzmWtzkghGNNIuxewncjcXQDojD18=; b=GBvJ+bOKhUqfSn128FfUmqwc06jr/7JS8TWjBNYjOod2uXBcgeU+H8qqPHRTIz6TqB Olr0plFiZ1padg2EYrLI9nPUDLgbhs8iSoMnkPk8nUZLCEw+sJD+SP3JOZlssvC46zWj LTk5JkFOIvPcyc0Dp4Goxnd32un7LRSQSU4GGby/ca/azWdWxr+NQYkMPbr1pJH/NtG3 UTHDxwvYbBsw96PATH2HgvIglsvnPxxGAiJGiHwDanMnkgR1yGlnHaHwOM1atsbpaJ/o 4lsFn/gXGx/cJsq7sHiyqIDSKKZcEOEEMwUZOalRCca0FASM986c0/iKkpP6hazWIm4F sudg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hCbW7w8q; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r25si8685596edo.46.2020.07.18.21.35.49; Sat, 18 Jul 2020 21:36:11 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hCbW7w8q; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726097AbgGSEe7 (ORCPT + 99 others); Sun, 19 Jul 2020 00:34:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725272AbgGSEe6 (ORCPT ); Sun, 19 Jul 2020 00:34:58 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78DDFC0619D2 for ; Sat, 18 Jul 2020 21:34:58 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id o13so8715466pgf.0 for ; Sat, 18 Jul 2020 21:34:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=RhbYjjsEblGVOuvzmWtzkghGNNIuxewncjcXQDojD18=; b=hCbW7w8q3DIJ+GO6/km3FYPzqVf9Pws1jTbEbxW+51WpDajtn6MweSiLR0ErBCJne4 xfOizeRktAI3+vhiKT4gHx525ovZatSRsgqw8+kY0gu2YVBBMvqlVUFfj3Tg+ZjRvQeD OWvxVNpR6QFtrEgiyIUDt+qFggF0QO1yu7E7gn7g53vZG1PElKB0wc12Os1z7mfFjwIV 9mYi8DSIo8wStdRzWnFOeyF7iSuE+8VvUPejid6ya2VmyKdyHJ4vDX5/KmFtpMtoNlKg pM9K4RzX8FHbrznat+QFUQdSDz/RfkjVjck1OZ+tFe9EMwoznFwGEYBOFJdc/JRFq0l5 zKqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=RhbYjjsEblGVOuvzmWtzkghGNNIuxewncjcXQDojD18=; b=MexJ7YPATrxnmg5tvVYOs2lVFd96wBpcyfyJKSUKxrYjS/4uw9kTcNGdKyQJ9UrEg5 TxPVQhFmqbzML4epq6dR4RPKDuYEroVT/XqT7YaHd19TI7bS61fLmfE4op+SrDFCv6Fb 5JrBUWt+yS+7JsRo2CDCX0SmGrlrfDaFSRHvBmsnZSnt+dIIOFiK4XSwYdn3JHUu/17m zeLei51AwsHxo/QWZ3sBEhgMCqeE3T2Tx363VZ5vnGJdq28zgO6/Gn+w1NQoNMBMTNrO xIRtnJfeFgilDJcRobKGa0g/gQqcamOIsE4SfZ6fYmyDgH/QiLCf5bCr5d7DEhkIuBP6 GERA== X-Gm-Message-State: AOAM533Cq/tDiIMIF6DMwJvgS5V8nvB+hIP2bEyA/HZvDj7SMdpKTXcx uyn0hlEqMVMc5cZ59OZgq86y7l/PVmgsiA== X-Received: by 2002:a63:e442:: with SMTP id i2mr14690576pgk.105.1595133297970; Sat, 18 Jul 2020 21:34:57 -0700 (PDT) Received: from blackclown ([2405:204:219:61b6:3945:8436:8c57:56d5]) by smtp.gmail.com with ESMTPSA id y198sm12046055pfg.116.2020.07.18.21.34.55 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 18 Jul 2020 21:34:57 -0700 (PDT) Date: Sun, 19 Jul 2020 10:04:50 +0530 From: Suraj Upadhyay To: gregkh@linuxfoundation.org Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] staging: rts5208: rtsx: Replace depracated MSI API Message-ID: <20200719043450.GB28510@blackclown> References: <20200718154030.GA28042@blackclown> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200718154030.GA28042@blackclown> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 18, 2020 at 09:10:30PM +0530, Suraj Upadhyay wrote: > Replace depracated pci_enable_msi with pci_alloc_irq_vectors. > > Signed-off-by: Suraj Upadhyay > --- > drivers/staging/rts5208/rtsx.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > Hii, don't merge this patch. It is still incomplete. It doesn't replace pci_disable_msi. I hope this didn't cause any annoyances. Thanks, Suraj Upadhyay. > diff --git a/drivers/staging/rts5208/rtsx.c b/drivers/staging/rts5208/rtsx.c > index e28e162d004e..b39d3f8b54df 100644 > --- a/drivers/staging/rts5208/rtsx.c > +++ b/drivers/staging/rts5208/rtsx.c > @@ -310,7 +310,7 @@ static int __maybe_unused rtsx_resume(struct device *dev_d) > pci_set_master(pci); > > if (chip->msi_en) { > - if (pci_enable_msi(pci) < 0) > + if (pci_alloc_irq_vectors(pci, 1, 1, PCI_IRQ_MSI) < 0) > chip->msi_en = 0; > } > > @@ -881,7 +881,7 @@ static int rtsx_probe(struct pci_dev *pci, > dev_info(&pci->dev, "pci->irq = %d\n", pci->irq); > > if (dev->chip->msi_en) { > - if (pci_enable_msi(pci) < 0) > + if (pci_alloc_irq_vectors(pci, 1, 1, PCI_IRQ_MSI) < 0) > dev->chip->msi_en = 0; > } > > -- > 2.17.1 >