Commit d60ed85
PCI: Fix pci_slot_lock () device locking
[ Upstream commit 1f5e57c ]
Like pci_bus_lock(), pci_slot_lock() needs to lock the bridge device to
prevent warnings like:
pcieport 0000:e2:05.0: unlocked secondary bus reset via: pciehp_reset_slot+0x55/0xa0
Take and release the lock for the bridge providing the slot for the
lock/trylock and unlock routines.
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Link: https://patch.msgid.link/20260130165953.751063-3-kbusch@meta.com
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent cad253d commit d60ed85
1 file changed
+17
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5438 | 5438 | | |
5439 | 5439 | | |
5440 | 5440 | | |
5441 | | - | |
| 5441 | + | |
5442 | 5442 | | |
5443 | | - | |
5444 | | - | |
| 5443 | + | |
5445 | 5444 | | |
5446 | 5445 | | |
5447 | 5446 | | |
| |||
5458 | 5457 | | |
5459 | 5458 | | |
5460 | 5459 | | |
5461 | | - | |
| 5460 | + | |
| 5461 | + | |
| 5462 | + | |
| 5463 | + | |
5462 | 5464 | | |
5463 | 5465 | | |
5464 | 5466 | | |
| |||
5473 | 5475 | | |
5474 | 5476 | | |
5475 | 5477 | | |
5476 | | - | |
| 5478 | + | |
5477 | 5479 | | |
5478 | 5480 | | |
5479 | 5481 | | |
| |||
5483 | 5485 | | |
5484 | 5486 | | |
5485 | 5487 | | |
| 5488 | + | |
| 5489 | + | |
| 5490 | + | |
5486 | 5491 | | |
5487 | 5492 | | |
5488 | 5493 | | |
5489 | 5494 | | |
5490 | 5495 | | |
5491 | | - | |
| 5496 | + | |
| 5497 | + | |
| 5498 | + | |
| 5499 | + | |
5492 | 5500 | | |
5493 | 5501 | | |
5494 | 5502 | | |
| |||
5513 | 5521 | | |
5514 | 5522 | | |
5515 | 5523 | | |
| 5524 | + | |
| 5525 | + | |
| 5526 | + | |
5516 | 5527 | | |
5517 | 5528 | | |
5518 | 5529 | | |
| |||
0 commit comments