Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1281205

Re: [PATCH] parisc: Remove unused pcibios_init_bus()

Path csiph.com!au2pb.net!2.us.feeder.erje.net!feeder.erje.net!2.eu.feeder.erje.net!nntpspool01.opticnetworks.net!aioe.org!bofh.it!news.nic.it!robomod
From Helge Deller <deller@gmx.de>
Newsgroups linux.kernel
Subject Re: [PATCH] parisc: Remove unused pcibios_init_bus()
Date Tue, 01 Dec 2015 21:50:02 +0100
Message-ID <qB026-65N-21@gated-at.bofh.it> (permalink)
References <qAWhQ-3F3-21@gated-at.bofh.it>
X-Original-To Bjorn Helgaas <bhelgaas@google.com>, "James E.J. Bottomley" <jejb@parisc-linux.org>
X-Enigmail-Draft-Status N1110
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 7bit
X-Provags-ID V03:K0:okTbwbTj8pBdIezadi6LrGsnMuUPnq5APOaGriD20T2gYOgcOqR Bxqzf/8ndF+403e4RTQuff74owSUBT4F9yk/x+AO1+rYh0/0oQ0nte0J0q0ZLAq08FnJX6A 5ry82sg0xHof0Ug2OVV6FybVcTi3Fagwzzj85RbkCkymDemMMRCYiF3o9KcxvpT8nAlIHkk Hd11RZAvI6QIfqDp8pA8Q==
X-Ui-Out-Filterresults notjunk:1;V01:K0:+KF79DebKEg=:u0e8qWXJX1xRWSs6lvQ7OV Hw19pd/1IP9PrLIuJJdnYEmhv0Df4DNhWI1hHaSoaurRnt78quh3Fz5GjBG/PMUA7DZSbK4zT 8pg7lwFZvCOiY02MBEWX+v2Iyre923wlb2iEs9YdIum12shd3YmYUeLovQN77CKYQAF+UvyhP 1TbFfiTuRsUFzyKIDqrG30HcNcQAMbx6Z1h4YjOkOZODJXTNPKpv0e7n7rQuvUndIu9kLy+cI aH/cnt7zMFmLZvmapPr+d52/Xj+CUu2lvDyIFWiSaQ2GmvtpLW+NsEgbY78e10bmPdLxZcQHK 4ZOwutIoEM5iwcDlnFNmJVp4EooeQCGuCSIJ1XqLnWtg0vA35+GXbQCstu6AvymhrZw3AEFCd aC18xcHJ635RcKwu/dbtlVPR6t4nbPenYXjvx60I3f66/obfd7TpabmA9+TTfGCPuRLlmezm0 Pis26DGtmXh76r2Ci3dxgo7pcOXpAZK0dE93Ovva/5xH3sZCcIx8O2I+nByPn6ARPIjEa13DG z9cPahzo29+r6+3VEebTo+zEO2ArcmjS5kAmHwi8R//h8EosymvWtOEywHCBWGHg0EWY5PySV C8pCbeaC+vGI0Csr84jy2a0QjuTdOgGTfME8MH5tAE3CPa8+hZq1G/X9R+3YzMyhrmuS1+mI7 lrVyEW88sAR7cwQF/Sdz+KdsQEI6X5Z7mWOmvSv6AAJDWdfkGU8l2k8b5/l+iSV/C5yGdfkJM DzwcB6qpxD5MauHm7Xeeb1vXGKoo6fCxsWuEUXBFw4Ky2sn2K+kY0GxVJIliEZTVCBOoe7vFj 3SOUj9B
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 55
Organization linux.* mail to news gateway
X-Original-Cc linux-kernel@vger.kernel.org, linux-parisc@vger.kernel.org, Grant Grundler <grundler@parisc-linux.org>
X-Original-Date Tue, 1 Dec 2015 21:44:54 +0100
X-Original-Message-ID <565E06C6.3080707@gmx.de>
X-Original-References <20151201164147.18471.52359.stgit@bhelgaas-glaptop2.roam.corp.google.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1281205

Show key headers only | View raw


On 01.12.2015 17:41, Bjorn Helgaas wrote:
> There are no callers of pcibios_init_bus(), so remove it.

True, pcibios_init_bus() isn't called anywhere, so it should be removed.

But I wonder if we might need to initialize latency and parity for PCI-PCI
bridges somewhere else then?
In one of my machines I have a i960 based RAID controller which isn't working
yet (I think it's internally based on a PCI-PCI bridge), and maybe this
is the reason it doesn't work? I will need to test it (e.g. firmware doesn't
fully initializes PCI-PCI bridges, which is why this code was added once).

Helge
 
> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
> ---
>  arch/parisc/kernel/pci.c |   18 ------------------
>  1 file changed, 18 deletions(-)
> 
> diff --git a/arch/parisc/kernel/pci.c b/arch/parisc/kernel/pci.c
> index 64f2764..c99f3dd 100644
> --- a/arch/parisc/kernel/pci.c
> +++ b/arch/parisc/kernel/pci.c
> @@ -171,24 +171,6 @@ void pcibios_set_master(struct pci_dev *dev)
>  }
>  
>  
> -void __init pcibios_init_bus(struct pci_bus *bus)
> -{
> -	struct pci_dev *dev = bus->self;
> -	unsigned short bridge_ctl;
> -
> -	/* We deal only with pci controllers and pci-pci bridges. */
> -	if (!dev || (dev->class >> 8) != PCI_CLASS_BRIDGE_PCI)
> -		return;
> -
> -	/* PCI-PCI bridge - set the cache line and default latency
> -	   (32) for primary and secondary buses. */
> -	pci_write_config_byte(dev, PCI_SEC_LATENCY_TIMER, 32);
> -
> -	pci_read_config_word(dev, PCI_BRIDGE_CONTROL, &bridge_ctl);
> -	bridge_ctl |= PCI_BRIDGE_CTL_PARITY | PCI_BRIDGE_CTL_SERR;
> -	pci_write_config_word(dev, PCI_BRIDGE_CONTROL, bridge_ctl);
> -}
> -
>  /*
>   * pcibios align resources() is called every time generic PCI code
>   * wants to generate a new address. The process of looking for
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] parisc: Remove unused pcibios_init_bus() Bjorn Helgaas <bhelgaas@google.com> - 2015-12-01 17:50 +0100
  Re: [PATCH] parisc: Remove unused pcibios_init_bus() Helge Deller <deller@gmx.de> - 2015-12-01 21:50 +0100
    Re: [PATCH] parisc: Remove unused pcibios_init_bus() Grant Grundler <grantgrundler@gmail.com> - 2015-12-01 23:10 +0100
      Re: [PATCH] parisc: Remove unused pcibios_init_bus() Helge Deller <deller@gmx.de> - 2015-12-03 20:50 +0100

csiph-web