summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorHans Zhang <18255117159@163.com>2026-03-14 00:55:22 +0800
committerManivannan Sadhasivam <mani@kernel.org>2026-03-27 00:01:31 +0530
commitc8b610341914cb62899e31b41f724b5c4831a645 (patch)
tree64f42cebde2fc201355cd23e8535b2677af5c4b7 /tools/lib/python
parent03f920936977b5133a0e57a7c9fdeb4e584eeb06 (diff)
PCI: of: Remove max-link-speed generation validation
The of_pci_get_max_link_speed() function currently validates the "max-link-speed" DT property to be in the range 1..4 (Gen1..Gen4). This imposes a maintenance burden because each new PCIe generation would require updating this validation. Remove the range check so the function returns the raw property value (or a negative error code if the property is missing or malformed). Since the callers are now validating the returned speed against the range they support, this check can now be safely removed. Removing the validation from this common function also allows future PCIe generations to be supported without modifying drivers/pci/of.c. Signed-off-by: Hans Zhang <18255117159@163.com> [mani: commit log and kernel doc fix] Signed-off-by: Manivannan Sadhasivam <mani@kernel.org> Link: https://patch.msgid.link/20260313165522.123518-6-18255117159@163.com
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions