linux-yocto/drivers/acpi
Anup Patel 25acf99edb ACPI: RISC-V: Fix FFH_CPPC_CSR error handling
commit 5b3706597b90a7b6c9ae148edd07a43531dcd49e upstream.

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: 30f3ffbee8 ("ACPI: RISC-V: Add CPPC driver")
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Troy Mitchell <troy.mitchell@linux.dev>
Reviewed-by: Sunil V L <sunilvl@ventanamicro.com>
Reviewed-by: Nutty Liu <nutty.liu@hotmail.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20250818143600.894385-2-apatel@ventanamicro.com
Signed-off-by: Paul Walmsley <pjw@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-09-09 19:02:39 +02:00
..
acpica ACPICA: Refuse to evaluate a method if arguments are missing 2025-06-18 21:12:13 +02:00
apei ACPI: APEI: EINJ: Fix resource leak by remove callback in .exit.text 2025-08-28 16:34:32 +02:00
arm64 ACPI/IORT: Fix memory leak in iort_rmr_alloc_sids() 2025-09-09 19:02:28 +02:00
dptf ACPI: DPTF: Support Panther Lake 2024-12-10 20:01:38 +01:00
nfit acpi: nfit: fix narrowing conversion in acpi_nfit_ctl 2025-03-03 08:03:43 -06:00
numa mm: numa_memblks: introduce numa_add_reserved_memblk 2025-05-22 14:55:36 -07:00
pmic
riscv ACPI: RISC-V: Fix FFH_CPPC_CSR error handling 2025-09-09 19:02:39 +02:00
x86 ACPI: x86: Extend Lenovo Yoga Tab 3 quirk with skip GPIO event-handlers 2025-03-27 20:41:19 +01:00
ac.c ACPI: Switch back to struct platform_driver::remove() 2024-11-12 21:30:30 +01:00
acpi_adxl.c
acpi_apd.c ACPI: APD: Use strscpy() instead of strcpy() 2024-11-05 21:35:35 +01:00
acpi_configfs.c
acpi_dbg.c
acpi_extlog.c x86/msr: Add explicit includes of <asm/msr.h> 2025-05-02 10:23:47 +02:00
acpi_ffh.c
acpi_fpdt.c
acpi_ipmi.c
acpi_lpat.c
acpi_lpit.c x86/msr: Rename 'rdmsrl_safe()' to 'rdmsrq_safe()' 2025-04-10 11:58:38 +02:00
acpi_memhotplug.c
acpi_mrrm.c ACPI: MRRM: Silence error code static checker warning 2025-05-27 15:22:56 +02:00
acpi_pad.c ACPI: PAD: Update arguments of mwait_idle_with_hints() 2025-06-10 20:47:56 +02:00
acpi_pcc.c ACPI: PCC: Simplify PCC shared memory region handling 2025-04-30 21:51:23 +02:00
acpi_platform.c
acpi_pnp.c More ACPI updates for 6.15-rc1 2025-04-02 15:16:30 -07:00
acpi_processor.c ACPI: processor: fix acpi_object initialization 2025-08-20 18:41:00 +02:00
acpi_tad.c ACPI: Switch back to struct platform_driver::remove() 2024-11-12 21:30:30 +01:00
acpi_video.c ACPI: video: Handle fetching EDID as ACPI_TYPE_PACKAGE 2025-03-31 17:02:14 +02:00
acpi_watchdog.c
battery.c Revert "ACPI: battery: negate current when discharging" 2025-07-03 13:00:11 +02:00
bgrt.c ACPI: BGRT: Constify 'struct bin_attribute' 2024-12-10 19:34:41 +01:00
bus.c ACPI: bus: Bail out if acpi_kobj registration fails 2025-05-23 16:54:52 +02:00
button.c ACPI: button: Only send KEY_POWER for ACPI_BUTTON_NOTIFY_STATUS 2025-04-07 19:52:17 +02:00
container.c
cppc_acpi.c ACPI: CPPC: Fix NULL pointer dereference when nosmp is used 2025-06-10 20:52:50 +02:00
debugfs.c
device_pm.c PM: sleep: Use DPM_FLAG_SMART_SUSPEND conditionally 2025-02-19 13:22:12 +01:00
device_sysfs.c
dock.c
ec_sys.c
ec.c ACPI: EC: Relax sanity check of the ECDT ID string 2025-08-20 18:40:49 +02:00
event.c ACPI: event: Use strscpy() instead of strcpy() 2024-11-05 21:35:35 +01:00
evged.c ACPI: Switch back to struct platform_driver::remove() 2024-11-12 21:30:30 +01:00
fan_attr.c ACPI: fan: Add fan speed reporting for fans with only _FST 2025-02-25 21:48:51 +01:00
fan_core.c ACPI: fan: Add fan speed reporting for fans with only _FST 2025-02-25 21:48:51 +01:00
fan_hwmon.c ACPI: fan: Add fan speed reporting for fans with only _FST 2025-02-25 21:48:51 +01:00
fan.h ACPI: fan: Add fan speed reporting for fans with only _FST 2025-02-25 21:48:51 +01:00
glue.c
hed.c ACPI: HED: Always initialize before evged 2025-02-18 19:24:29 +01:00
internal.h ACPI: processor: Rescan "dead" SMT siblings during initialization 2025-06-07 14:23:22 +02:00
ioapic.c
irq.c ACPI: irq: Introduce acpi_get_gsi_dispatcher() 2025-05-23 16:30:55 +00:00
Kconfig ACPI: MRRM: Minimal parse of ACPI MRRM table 2025-05-12 15:43:16 +02:00
Makefile ACPI: MRRM: Minimal parse of ACPI MRRM table 2025-05-12 15:43:16 +02:00
mipi-disco-img.c ACPI: bus: change the prototype for acpi_get_physical_device_location 2024-12-19 20:59:35 +01:00
nhlt.c
nvs.c
osi.c ACPI: OSI: Stop advertising support for "3.0 _SCP Extensions" 2025-05-16 15:53:26 +02:00
osl.c ACPI: OSL: Use usleep_range() in acpi_os_sleep() 2024-12-10 19:45:27 +01:00
pci_irq.c xen/pvh: Setup gsi for passthrough device 2024-09-25 09:54:52 +02:00
pci_link.c ACPI: pci_link: Use strscpy() instead of strcpy() 2024-11-05 21:35:36 +01:00
pci_mcfg.c
pci_root.c ACPI: PCI: Constify fwnode_handle in acpi_pci_root_remap_iospace() 2025-05-09 20:47:26 +02:00
pci_slot.c
pfr_telemetry.c Merge branch 'acpi-misc' 2024-11-15 20:52:02 +01:00
pfr_update.c ACPI: pfr_update: Fix the driver update version check 2025-08-28 16:34:32 +02:00
platform_profile.c ACPI: platform_profile: Avoid initializing on non-ACPI platforms 2025-05-23 16:44:52 +02:00
power.c ACPI: power: Use str_on_off() helper function 2025-02-18 18:48:32 +01:00
pptt.c ACPI: PPTT: Fix processor subtable walk 2025-05-08 20:23:16 +02:00
prmt.c ACPI: PRM: Reduce unnecessary printing to avoid user confusion 2025-08-20 18:41:00 +02:00
proc.c
processor_core.c
processor_driver.c ACPI: processor: Rescan "dead" SMT siblings during initialization 2025-06-07 14:23:22 +02:00
processor_idle.c ACPI: processor: Rescan "dead" SMT siblings during initialization 2025-06-07 14:23:22 +02:00
processor_pdc.c
processor_perflib.c ACPI: processor: perflib: Move problematic pr->performance check 2025-08-20 18:40:49 +02:00
processor_thermal.c
processor_throttling.c x86/msr: Remove a superfluous inclusion of <asm/asm.h> 2025-05-18 08:39:09 +02:00
property.c ACPI: property: Fix return value for nval == 0 in acpi_data_prop_read() 2025-02-05 21:09:28 +01:00
reboot.c
resource.c ACPI: resource: Use IRQ override on MACHENIKE 16P 2025-06-10 20:58:37 +02:00
sbs.c ACPI: SBS: Use strscpy() instead of strcpy() 2024-11-05 21:35:36 +01:00
sbshc.c Merge branch 'acpi-misc' 2024-11-15 20:52:02 +01:00
sbshc.h
scan.c iommu: Get DT/ACPI parsing into the proper probe path 2025-03-11 14:05:43 +01:00
sleep.c
sleep.h
spcr.c
sysfs.c ACPI: sysfs: Constify 'struct bin_attribute' 2024-12-10 19:34:41 +01:00
tables.c ACPI: tables: Improve logging around acpi_initialize_tables() 2025-05-12 15:43:16 +02:00
thermal_lib.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
thermal.c ACPI: thermal: Execute _SCP before reading trip points 2025-05-16 15:53:26 +02:00
tiny-power-button.c
utils.c ACPI: bus: change the prototype for acpi_get_physical_device_location 2024-12-19 20:59:35 +01:00
video_detect.c ACPI: video: force native for Apple MacbookPro11,2 and Air7,2 2024-11-13 12:48:50 +01:00
viot.c ACPI: VIOT: Remove (explicitly) unused header 2025-05-12 15:43:16 +02:00
wakeup.c