PCI: endpoint: Improve reference in pci_epc_bar_size_to_rebar_cap() comment
Subsystems (2)
PATCH 1/1 PCI: endpoint: Improve reference in pci_epc_bar_size_to_rebar_cap() comment
Improve the reference pci_epc_bar_size_to_rebar_cap() comment to include a specific PCIe spec version, and a specific section in that PCIe spec.
Suggested-by Bjorn Helgaas <[email protected]>
Signed-off-by Niklas Cassel <[email protected]>
---
Feel free to squash with original commit.
drivers/pci/endpoint/pci-epc-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/endpoint/pci-epc-core.c +1 -1
@@ -649,7 +649,7 @@ EXPORT_SYMBOL_GPL(pci_epc_set_bar);int pci_epc_bar_size_to_rebar_cap (size_t size,u32 *cap) {/* -* According to PCIe base spec, min size for a resizable BAR is 1 MB, +* As per PCIe r6.0, sec 7.8.6.2, min size for a resizable BAR is 1 MB, * thus disallow a requested BAR size smaller than 1 MB. * Disallow a requested BAR size larger than 128 TB. */
Signature · 1 line
2.48.1
Quoted 7 lines · Niklas Cassel
Improve the reference
pci_epc_bar_size_to_rebar_cap()comment to include a specific PCIe spec version, and a specific section in that PCIe spec.Suggested-by Bjorn Helgaas <[email protected]>Signed-off-by Niklas Cassel <[email protected]>---
Feel free to squash with original commit.
Done, thanks!
- Mani
Quoted 20 lines
drivers/pci/endpoint/pci-epc-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/pci/endpoint/pci-epc-core.c +1
-1@@ -649,7 +649,7 @@ EXPORT_SYMBOL_GPL(pci_epc_set_bar);int pci_epc_bar_size_to_rebar_cap (size_t size,u32 *cap) {/* -* According to PCIe base spec, min size for a resizable BAR is 1 MB, +* As per PCIe r6.0, sec 7.8.6.2, min size for a resizable BAR is 1 MB, * thus disallow a requested BAR size smaller than 1 MB. * Disallow a requested BAR size larger than 128 TB. */ Signature · 1 line
2.48.1
Signature · 1 line
மணிவண்ணன் சதாசிவம்