summaryrefslogtreecommitdiff
path: root/scripts/cleanpatch
diff options
context:
space:
mode:
authorMarek BehĂșn <[email protected]>2021-02-08 23:01:40 +0100
committerStefan Roese <[email protected]>2021-02-26 10:22:29 +0100
commit10eb2cc3442aa9a91c98f2fdda2a5b48de9bbc88 (patch)
treef81a7709dff1ed8fd638d0e7b5be0bec95255b53 /scripts/cleanpatch
parent26f7a76ef9139544ea053a7d806cddda330a57d9 (diff)
pci: pci_mvebu: refactor validation of addresses for config access
Refactor validation of bdf parameter in mvebu_pcie_read/write_config functions. We can simplify the code by putting the validation into separate function. Also there are always only two devices visible on local bus: * on slot configured by function mvebu_pcie_set_local_dev_nr() (by default this register is set to 0) there is a "Marvell Memory controller", which isn't useful in root complex mode, * on all other slots the real PCIe card connected to the PCIe slot. We can simplify the code even more by simply allowing access only to the real PCIe card. Signed-off-by: Marek BehĂșn <[email protected]> Cc: Stefan Roese <[email protected]> Cc: Phil Sutter <[email protected]> Cc: Mario Six <[email protected]> Cc: Baruch Siach <[email protected]> Reviewed-by: Stefan Roese <[email protected]>
Diffstat (limited to 'scripts/cleanpatch')
0 files changed, 0 insertions, 0 deletions