Re: [PATCH v2 13/14] soc/tegra: pmc: Add core power domain

From: Dmitry Osipenko
Date: Mon May 24 2021 - 16:25:14 EST


24.05.2021 20:04, Ulf Hansson пишет:
>> +static void tegra_pmc_sync_state(struct device *dev)
>> +{
>> + int err;
>> +
>> + pmc->core_domain_state_synced = true;
>> +
>> + /* this is a no-op if core regulator isn't used */
>> + mutex_lock(&pmc->powergates_lock);
>> + err = dev_pm_opp_sync_regulators(dev);
>> + mutex_unlock(&pmc->powergates_lock);
>> +
>> + if (err)
>> + dev_err(dev, "failed to sync regulators: %d\n", err);
>> +}
>> +
> Nitpick.
>
> Would you mind splitting the "sync_state" thingy out into a separate
> patch on top of $subject patch?
>
> I think it would be nice, especially since it shares a function via
> include/soc/tegra/common.h - that would make it clear to what part
> that belongs to.
>

I'll split it in v3. Thank you for the review.