Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp1454498ybj; Fri, 20 Sep 2019 10:42:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqxr25W+DGfA+4fbohzmF9nednzJwyByGJ2QEpkK0PNWQH9ykzqXvMIRcM+fW/Jce39Q1827 X-Received: by 2002:a17:906:6848:: with SMTP id a8mr20751021ejs.104.1569001368573; Fri, 20 Sep 2019 10:42:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569001368; cv=none; d=google.com; s=arc-20160816; b=jK9sikAVgXFP6gPY+08fP1kVC1chKemoLNigMhiWbX47z+P+/iGBkgMiSBigKN8nXx 7wDBB2lGir4Wx9dzxuf8VUKt9O178beY68vAnvGGT8KO/LAhF0/WHoRD2rt/EUSBG6RE T2Ct2MW/Ou7ko9xp3D2OB0RlDS9exSPyFfJDWzp27k9g/Y6p6NjvR90xYR3CTy2vFqSl R+TP0/+U1jncZ4BO0PH4eK19a96G80C61ub7UhuuyQsWIyKCZzU1woeWh4Na2s6y8yDP +toMBud1b3LFjfIIY6YNXerP6FMqNcF7vDrpVZ8EddMwAKBdQ81U0yKSlNpRtolozdvT QzxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Og92PK7lYuYxZVroo0I3fiUsRwDg032RIvVPfcZDz9g=; b=VUlt/mCdY62UL13IHVVb4H3J+cGHZKQXBdON3xfKPfVzxJIgIeUEqJwrhRLCm9c+dS VBYlE3ejdxMRLdIF1CtDQYpKzSzFWXlD4loMKs0phtTWYmKkTlEI5oqcezphGIDAM9vm DvAS9PKcafYjI4d2mjmb46g5RqLgVY7G6mRXmWfTB630v/Wa1Wcfm0FMDZvsaauE5EmK bW0i+vkLF/OJe8d6iGBlhprRq3cqt4R2hEyJCFUsadDneH93Nq8UlOhJrElPsQCiEl96 EGN40gtEDdY2oVcpdn4va4hAqPh51DrHzJopvy7n1WD61uTc+43NybEzVBiUgImPGMgw FUWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pytRpzDQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r23si1691155edq.243.2019.09.20.10.42.24; Fri, 20 Sep 2019 10:42:48 -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; dkim=pass header.i=@linaro.org header.s=google header.b=pytRpzDQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404755AbfITHnA (ORCPT + 99 others); Fri, 20 Sep 2019 03:43:00 -0400 Received: from mail-vk1-f195.google.com ([209.85.221.195]:46819 "EHLO mail-vk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393040AbfITHm7 (ORCPT ); Fri, 20 Sep 2019 03:42:59 -0400 Received: by mail-vk1-f195.google.com with SMTP id t128so1368226vkd.13 for ; Fri, 20 Sep 2019 00:42:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Og92PK7lYuYxZVroo0I3fiUsRwDg032RIvVPfcZDz9g=; b=pytRpzDQlDd43MinOxKbi8uqIvJ3ntOh9vfhvnAVt87Jq56QaUx03Fg5JnldbvdAAY 0NTWM4iprCKUJyuzGw35eX863u9+ZtC02/IkTZCLFO5DI2qFnELZ2HlwpWh3suuk1Xwc SxTr5+VtHrUc62XyPyA9S1FL5g3WzGTDYNKZK0wf3r2vKfKeCaLl7sFj8nkjdaNcXPN4 x4VLVZ2C/hBlkviyHixSyljJmUILQ1CC+Vn1lW1qYycdWUoF9fBid2e117FrqIQNjm/n ZMBTgF3taIj2iuyx1eBLNHoX9WtgiU8FAtr6YxwvfrrRFNDVSqKz9QySnFuLX//HLhwS dg9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Og92PK7lYuYxZVroo0I3fiUsRwDg032RIvVPfcZDz9g=; b=m89XzjSac23uW53UmGl8TFrjPP+V3GrhgOPm/PvgicZwZSM47FfuyCPD+NE79r4B/M IaB6vFyQjGtWDQyY5sjvRt/LkAW7qPsereL5l3laBgu7u9UT8NJFVCZ8tYnkIYhp8gAJ WYWFtBvFf5Ik219yCp7o+lHE9NWpo8hg21zh6vAHWV3gbhpHK3S8i0AMa+HcBrpavsDm PDFNUM/UrmAl8SvwZM+0jw+h+j1Dp5F1/xXQ7fFeBmiW4MMoTz6rbhbPorpWwIEUp4/N +4GP+KUUm25kduomPZJWa7COemITqEdaDnMUbgMkRMVFHs9MRNaa5o9rGZAOXQM8bbfo VaUA== X-Gm-Message-State: APjAAAUBqkgteqW9CZmH/ubMuPmKLMCM7ZPCFFFHmq9pKA/vYIEz20KS dNBuT3ie1XHWhmPFptv8kp3PSlLnZLaXeKOV8UWhYQ== X-Received: by 2002:a1f:da45:: with SMTP id r66mr3600161vkg.36.1568965377565; Fri, 20 Sep 2019 00:42:57 -0700 (PDT) MIME-Version: 1.0 References: <20190916204158.6889-1-efremov@linux.com> <20190916204158.6889-24-efremov@linux.com> In-Reply-To: <20190916204158.6889-24-efremov@linux.com> From: Ulf Hansson Date: Fri, 20 Sep 2019 09:42:20 +0200 Message-ID: Subject: Re: [PATCH v3 23/26] memstick: use PCI_STD_NUM_BARS To: Denis Efremov Cc: Bjorn Helgaas , Linux Kernel Mailing List , Linux PCI , Andrew Murray , "linux-mmc@vger.kernel.org" , Maxim Levitsky , Alex Dubov Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Thus this is probably for PCI maintainers to pick up? 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 >