summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNiklas Cassel <cassel@kernel.org>2026-03-12 16:02:29 +0300
committerManivannan Sadhasivam <mani@kernel.org>2026-03-15 19:34:22 +0300
commit0834d6f4abd0ca35b5706d267a6e4b78303a95de (patch)
treea5e5a6e096e69e19d2aa913064ffe3d58948540e /include
parent0b74f7d72399d4c4422ed3d68ef28b3612f71e74 (diff)
downloadlinux-0834d6f4abd0ca35b5706d267a6e4b78303a95de.tar.xz
PCI: endpoint: Do not mark the BAR succeeding a 64-bit BAR as BAR_RESERVED
A BAR that can only be configured as a 64-bit BAR by an EPC driver is marked as such using the "only_64bit" flag. Currently, the documentation says that an EPC driver should explicitly mark the BAR succeeding an "only_64bit" BAR as BAR_RESERVED. However, a 64-bit BAR will always take up two BARs. It is thus redundant to mark both BARs. pci_epc_get_next_free_bar() already skips the BAR succeeding a "only_64bit" BAR, regardless if the succeeding BAR is marked as BAR_RESERVED or not. Thus, drop the BAR_RESERVED for a BAR succeeding a "only_64bit" BAR. No functional changes. Suggested-by: Manivannan Sadhasivam <mani@kernel.org> Signed-off-by: Niklas Cassel <cassel@kernel.org> Signed-off-by: Manivannan Sadhasivam <mani@kernel.org> Link: https://patch.msgid.link/20260312130229.2282001-13-cassel@kernel.org
Diffstat (limited to 'include')
-rw-r--r--include/linux/pci-epc.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/pci-epc.h b/include/linux/pci-epc.h
index c021c7af175f..c981ea7d52c0 100644
--- a/include/linux/pci-epc.h
+++ b/include/linux/pci-epc.h
@@ -206,8 +206,7 @@ enum pci_epc_bar_type {
* @fixed_size: the fixed size, only applicable if type is BAR_FIXED_MASK.
* @only_64bit: if true, an EPF driver is not allowed to choose if this BAR
* should be configured as 32-bit or 64-bit, the EPF driver must
- * configure this BAR as 64-bit. Additionally, the BAR succeeding
- * this BAR must be set to type BAR_RESERVED.
+ * configure this BAR as 64-bit.
*
* only_64bit should not be set on a BAR of type BAR_RESERVED.
* (If BARx is a 64-bit BAR that an EPF driver is not allowed to