<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/arch/mips/include/asm/pci.h, branch linux-4.16.y</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=linux-4.16.y</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=linux-4.16.y'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2017-11-08T00:38:48+00:00</updated>
<entry>
<title>PCI: Remove redundant pci_dev, pci_bus, resource declarations</title>
<updated>2017-11-08T00:38:48+00:00</updated>
<author>
<name>Bjorn Helgaas</name>
<email>bhelgaas@google.com</email>
</author>
<published>2017-10-04T20:15:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=be2d877aaa043d23c0522fd3c7491b8ef7b631fa'/>
<id>urn:sha1:be2d877aaa043d23c0522fd3c7491b8ef7b631fa</id>
<content type='text'>
&lt;linux/pci.h&gt; defines struct pci_bus and struct pci_dev and includes the
struct resource definition before including &lt;asm/pci.h&gt;.  Nobody includes
&lt;asm/pci.h&gt; directly, so they don't need their own declarations.

Remove the redundant struct pci_dev, pci_bus, resource declarations.

Signed-off-by: Bjorn Helgaas &lt;bhelgaas@google.com&gt;
Reviewed-by: Ingo Molnar &lt;mingo@kernel.org&gt;
Acked-by: Jesper Nilsson &lt;jesper.nilsson@axis.com&gt;	# CRIS
Acked-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;		# MIPS</content>
</entry>
<entry>
<title>PCI: Remove redundant pcibios_set_master() declarations</title>
<updated>2017-11-08T00:38:47+00:00</updated>
<author>
<name>Bjorn Helgaas</name>
<email>bhelgaas@google.com</email>
</author>
<published>2017-09-28T22:02:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=137ed9f0ee20b72e03492f8f0358cb19f74a89c4'/>
<id>urn:sha1:137ed9f0ee20b72e03492f8f0358cb19f74a89c4</id>
<content type='text'>
All users of pcibios_set_master() include &lt;linux/pci.h&gt;, which already has
a declaration.  Remove the unnecessary declarations from the &lt;asm/pci.h&gt;
files.

Signed-off-by: Bjorn Helgaas &lt;bhelgaas@google.com&gt;
Reviewed-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Reviewed-by: Ingo Molnar &lt;mingo@kernel.org&gt;
Acked-by: Jesper Nilsson &lt;jesper.nilsson@axis.com&gt; 	# CRIS
Acked-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;		# MIPS</content>
</entry>
<entry>
<title>MIPS: PCI: Remove unused busn_offset</title>
<updated>2017-05-18T20:39:19+00:00</updated>
<author>
<name>Bjorn Helgaas</name>
<email>bhelgaas@google.com</email>
</author>
<published>2017-05-18T20:39:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=7ee214b540d9453af297cd19c43002018ed73fea'/>
<id>urn:sha1:7ee214b540d9453af297cd19c43002018ed73fea</id>
<content type='text'>
pci_add_resource_offset() is for host bridge windows where the bridge
translates CPU addresses to PCI bus addresses by adding an offset.  To my
knowledge, no host bridge translates bus numbers, so this is only useful
for MEM and IO windows.  In any event, host-&gt;busn_offset is never set to
anything other than zero, so pci_add_resource() is sufficient.

