[PW_SID:992024] Common csr_read_num() and csr_write_num() for RISC-V - #782
[PW_SID:992024] Common csr_read_num() and csr_write_num() for RISC-V#782linux-riscv-bot wants to merge 2 commits into
Conversation
The cppc_ffh_csr_read() and cppc_ffh_csr_write() returns Linux error code in "data->ret.error" so cpc_read_ffh() and cpc_write_ffh() must not use sbi_err_map_linux_errno() for FFH_CPPC_CSR. Fixes: 30f3ffb ("ACPI: RISC-V: Add CPPC driver") Signed-off-by: Anup Patel <apatel@ventanamicro.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
In RISC-V, there is no CSR read/write instruction which takes CSR number via register so add common csr_read_num() and csr_write_num() functions which allow accessing certain CSRs by passing CSR number as parameter. These common functions will be first used by the ACPI CPPC driver and RISC-V PMU driver. Signed-off-by: Anup Patel <apatel@ventanamicro.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "[1/2] ACPI: RISC-V: Fix FFH_CPPC_CSR error handling" |
|
Patch 1: "[1/2] ACPI: RISC-V: Fix FFH_CPPC_CSR error handling" |
|
Patch 1: "[1/2] ACPI: RISC-V: Fix FFH_CPPC_CSR error handling" |
|
Patch 1: "[1/2] ACPI: RISC-V: Fix FFH_CPPC_CSR error handling" |
|
Patch 1: "[1/2] ACPI: RISC-V: Fix FFH_CPPC_CSR error handling" |
|
Patch 1: "[1/2] ACPI: RISC-V: Fix FFH_CPPC_CSR error handling" |
|
Patch 1: "[1/2] ACPI: RISC-V: Fix FFH_CPPC_CSR error handling" |
|
Patch 1: "[1/2] ACPI: RISC-V: Fix FFH_CPPC_CSR error handling" |
|
Patch 1: "[1/2] ACPI: RISC-V: Fix FFH_CPPC_CSR error handling" |
|
Patch 1: "[1/2] ACPI: RISC-V: Fix FFH_CPPC_CSR error handling" |
|
Patch 1: "[1/2] ACPI: RISC-V: Fix FFH_CPPC_CSR error handling" |
|
Patch 1: "[1/2] ACPI: RISC-V: Fix FFH_CPPC_CSR error handling" |
|
Patch 2: "[2/2] RISC-V: Add common csr_read_num() and csr_write_num() functions" |
|
Patch 2: "[2/2] RISC-V: Add common csr_read_num() and csr_write_num() functions" |
|
Patch 2: "[2/2] RISC-V: Add common csr_read_num() and csr_write_num() functions" |
|
Patch 2: "[2/2] RISC-V: Add common csr_read_num() and csr_write_num() functions" |
|
Patch 2: "[2/2] RISC-V: Add common csr_read_num() and csr_write_num() functions" |
|
Patch 2: "[2/2] RISC-V: Add common csr_read_num() and csr_write_num() functions" |
|
Patch 2: "[2/2] RISC-V: Add common csr_read_num() and csr_write_num() functions" |
|
Patch 2: "[2/2] RISC-V: Add common csr_read_num() and csr_write_num() functions" |
|
Patch 2: "[2/2] RISC-V: Add common csr_read_num() and csr_write_num() functions" |
|
Patch 2: "[2/2] RISC-V: Add common csr_read_num() and csr_write_num() functions" |
|
Patch 2: "[2/2] RISC-V: Add common csr_read_num() and csr_write_num() functions" |
|
Patch 2: "[2/2] RISC-V: Add common csr_read_num() and csr_write_num() functions" |
PR for series 992024 applied to workflow__riscv__fixes
Name: Common csr_read_num() and csr_write_num() for RISC-V
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=992024
Version: 1