summaryrefslogtreecommitdiff
path: root/drivers/pci/controller/mobiveil/pcie-mobiveil.h
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2020-06-03 15:34:01 +0100
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2021-06-30 16:02:25 +0100
commita0ccb3b5994dd1a96a0a152d4bfaad3b90268b97 (patch)
tree16a66ff030ffb594c013fe4f4d589c8496ad38e0 /drivers/pci/controller/mobiveil/pcie-mobiveil.h
parent62fb9874f5da54fdb243003b386128037319b219 (diff)
PCI: mobiveil: fix 5.7 merge errors
Fix errors in the mobiveil version that was merged in 5.7 kernels: - the type of "root_bus_nr" was changed from "u8" to "char", but it is compared to values that are typed as "unsigned char". Depending whether a platform has "char" as signed or unsigned, this may not do what is intended. - ls_pcie_g4_reinit_hw() now returns a success/failure value, and follows the Linux style of return 0 on success and -ve errno on failure. However, the testing in ls_pcie_g4_reset() expects 0 on failure, so we won't call ls_pcie_g4_enable_interrupt() except if ls_pcie_g4_reinit_hw() has failed - which is likely not what was intended. Fixes: d29ad70a813b ("PCI: mobiveil: Add PCIe Gen4 RC driver for Layerscape SoCs") Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'drivers/pci/controller/mobiveil/pcie-mobiveil.h')
0 files changed, 0 insertions, 0 deletions