[PATCH v2 2/5] PCI: endpoint: Allow only_64bit on BAR_RESERVED
From: Manikanta Maddireddy
Date: Tue Mar 03 2026 - 02:23:44 EST
Remove the documentation that forbids setting only_64bit on a BAR of
type BAR_RESERVED.
When a reserved BAR is 64-bit by default, setting only_64bit is the
most accurate description. If we later add support to disable a
reserved BAR (e.g. disable_bar() for BARs that were never set via
set_bar()), the implementation will need to clear the adjacent BAR
(upper 32 bits) as well; having only_64bit set documents that
requirement.
Signed-off-by: Manikanta Maddireddy <mmaddireddy@xxxxxxxxxx>
---
v2: New patch in v2
include/linux/pci-epc.h | 5 -----
1 file changed, 5 deletions(-)
diff --git a/include/linux/pci-epc.h b/include/linux/pci-epc.h
index fb3f34829d2b..8ed000dbeca4 100644
--- a/include/linux/pci-epc.h
+++ b/include/linux/pci-epc.h
@@ -247,11 +247,6 @@ struct pci_epc_bar_rsvd_region {
* 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_64BIT_UPPER.
- *
- * 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
- * reprogram, then both BARx and BARx+1 must be set to type
- * BAR_RESERVED.)
* @nr_rsvd_regions: number of fixed subregions described for BAR_RESERVED
* @rsvd_regions: fixed subregions behind BAR_RESERVED
*/
--
2.34.1