OpenCloudOS-Kernel/drivers/hid/amd-sfh-hid
Basavaraj Natikar 1c3b4c9047 HID: amd_sfh: Switch to device-managed dmam_alloc_coherent()
commit c56f9ecb7fb6a3a90079c19eb4c8daf3bbf514b3 upstream.

Using the device-managed version allows to simplify clean-up in probe()
error path.

Additionally, this device-managed ensures proper cleanup, which helps to
resolve memory errors, page faults, btrfs going read-only, and btrfs
disk corruption.

Fixes: 4b2c53d93a ("SFH:Transport Driver to add support of AMD Sensor Fusion Hub (SFH)")
Tested-by: Chris Hixon <linux-kernel-bugs@hixontech.com>
Tested-by: Richard <hobbes1069@gmail.com>
Tested-by: Skyler <skpu@pm.me>
Reported-by: Chris Hixon <linux-kernel-bugs@hixontech.com>
Closes: https://lore.kernel.org/all/3b129b1f-8636-456a-80b4-0f6cce0eef63@hixontech.com/
Link: https://bugzilla.kernel.org/show_bug.cgi?id=219331
Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-10-17 15:24:33 +02:00
..
hid_descriptor HID: amd_sfh: Support for additional light sensor 2023-04-13 15:57:14 +02:00
sfh1_1 HID: amd_sfh: Handle "no sensors" in PM operations 2024-06-12 11:11:50 +02:00
Kconfig HID: stop drivers from selecting CONFIG_HID 2023-01-18 16:14:04 +01:00
Makefile HID: amd_sfh: Implement SFH1.1 functionality 2022-07-21 13:44:04 +02:00
amd_sfh_client.c HID: amd_sfh: Switch to device-managed dmam_alloc_coherent() 2024-10-17 15:24:33 +02:00
amd_sfh_common.h HID: amd_sfh: Implement SFH1.1 functionality 2022-07-21 13:44:04 +02:00
amd_sfh_hid.c HID: amd_sfh: free driver_data after destroying hid device 2024-09-12 11:11:39 +02:00
amd_sfh_hid.h HID: amd_sfh: Fix max supported HID devices 2023-04-25 10:58:28 +02:00
amd_sfh_pcie.c HID: amd_sfh: Avoid disabling the interrupt 2024-03-26 18:19:53 -04:00
amd_sfh_pcie.h HID: amd_sfh: Update HPD sensor structure elements 2024-03-26 18:19:52 -04:00