Thread (24 messages) 24 messages, 2 authors, 2021-06-01

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

From: Dmitry Osipenko <digetx@gmail.com>
Date: 2021-05-24 20:25:14
Also in: linux-devicetree, linux-pm, linux-tegra, lkml

24.05.2021 20:04, Ulf Hansson пишет:
quoted
+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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help