drm/amd: Don't initialize ISP hardware without FW
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 18 Jun 2024 16:43:05 +0000 (11:43 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Jun 2024 21:34:40 +0000 (17:34 -0400)
commit15eb8573ad72a97b8f70e3c88b9bef6ddc861f77
tree8ec9010a41f3c0cee515f068e1545d458b2e1438
parent71fe4494847f03dda3932417769418c02431615c
drm/amd: Don't initialize ISP hardware without FW

Although designs may contain an ISP IP block, the camera might be a USB
camera. Because of this the ISP firmware is considered optional from
amdgpu.  However if the firmware doesn't get loaded the hardware should
not be initialized.

Adjust the return code for early init to ensure the IP block doesn't go
through the other init and fini sequences. Also decrease the message
about firmware load failure to debug so it's not as alarming to users.

Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Pratap Nirujogi <pratap.nirujogi@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c