Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp211983ybh; Mon, 20 Jul 2020 14:43:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLZ/P/ONYbd8qzRmWBw0khC9VjEmYqE4hczgZzrJXDbi7PlygO9tlaoYRIpE7gNDd/cAyy X-Received: by 2002:a17:906:b157:: with SMTP id bt23mr6940603ejb.354.1595281397919; Mon, 20 Jul 2020 14:43:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595281397; cv=none; d=google.com; s=arc-20160816; b=hdigTKSvOcNiqcjuM+nTvUmzf6qCDfIs0n0ROiCm/rOtwX+5somWpiMv3GgliMTETd w+5HkZzpTFn9NZYdm0b1YXtuDdP7l9Pvoy2Ejljhcj4IDouQeV/oLNE/uq3ZABT2D61T QuvYDlruC23DXqluIW9VGYtSfpAfIaofcjZFJZuF059110hLb04fEZaGwl3C95YMP2TA jWoZwYUtjIL3FjpCsMvn6E30bbWxmkksxQrkQC/CNuTv+MlrDJKKTdQKwXeuDh+AXLCf nHDUA5sMwdNlv1ViiHJct7IabkFcBG1hMSA3h4UKg9Am5meFN8iD58yq5JA2La4dQWng GvMA== 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; bh=s20rG0qmAblRooFbKeBa8Xx0lbBycSPcPXGV/5pxxP0=; b=UBqUwt4HmFBjVZ0xbUK6a0SBQt4Ib4kqXjXZQFGa6PBQ1eql7TYh8PoZpP91AftWjT UBA5fhqmqQmTNGRZwYhzJ2bAzHmj/Yz/gu2U8IM02LXHjrRSndBMxeWsEFB4iIax5s6k cRpyNlaEawSlqkeeFANWi68fV7JQ3Abw8C3+otguUstvDVnTRmM939win9RGN/1foYRi d03+yjv21qeA+6BLpgmK0gZZbR4ee6RxJPsIRq27FnLDCniull4N+pKIEU8mm5DPV9ed oebQ4oASFbjoFZCmjKCfMNKmGXypIszCfeyr4ApEIC2wo3I/9GVmFGVjHAIa9gNYa8IS kEbA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ni7si10952370ejb.725.2020.07.20.14.42.54; Mon, 20 Jul 2020 14:43:17 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728194AbgGTVli (ORCPT + 99 others); Mon, 20 Jul 2020 17:41:38 -0400 Received: from brightrain.aerifal.cx ([216.12.86.13]:34514 "EHLO brightrain.aerifal.cx" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728773AbgGTVlb (ORCPT ); Mon, 20 Jul 2020 17:41:31 -0400 Date: Mon, 20 Jul 2020 17:41:28 -0400 From: Rich Felker To: "Saheed O. Bolarinwa" Cc: helgaas@kernel.org, Yoshinori Sato , bjorn@helgaas.com, skhan@linuxfoundation.org, linux-pci@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, linux-kernel@vger.kernel.org, linux-sh@vger.kernel.org Subject: Re: [RFC PATCH 24/35] sh: Change PCIBIOS_SUCCESSFUL to 0 Message-ID: <20200720214128.GN14669@brightrain.aerifal.cx> References: <20200713122247.10985-1-refactormyself@gmail.com> <20200713122247.10985-25-refactormyself@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200713122247.10985-25-refactormyself@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 13, 2020 at 02:22:36PM +0200, Saheed O. Bolarinwa wrote: > In reference to the PCI spec (Chapter 2), PCIBIOS* is an x86 concept. > Their scope should be limited within arch/x86. > > Change all PCIBIOS_SUCCESSFUL to 0 > > Signed-off-by: "Saheed O. Bolarinwa" > --- > arch/sh/drivers/pci/common.c | 2 +- > arch/sh/drivers/pci/ops-dreamcast.c | 4 ++-- > arch/sh/drivers/pci/ops-sh4.c | 4 ++-- > arch/sh/drivers/pci/ops-sh7786.c | 8 ++++---- > arch/sh/drivers/pci/pci.c | 2 +- > 5 files changed, 10 insertions(+), 10 deletions(-) > > diff --git a/arch/sh/drivers/pci/common.c b/arch/sh/drivers/pci/common.c > index fe163ecd0719..ee27cdfd3e68 100644 > --- a/arch/sh/drivers/pci/common.c > +++ b/arch/sh/drivers/pci/common.c > @@ -61,7 +61,7 @@ int __init pci_is_66mhz_capable(struct pci_channel *hose, > continue; > if (early_read_config_word(hose, top_bus, current_bus, > pci_devfn, PCI_VENDOR_ID, &vid) != > - PCIBIOS_SUCCESSFUL) > + 0) > continue; > if (vid == 0xffff) > continue; > diff --git a/arch/sh/drivers/pci/ops-dreamcast.c b/arch/sh/drivers/pci/ops-dreamcast.c > index 517a8a9702f6..431cd006951f 100644 > --- a/arch/sh/drivers/pci/ops-dreamcast.c > +++ b/arch/sh/drivers/pci/ops-dreamcast.c > @@ -56,7 +56,7 @@ static int gapspci_read(struct pci_bus *bus, unsigned int devfn, int where, int > case 4: *val = inl(GAPSPCI_BBA_CONFIG+where); break; > } > > - return PCIBIOS_SUCCESSFUL; > + return 0; > } > > static int gapspci_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) > @@ -70,7 +70,7 @@ static int gapspci_write(struct pci_bus *bus, unsigned int devfn, int where, int > case 4: outl((u32)val, GAPSPCI_BBA_CONFIG+where); break; > } > > - return PCIBIOS_SUCCESSFUL; > + return 0; > } > > struct pci_ops gapspci_pci_ops = { > diff --git a/arch/sh/drivers/pci/ops-sh4.c b/arch/sh/drivers/pci/ops-sh4.c > index a205be3bfc4a..4d757e5f38c6 100644 > --- a/arch/sh/drivers/pci/ops-sh4.c > +++ b/arch/sh/drivers/pci/ops-sh4.c > @@ -49,7 +49,7 @@ static int sh4_pci_read(struct pci_bus *bus, unsigned int devfn, > return PCIBIOS_FUNC_NOT_SUPPORTED; > } > > - return PCIBIOS_SUCCESSFUL; > + return 0; > } > > /* > @@ -90,7 +90,7 @@ static int sh4_pci_write(struct pci_bus *bus, unsigned int devfn, > > pci_write_reg(chan, data, SH4_PCIPDR); > > - return PCIBIOS_SUCCESSFUL; > + return 0; > } > > struct pci_ops sh4_pci_ops = { > diff --git a/arch/sh/drivers/pci/ops-sh7786.c b/arch/sh/drivers/pci/ops-sh7786.c > index a10f9f4ebd7f..7c329e467360 100644 > --- a/arch/sh/drivers/pci/ops-sh7786.c > +++ b/arch/sh/drivers/pci/ops-sh7786.c > @@ -52,7 +52,7 @@ static int sh7786_pcie_config_access(unsigned char access_type, > else > pci_write_reg(chan, *data, PCI_REG(reg)); > > - return PCIBIOS_SUCCESSFUL; > + return 0; > } else if (dev > 1) > return PCIBIOS_DEVICE_NOT_FOUND; > } > @@ -83,7 +83,7 @@ static int sh7786_pcie_config_access(unsigned char access_type, > /* Disable the configuration access */ > pci_write_reg(chan, 0, SH4A_PCIEPCTLR); > > - return PCIBIOS_SUCCESSFUL; > + return 0; > } > > static int sh7786_pcie_read(struct pci_bus *bus, unsigned int devfn, > @@ -101,7 +101,7 @@ static int sh7786_pcie_read(struct pci_bus *bus, unsigned int devfn, > raw_spin_lock_irqsave(&pci_config_lock, flags); > ret = sh7786_pcie_config_access(PCI_ACCESS_READ, bus, > devfn, where, &data); > - if (ret != PCIBIOS_SUCCESSFUL) { > + if (ret != 0) { > *val = 0xffffffff; > goto out; > } > @@ -137,7 +137,7 @@ static int sh7786_pcie_write(struct pci_bus *bus, unsigned int devfn, > raw_spin_lock_irqsave(&pci_config_lock, flags); > ret = sh7786_pcie_config_access(PCI_ACCESS_READ, bus, > devfn, where, &data); > - if (ret != PCIBIOS_SUCCESSFUL) > + if (ret != 0) > goto out; > > dev_dbg(&bus->dev, "pcie-config-write: bus=%3d devfn=0x%04x " > diff --git a/arch/sh/drivers/pci/pci.c b/arch/sh/drivers/pci/pci.c > index c7784e156964..77130f035fdd 100644 > --- a/arch/sh/drivers/pci/pci.c > +++ b/arch/sh/drivers/pci/pci.c > @@ -204,7 +204,7 @@ pcibios_bus_report_status_early(struct pci_channel *hose, > continue; > ret = early_read_config_word(hose, top_bus, current_bus, > pci_devfn, PCI_STATUS, &status); > - if (ret != PCIBIOS_SUCCESSFUL) > + if (ret != 0) > continue; > if (status == 0xffff) > continue; > -- > 2.18.2 Acked-by: Rich Felker (for both this and the following one in the series)