]> git.baikalelectronics.ru Git - kernel.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)
commitcb7f539e4c83ee1f0f04c07bca1c83db7ec2d404
tree12af4c31ba120e244005a9c7940a31dbe17e9b45
parent2a6e12581bdaef72b1010a74948f6126e1b068b8
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