Skip to contentSkip to conversation

drivers/pci: Add minor comment for maximum capability constant

PATCH In review Frediano Ziglio 2 participants 2 messages Jun 13, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/pci: Add minor comment for maximum capability constant

The comment is similar to extended capabilities in the function below.

---
 xen/drivers/pci/pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/drivers/pci/pci.c +1 -1
index acf4cebe42..e1ddde90eb 100644
@@ -11,7 +11,7 @@
 unsigned int pci_find_cap_offset(pci_sbdf_t sbdf, unsigned int cap)
 {
     u8 id;
-    int max_cap = 48;
+    int max_cap = 48; /* 192 bytes, minimum 4 bytes per capability */
     u8 pos = PCI_CAPABILITY_LIST;
     u16 status;
 
Signature · 1 line
2.43.0