]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
x86/PCI/ce4100: Properly lock accessor functions
authorThomas Gleixner <tglx@linutronix.de>
Thu, 16 Mar 2017 21:50:05 +0000 (22:50 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 28 Jun 2017 20:32:55 +0000 (22:32 +0200)
commitbb290fda879ffd1f6f6b0869bf7335554093f4bd
tree8a707ed0ba916117c07e25dbeb6ed98bc418d3a2
parentaae3e318d012e76211f34bb65754f3d4d2a8c93d
x86/PCI/ce4100: Properly lock accessor functions

x86 wants to get rid of the global pci_lock protecting the config space
accessors so ECAM mode can operate completely lockless, but the CE4100 PCI
code relies on that to protect the simulation registers.

Restructure the code so it uses the x86 specific pci_config_lock to
serialize the inner workings of the CE4100 PCI magic. That allows to remove
the global locking via pci_lock later.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Bjorn Helgaas <helgaas@kernel.org>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: linux-pci@vger.kernel.org
Link: http://lkml.kernel.org/r/20170316215057.126873574@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/pci/ce4100.c