summaryrefslogtreecommitdiff
path: root/drivers/of
diff options
context:
space:
mode:
authorAnup Patel <apatel@ventanamicro.com>2023-10-27 21:12:53 +0530
committerPalmer Dabbelt <palmer@rivosinc.com>2023-11-08 18:57:14 -0800
commitc4676f8dc1e12e68d6511f9ed89707fdad4c962c (patch)
tree3f2899688d4234d760604aed770ebbf300967e8b /drivers/of
parent0bb80ecc33a8fb5a682236443c1e740d5c917d1d (diff)
RISC-V: Don't fail in riscv_of_parent_hartid() for disabled HARTs
The riscv_of_processor_hartid() used by riscv_of_parent_hartid() fails for HARTs disabled in the DT. This results in the following warning thrown by the RISC-V INTC driver for the E-core on SiFive boards: [ 0.000000] riscv-intc: unable to find hart id for /cpus/cpu@0/interrupt-controller The riscv_of_parent_hartid() is only expected to read the hartid from the DT so we directly call of_get_cpu_hwid() instead of calling riscv_of_processor_hartid(). Fixes: ad635e723e17 ("riscv: cpu: Add 64bit hartid support on RV64") Signed-off-by: Anup Patel <apatel@ventanamicro.com> Reviewed-by: Atish Patra <atishp@rivosinc.com> Link: https://lore.kernel.org/r/20231027154254.355853-2-apatel@ventanamicro.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'drivers/of')
0 files changed, 0 insertions, 0 deletions