Thread (40 messages) 40 messages, 8 authors, 2025-08-29

Re: [PATCH v2 09/10] PCI: aspeed: Add ASPEED PCIe RC driver

From: Markus Elfring <hidden>
Date: 2025-07-15 17:01:22
Also in: linux-aspeed, linux-devicetree, linux-gpio, linux-pci, lkml, openbmc

quoted hunk ↗ jump to hunk
+++ b/drivers/pci/controller/pcie-aspeed.c
@@ -0,0 +1,1137 @@
+static int aspeed_irq_msi_domain_alloc(struct irq_domain *domain,
+				       unsigned int virq, unsigned int nr_irqs,
+				       void *args)
+{
+	mutex_lock(&pcie->lock);
+
+	bit = bitmap_find_free_region(pcie->msi_irq_in_use, MAX_MSI_HOST_IRQS,
+				      get_count_order(nr_irqs));
+
+	mutex_unlock(&pcie->lock);
…

Under which circumstances would you become interested to apply a statement
like “guard(mutex)(&pcie->lock);”?
https://elixir.bootlin.com/linux/v6.16-rc6/source/include/linux/mutex.h#L225

Regards,
Markus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help