Skip to content

Commit 6e39ce4

Browse files
Wenyou Yangehristev
authored andcommitted
media: atmel-isc: Fix clock ID for clk_prepare/unprepare
Fix the clock ID to do the runtime pm should be ISC_ISPCK, instead of ISC_MCK in clk_prepare(), clk_unprepare() and isc_clk_is_enabled(). Signed-off-by: Wenyou Yang <wenyou.yang@microchip.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
1 parent 582da1b commit 6e39ce4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/media/platform/atmel/atmel-isc.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ static int isc_clk_prepare(struct clk_hw *hw)
598598
{
599599
struct isc_clk *isc_clk = to_isc_clk(hw);
600600

601-
if (isc_clk->id == ISC_MCK)
601+
if (isc_clk->id == ISC_ISPCK)
602602
pm_runtime_get_sync(isc_clk->dev);
603603

604604
return isc_wait_clk_stable(hw);
@@ -610,7 +610,7 @@ static void isc_clk_unprepare(struct clk_hw *hw)
610610

611611
isc_wait_clk_stable(hw);
612612

613-
if (isc_clk->id == ISC_MCK)
613+
if (isc_clk->id == ISC_ISPCK)
614614
pm_runtime_put_sync(isc_clk->dev);
615615
}
616616

@@ -657,12 +657,12 @@ static int isc_clk_is_enabled(struct clk_hw *hw)
657657
struct isc_clk *isc_clk = to_isc_clk(hw);
658658
u32 status;
659659

660-
if (isc_clk->id == ISC_MCK)
660+
if (isc_clk->id == ISC_ISPCK)
661661
pm_runtime_get_sync(isc_clk->dev);
662662

663663
regmap_read(isc_clk->regmap, ISC_CLKSR, &status);
664664

665-
if (isc_clk->id == ISC_MCK)
665+
if (isc_clk->id == ISC_ISPCK)
666666
pm_runtime_put_sync(isc_clk->dev);
667667

668668
return status & ISC_CLK(isc_clk->id) ? 1 : 0;

0 commit comments

Comments
 (0)