diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2020-06-03 15:34:01 +0100 |
---|---|---|
committer | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2022-04-02 10:41:14 +0100 |
commit | 0a901afa5052bc6bba850738069c2c1e5c4d6a96 (patch) | |
tree | 923e388eaccd418d9de824c85fc54b41bfef9f21 /crypto | |
parent | f443e374ae131c168a065ea1748feac6b2e76613 (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_g4_pcie_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_ig4_pcie_enable_interrupt() except
if ls_g4_pcie_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 'crypto')
0 files changed, 0 insertions, 0 deletions