a2e50f53d535 ("MIPS: PCI: Add a hook for IORESOURCE_BUS in
pci_controller/bridge_controller") also added busn_resource itself.  This
is currently unused but may be used by future SGI IP27 fixes, so I left it
there.

Tested-by: Joshua Kinard &lt;kumba@gentoo.org&gt;	# SGI IP30 and IP27
Signed-off-by: Bjorn Helgaas &lt;bhelgaas@google.com&gt;
Acked-by: Joshua Kinard &lt;kumba@gentoo.org&gt;</content>
</entry>
<entry>
<title>MIPS: PCI: Use generic pci_mmap_resource_range()</title>
<updated>2017-04-20T13:47:47+00:00</updated>
<author>
<name>David Woodhouse</name>
<email>dwmw@amazon.co.uk</email>
</author>
<published>2017-04-12T12:26:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=35368f80403d32a993587c7f26cd3bcede3ed202'/>
<id>urn:sha1:35368f80403d32a993587c7f26cd3bcede3ed202</id>
<content type='text'>
Signed-off-by: David Woodhouse &lt;dwmw@amazon.co.uk&gt;
Signed-off-by: Bjorn Helgaas &lt;bhelgaas@google.com&gt;</content>
</entry>
<entry>
<title>PCI: Move multiple declarations of pci_mmap_page_range() to &lt;linux/pci.h&gt;</title>
<updated>2017-04-18T18:02:11+00:00</updated>
<author>
<name>David Woodhouse</name>
<email>dwmw@amazon.co.uk</email>
</author>
<published>2017-04-12T12:25:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=11df19546fe4a6135cdae62e96a1e25b3fabf6ea'/>
<id>urn:sha1:11df19546fe4a6135cdae62e96a1e25b3fabf6ea</id>
<content type='text'>
We can declare it &lt;linux/pci.h&gt; even on platforms where it isn't going to
be defined.  There's no need to have it littered through the various
&lt;asm/pci.h&gt; files.

Signed-off-by: David Woodhouse &lt;dwmw@amazon.co.uk&gt;
Signed-off-by: Bjorn Helgaas &lt;bhelgaas@google.com&gt;</content>
</entry>
<entry>
<title>MIPS: PCI: Introduce CONFIG_PCI_DRIVERS_LEGACY</title>
<updated>2016-10-06T16:00:05+00:00</updated>
<author>
<name>Paul Burton</name>
<email>paul.burton@imgtec.com</email>
</author>
<published>2016-10-05T17:18:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=c5611df968047fb0b38156497b4242730ef66108'/>
<id>urn:sha1:c5611df968047fb0b38156497b4242730ef66108</id>
<content type='text'>
Introduce 2 Kconfig symbols, CONFIG_PCI_DRIVERS_GENERIC &amp;
CONFIG_PCI_DRIVERS_LEGACY, which indicate whether the system should be
built to for PCI drivers using the MIPS-specific struct pci_controller
API (hereafter "legacy" drivers) or more generic drivers using only
functionality provided by the PCI core (hereafter "generic" drivers).

The Kconfig entries are created such that platforms have to select
CONFIG_PCI_DRIVERS_GENERIC if they wish to use it - that is, the default
is CONFIG_PCI_DRIVERS_LEGACY so that existing platforms need no
modification.

The functions declared in pci.h are rearranged with those provided only
by pci-legacy.c being guarded by an #ifdef CONFIG_PCI_DRIVERS_LEGACY to
ensure they are only used in configurations where they are implemented.

Signed-off-by: Paul Burton &lt;paul.burton@imgtec.com&gt;
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/14345/
Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
</content>
</entry>
<entry>
<title>MIPS: PCI: Inline pcibios_assign_all_busses</title>
<updated>2016-10-06T15:57:52+00:00</updated>
<author>
<name>Paul Burton</name>
<email>paul.burton@imgtec.com</email>
</author>
<published>2016-10-05T17:18:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=ab96b03144c5392b8c0c427cc37df34daa84c5d0'/>
<id>urn:sha1:ab96b03144c5392b8c0c427cc37df34daa84c5d0</id>
<content type='text'>
The MIPS implementation of pcibios_assign_all_busses trivially returns
1. Implement it as a static function in asm/pci.h such that the compiler
can inline it &amp; optimise out never-taken paths.

Signed-off-by: Paul Burton &lt;paul.burton@imgtec.com&gt;
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/14343/
Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
</content>
</entry>
<entry>
<title>MIPS: PCI: Support for CONFIG_PCI_DOMAINS_GENERIC</title>
<updated>2016-10-06T15:57:23+00:00</updated>
<author>
<name>Paul Burton</name>
<email>paul.burton@imgtec.com</email>
</author>
<published>2016-10-05T17:18:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=88555b481958083b1b928a4ba5c6e3bc606ce34b'/>
<id>urn:sha1:88555b481958083b1b928a4ba5c6e3bc606ce34b</id>
<content type='text'>
Introduce support for CONFIG_PCI_DOMAINS_GENERIC, allowing for platforms
to make use of generic PCI domains instead of the MIPS-specific
implementation. The set_pci_need_domain_info function is introduced to
abstract away the removed need_domain_info field in struct
pci_controller, and pcibios_scanbus is adjusted to use the pci_domain_nr
accessor instead of directly accessing the index field.

Signed-off-by: Paul Burton &lt;paul.burton@imgtec.com&gt;
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/14341/
Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
</content>
</entry>
<entry>
<title>MIPS: PCI: Use struct list_head lists</title>
<updated>2016-10-06T15:56:13+00:00</updated>
<author>
<name>Paul Burton</name>
<email>paul.burton@imgtec.com</email>
</author>
<published>2016-10-05T17:18:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=23dac14d058fcd7cb2b4e6389139ca065855afe7'/>
<id>urn:sha1:23dac14d058fcd7cb2b4e6389139ca065855afe7</id>
<content type='text'>
Rather than open-coding a linked list implementation, make use of the
one in linux/list.h.

Signed-off-by: Paul Burton &lt;paul.burton@imgtec.com&gt;
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/14340/
Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
</content>
</entry>
<entry>
<title>PCI: Unify pci_resource_to_user() declarations</title>
<updated>2016-06-17T19:43:34+00:00</updated>
<author>
<name>Bjorn Helgaas</name>
<email>bhelgaas@google.com</email>
</author>
<published>2016-06-17T19:43:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=8221a013528597edc18d371b22667e8eefca599b'/>
<id>urn:sha1:8221a013528597edc18d371b22667e8eefca599b</id>
<content type='text'>
Replace the pci_resource_to_user() declarations in each arch that defines
HAVE_ARCH_PCI_RESOURCE_TO_USER with a single one in linux/pci.h.

Change the MIPS static inline implementation to a non-inline version so the
static inline doesn't conflict with the new non-static linux/pci.h
declaration.

No functional change intended.

Signed-off-by: Bjorn Helgaas &lt;bhelgaas@google.com&gt;
</content>
</entry>
</feed>
