lkml.org 
[lkml]   [2020]   [Nov]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v1 22/30] memory: tegra20-emc: Support Tegra SoC device state syncing
    Date
    Sync driver state using the Tegra SoC device state syncing API, telling
    to regulators voltage coupler that EMC state is ready for DVFS. This is
    required for enabling system-wide DVFS on Tegra20.

    Tested-by: Nicolas Chauvet <kwizart@gmail.com>
    Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
    ---
    drivers/memory/tegra/tegra20-emc.c | 8 +++++++-
    1 file changed, 7 insertions(+), 1 deletion(-)

    diff --git a/drivers/memory/tegra/tegra20-emc.c b/drivers/memory/tegra/tegra20-emc.c
    index 9946b957bb01..b1b0a2439689 100644
    --- a/drivers/memory/tegra/tegra20-emc.c
    +++ b/drivers/memory/tegra/tegra20-emc.c
    @@ -1129,6 +1129,12 @@ static int tegra_emc_probe(struct platform_device *pdev)
    return err;
    }

    +static void tegra_emc_sync_state(struct device *dev)
    +{
    + tegra_soc_device_sync_state(dev);
    + icc_sync_state(dev);
    +}
    +
    static const struct of_device_id tegra_emc_of_match[] = {
    { .compatible = "nvidia,tegra20-emc", },
    {},
    @@ -1141,7 +1147,7 @@ static struct platform_driver tegra_emc_driver = {
    .name = "tegra20-emc",
    .of_match_table = tegra_emc_of_match,
    .suppress_bind_attrs = true,
    - .sync_state = icc_sync_state,
    + .sync_state = tegra_emc_sync_state,
    },
    };
    module_platform_driver(tegra_emc_driver);
    --
    2.27.0
    \
     
     \ /
      Last update: 2020-11-05 00:48    [W:4.863 / U:0.188 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site