Skip to content

Commit

Permalink
FROMLIST v4 media: qcom: camss: implement pm domain ops for VFE v4.1
Browse files Browse the repository at this point in the history
MSM8917 and MSM8953 have multiple VFE power-domains they
have to be powered on/off explicitly.

Reviewed-by: Bryan O'Donoghue <[email protected]>
Signed-off-by: Barnabás Czémán <[email protected]>
  • Loading branch information
barni2000 committed Nov 3, 2024
1 parent a0b9d91 commit 8d59ee2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions drivers/media/platform/qcom/camss/camss-vfe-4-1.c
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,10 @@ static irqreturn_t vfe_isr(int irq, void *dev)
*/
static void vfe_4_1_pm_domain_off(struct vfe_device *vfe)
{
/* nop */
if (!vfe->res->has_pd)
return;

vfe_pm_domain_off(vfe);
}

/*
Expand All @@ -947,7 +950,10 @@ static void vfe_4_1_pm_domain_off(struct vfe_device *vfe)
*/
static int vfe_4_1_pm_domain_on(struct vfe_device *vfe)
{
return 0;
if (!vfe->res->has_pd)
return 0;

return vfe_pm_domain_on(vfe);
}

static const struct vfe_hw_ops_gen1 vfe_ops_gen1_4_1 = {
Expand Down

0 comments on commit 8d59ee2

Please sign in to comment.