]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
PCI: endpoint: Replace spinlock with mutex
authorKishon Vijay Abraham I <kishon@ti.com>
Mon, 24 Feb 2020 09:53:35 +0000 (15:23 +0530)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 24 Feb 2020 10:07:52 +0000 (10:07 +0000)
commit3d3248dbd018502f654064c78efcd2e165ab3486
tree12af4c31ba120e244005a9c7940a31dbe17e9b45
parent5779dd0a7dbd71e82478fb0bf125cc6cd3c43266
PCI: endpoint: Replace spinlock with mutex

The pci_epc_ops is not intended to be invoked from interrupt context.
Hence replace spin_lock_irqsave and spin_unlock_irqrestore with
mutex_lock and mutex_unlock respectively.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/endpoint/pci-epc-core.c
include/linux/pci-epc.h