drm/amdgpu/smu: rework i2c adpater registration
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Jul 2020 19:21:33 +0000 (15:21 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 6 Aug 2020 20:50:23 +0000 (16:50 -0400)
commit95a2687687f832a7f8fa32bdfe42a530796b71a2
treead54774089f5fb93434cc4e5824c6235fbe9f248
parentd6a4e5e9fed072702a03f45584df7e74a8ba79ee
drm/amdgpu/smu: rework i2c adpater registration

The i2c init/fini functions just register the i2c adapter.
There is no need to call them during hw init/fini.  They only
need to be called once per driver init/fini.  The previous
behavior broke runtime pm because we unregistered the i2c
adapter during suspend.

Tested-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
drivers/gpu/drm/amd/powerplay/arcturus_ppt.c
drivers/gpu/drm/amd/powerplay/navi10_ppt.c
drivers/gpu/drm/amd/powerplay/sienna_cichlid_ppt.c