RE: [PATCH 2/2] DSPBRIDGE: Set VDD1 OPP1 while MPU initiated OFF mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From: Ameya Palande [mailto:ameya.palande@xxxxxxxxx]
>Subject: [PATCH 2/2] DSPBRIDGE: Set VDD1 OPP1 while MPU initiated OFF mode
>
>Signed-off-by: Ameya Palande <ameya.palande@xxxxxxxxx>

Acked-by: Omar Ramirez Luna <omar.ramirez@xxxxxx>

>---
> drivers/dsp/bridge/wmd/tiomap3430_pwr.c |   15 ++++++++++++++-
> 1 files changed, 14 insertions(+), 1 deletions(-)
>
>diff --git a/drivers/dsp/bridge/wmd/tiomap3430_pwr.c b/drivers/dsp/bridge/wmd/tiomap3430_pwr.c
>index 7aa58d1..dfac5b6 100644
>--- a/drivers/dsp/bridge/wmd/tiomap3430_pwr.c
>+++ b/drivers/dsp/bridge/wmd/tiomap3430_pwr.c
>@@ -292,8 +292,21 @@ DSP_STATUS SleepDSP(struct WMD_DEV_CONTEXT *pDevContext, IN u32 dwCmd,
>
> 		/* Turn off DSP Peripheral clocks  */
> 		status = DSP_PeripheralClocks_Disable(pDevContext, NULL);
>-		if (DSP_FAILED(status))
>+		if (DSP_FAILED(status)) {
> 			DBG_Trace(DBG_LEVEL7, "SleepDSP- FAILED\n");
>+			return status;
>+		}
>+#ifdef CONFIG_BRIDGE_DVFS
>+		else if (targetPwrState == HW_PWR_STATE_OFF) {
>+			struct dspbridge_platform_data *pdata =
>+				omap_dspbridge_dev->dev.platform_data;
>+			/*
>+			 * Set the OPP to low level before moving to OFF mode
>+			 */
>+			if (pdata->dsp_set_min_opp)
>+				(*pdata->dsp_set_min_opp)(VDD1_OPP1);
>+		}
>+#endif /* CONFIG_BRIDGE_DVFS */
> 	}
> #endif /* CONFIG_PM */
> 	return status;
>--
>1.6.2.4
>

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux