]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PCI: Pull PCI 'latency timer' setup up into the core
authorMyron Stowe <mstowe@redhat.com>
Fri, 28 Oct 2011 21:48:38 +0000 (15:48 -0600)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 13 Dec 2011 18:42:02 +0000 (10:42 -0800)
commit9f0612ff8938109f193826f3183041869849e2a3
treead1cb6f649d01dbad67e233d079978438d95bfc1
parentc10c4a5c576e392e5b06c8939c64c3c8c6021910
PCI: Pull PCI 'latency timer' setup up into the core

The 'latency timer' of PCI devices, both Type 0 and Type 1,
is setup in architecture-specific code [see: 'pcibios_set_master()'].
There are two approaches being taken by all the architectures - check
if the 'latency timer' is currently set between 16 and 255 and if not
bring it within bounds, or, do nothing (and then there is the
gratuitously different PA-RISC implementation).

There is nothing architecture-specific about PCI's 'latency timer' so
this patch pulls its setup functionality up into the PCI core by
creating a generic 'pcibios_set_master()' function using the '__weak'
attribute which can be used by all architectures as a default which,
if necessary, can then be over-ridden by architecture-specific code.

No functional change.

Signed-off-by: Myron Stowe <myron.stowe@redhat.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
12 files changed:
arch/blackfin/include/asm/pci.h
arch/frv/mb93090-mb00/pci-frv.c
arch/frv/mb93090-mb00/pci-frv.h
arch/h8300/include/asm/pci.h
arch/mips/pci/pci.c
arch/mn10300/unit-asb2305/pci-asb2305.c
arch/mn10300/unit-asb2305/pci-asb2305.h
arch/sh/drivers/pci/pci.c
arch/x86/include/asm/pci_x86.h
arch/x86/pci/i386.c
drivers/pci/pci.c
include/linux/pci.h