Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp1808126ybj; Fri, 20 Sep 2019 17:22:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqwE6iKZCCkpqns5vu8bO7OaRMc2ckjEILlmvupaEbjKa5rUC1gXDFXBCF0pCtjTBBpqMDFv X-Received: by 2002:a50:d718:: with SMTP id t24mr9579311edi.168.1569025333052; Fri, 20 Sep 2019 17:22:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569025333; cv=none; d=google.com; s=arc-20160816; b=Tp21qg7gbnh7tXKd+y0j5MDofPbUA+ahlLymdjD+Kd0Qi8rw4faLf/uYISVDnHkNd/ DaxkhY6/tNkvWoN4jqO7QK1cF69868nsaXJ2blg4ai5MdPdZx2MmyKsHq4PVJq8gBbkA Pp1VFZgWW/NB5l6RTybEd0/SeHjDFwkBfmW88m96OWWEVeAy6jATPBAZy8sVOmKmswoe U5WwM5bXt2U0VK+lm7Q+QnW0gIq1dzMn08em6bP2fyyzLi8BsOzpE2uOU7JcqHt9MKGK dYL4rdtamReE9/uiUqrEr4wo3PqjQ/JNBM10FFYlXSbEAPqrn6oTc8h968nX2LdZvDYH SktQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=GKB2cZsFSODM3FIuz4Y4YZ1vEc5k6RufqQEYaxRbI0w=; b=RjPhtHrAPOi5gBXl0wUwrkts8XONUWQS4EXCY3/3tf2u9vk+y+mWjI6MlaSriDqOX8 ZQANoSmdp3G4wcpyHrbtqk3oHJ41CvA3B1U+zVcEMU5xvWI1jCtuKg5ErS/hBco+FnhM 7QU2S0v0BDVO/gp0EdV3/fBbirJoRrTNTSInYr2djo21LyVvy1C0KLfw3rqOnW9ZeqEQ 2dBWXLHyZoopSx9lzjscVkrRWu6NUnfIuyQUrBfN8zt//5x0hyMD2gpGg6T7PahO9eHT 7h2WCOiQoXcRTXnTfk3hl/KUzI9w5+krmM+pmO9EkXUHMNWeqPJwPjly3oUJ4f3SjdRd g5MQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a94si2557305edf.110.2019.09.20.17.21.44; Fri, 20 Sep 2019 17:22:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405113AbfITIFF (ORCPT + 99 others); Fri, 20 Sep 2019 04:05:05 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:36127 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404886AbfITIFF (ORCPT ); Fri, 20 Sep 2019 04:05:05 -0400 Received: by mail-ed1-f65.google.com with SMTP id h2so5534904edn.3; Fri, 20 Sep 2019 01:05:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=GKB2cZsFSODM3FIuz4Y4YZ1vEc5k6RufqQEYaxRbI0w=; b=qssZ7g5N4GQ7we9G9GowQLEHsAeYBpthajNHNMfdpjwWM3CI42L+Y59RfzoSUMLMyX isxmD0xThXBNEu33QcEMe05n9Bbu7KSRopgvC7J1b3KvpRTg8br7L70CKYX5xDt1VSRR bQzfEHqhrohgARd/gWxFix72DEEdysHmLnFfN7Vh/9UrFSGqdOB6alUN/8m0512g45Xd y2LH7jjHxq6LQnxXZ20e/OjWAA2nUb0bgy6KnRMnhMS3KzNgQkFckB6N/uCCpi2oW6Qh KHTjKQOlB/3TRWd2fniB/EZsmIN4aPgO27fa5oo2ooBNjI2uOKbBdQE2d+pfqE2zx2uO QFVQ== X-Gm-Message-State: APjAAAUUaidcLDCjiVO6GDeR2lhos6J+7QE/GnaVH8AnG/njKRabgeKf Cdl0n7W6uVxsQcqqkhcEWFE= X-Received: by 2002:aa7:d38e:: with SMTP id x14mr21018641edq.102.1568966703382; Fri, 20 Sep 2019 01:05:03 -0700 (PDT) Received: from [10.68.32.192] (broadband-188-32-48-208.ip.moscow.rt.ru. [188.32.48.208]) by smtp.gmail.com with ESMTPSA id h7sm191025edn.73.2019.09.20.01.05.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 20 Sep 2019 01:05:02 -0700 (PDT) Subject: Re: [PATCH v3 23/26] memstick: use PCI_STD_NUM_BARS To: Ulf Hansson Cc: Bjorn Helgaas , Linux Kernel Mailing List , Linux PCI , Andrew Murray , "linux-mmc@vger.kernel.org" , Maxim Levitsky , Alex Dubov References: <20190916204158.6889-1-efremov@linux.com> <20190916204158.6889-24-efremov@linux.com> From: Denis Efremov Message-ID: <1bbe2bb0-1d3a-9151-eb2a-d2bb2c79250e@linux.com> Date: Fri, 20 Sep 2019 11:05:00 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20.09.2019 10:42, Ulf Hansson wrote: > On Mon, 16 Sep 2019 at 22:47, Denis Efremov wrote: >> >> Use define PCI_STD_NUM_BARS instead of PCI_ROM_RESOURCE for the number of >> PCI BARs. >> >> Cc: Maxim Levitsky >> Cc: Alex Dubov >> Cc: Ulf Hansson >> Signed-off-by: Denis Efremov > > Assuming this depends on other changes in the series? Yes, the first patch introduce define PCI_STD_NUM_BARS. > Thus this is > probably for PCI maintainers to pick up? Yes, this is for Bjorn's tree. > > Acked-by: Ulf Hansson > > Kind regards > Uffe > >> --- >> drivers/memstick/host/jmb38x_ms.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/memstick/host/jmb38x_ms.c b/drivers/memstick/host/jmb38x_ms.c >> index 32747425297d..fd281c1d39b1 100644 >> --- a/drivers/memstick/host/jmb38x_ms.c >> +++ b/drivers/memstick/host/jmb38x_ms.c >> @@ -848,7 +848,7 @@ static int jmb38x_ms_count_slots(struct pci_dev *pdev) >> { >> int cnt, rc = 0; >> >> - for (cnt = 0; cnt < PCI_ROM_RESOURCE; ++cnt) { >> + for (cnt = 0; cnt < PCI_STD_NUM_BARS; ++cnt) { >> if (!(IORESOURCE_MEM & pci_resource_flags(pdev, cnt))) >> break; >> >> -- >> 2.21.0 >>