mirror-linux/drivers/accel
Quentin Schulz 57d8ae1569 accel/rocket: factor out code with find_core_for_dev in rocket_remove
There already is a function to return the offset of the core for a given
struct device, so let's reuse that function instead of reimplementing
the same logic.

There's one change in behavior when a struct device is passed which
doesn't match any core's. Before, we would continue through
rocket_remove() but now we exit early, to match what other callers of
find_core_for_dev() (rocket_device_runtime_resume/suspend()) are doing.
This however should never happen. Aside from that, no intended change in
behavior.

Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Tomeu Vizoso <tomeu@tomeuvizoso.net>
Signed-off-by: Tomeu Vizoso <tomeu@tomeuvizoso.net>
Link: https://patch.msgid.link/20251215-rocket-reuse-find-core-v1-1-be86a1d2734c@cherry.de
2026-01-10 17:49:14 +01:00
..
amdxdna accel/amdxdna: Update firmware version check for latest firmware 2026-01-08 09:48:43 -08:00
ethosu drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
habanalabs accel/habanalabs: add Infineon version check 2025-09-25 09:14:45 +03:00
ivpu accel/ivpu: Implement warm boot flow for NPU6 and unify boot handling 2026-01-08 11:49:37 +01:00
qaic accel/qaic: Add qaic_ prefix to irq_polling_work 2025-11-07 11:27:46 -07:00
rocket accel/rocket: factor out code with find_core_for_dev in rocket_remove 2026-01-10 17:49:14 +01:00
Kconfig accel: Add Arm Ethos-U NPU driver 2025-10-24 15:07:39 -05:00
Makefile accel: Add Arm Ethos-U NPU driver 2025-10-24 15:07:39 -05:00
drm_accel.c drm: move drm based debugfs funcs to drm_debugfs.c 2025-07-04 15:58:22 +02:00