mirror-linux/drivers/accel/rocket
Dan Carpenter 09e6d39cc8 accel/rocket: Fix some error checking in rocket_core_init()
The problem is that pm_runtime_get_sync() can return 1 on success so
checking for zero doesn't work.  Use the pm_runtime_resume_and_get()
function instead.  The pm_runtime_resume_and_get() function does
additional cleanup as well so that's a bonus as well.

Fixes: 0810d5ad88 ("accel/rocket: Add job submission IOCTL")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Tomeu Vizoso <tomeu@tomeuvizoso.net>
Link: https://lore.kernel.org/r/aKcRW6fsRP_o5C_y@stanley.mountain
2025-09-01 12:11:28 +02:00
..
Kconfig accel/rocket: Depend on DRM_ACCEL not just DRM 2025-09-01 12:11:28 +02:00
Makefile accel/rocket: Add job submission IOCTL 2025-07-25 10:02:27 -06:00
rocket_core.c accel/rocket: Fix some error checking in rocket_core_init() 2025-09-01 12:11:28 +02:00
rocket_core.h accel/rocket: Add job submission IOCTL 2025-07-25 10:02:27 -06:00
rocket_device.c accel/rocket: Add job submission IOCTL 2025-07-25 10:02:27 -06:00
rocket_device.h accel/rocket: Add job submission IOCTL 2025-07-25 10:02:27 -06:00
rocket_drv.c accel/rocket: Add IOCTLs for synchronizing memory accesses 2025-07-25 10:04:46 -06:00
rocket_drv.h accel/rocket: Fix undeclared const rocket_pm_ops 2025-08-03 17:40:23 +02:00
rocket_gem.c accel/rocket: Add IOCTLs for synchronizing memory accesses 2025-07-25 10:04:46 -06:00
rocket_gem.h accel/rocket: Add IOCTLs for synchronizing memory accesses 2025-07-25 10:04:46 -06:00
rocket_job.c accel/rocket: Check the correct DMA irq status to warn about 2025-09-01 12:11:28 +02:00
rocket_job.h accel/rocket: Add job submission IOCTL 2025-07-25 10:02:27 -06:00
rocket_registers.h