mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-28 18:54:44 -04:00
drm/amdgpu/vcn2.0: use generic set_power_gating_state helper
No need for an IP specific version. Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -94,8 +94,6 @@ static void vcn_v2_0_set_enc_ring_funcs(struct amdgpu_device *adev);
|
||||
static void vcn_v2_0_set_irq_funcs(struct amdgpu_device *adev);
|
||||
static int vcn_v2_0_set_pg_state(struct amdgpu_vcn_inst *vinst,
|
||||
enum amd_powergating_state state);
|
||||
static int vcn_v2_0_set_powergating_state(struct amdgpu_ip_block *ip_block,
|
||||
enum amd_powergating_state state);
|
||||
static int vcn_v2_0_pause_dpg_mode(struct amdgpu_vcn_inst *vinst,
|
||||
struct dpg_pause_state *new_state);
|
||||
static int vcn_v2_0_start_sriov(struct amdgpu_device *adev);
|
||||
@@ -1846,15 +1844,6 @@ static int vcn_v2_0_set_pg_state(struct amdgpu_vcn_inst *vinst,
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int vcn_v2_0_set_powergating_state(struct amdgpu_ip_block *ip_block,
|
||||
enum amd_powergating_state state)
|
||||
{
|
||||
struct amdgpu_device *adev = ip_block->adev;
|
||||
struct amdgpu_vcn_inst *vinst = adev->vcn.inst;
|
||||
|
||||
return vinst->set_pg_state(vinst, state);
|
||||
}
|
||||
|
||||
static int vcn_v2_0_start_mmsch(struct amdgpu_device *adev,
|
||||
struct amdgpu_mm_table *table)
|
||||
{
|
||||
@@ -2132,7 +2121,7 @@ static const struct amd_ip_funcs vcn_v2_0_ip_funcs = {
|
||||
.is_idle = vcn_v2_0_is_idle,
|
||||
.wait_for_idle = vcn_v2_0_wait_for_idle,
|
||||
.set_clockgating_state = vcn_v2_0_set_clockgating_state,
|
||||
.set_powergating_state = vcn_v2_0_set_powergating_state,
|
||||
.set_powergating_state = vcn_set_powergating_state,
|
||||
.dump_ip_state = vcn_v2_0_dump_ip_state,
|
||||
.print_ip_state = vcn_v2_0_print_ip_state,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user