02.07.2021 02:27, Dmitry Osipenko пишет:
+static int __maybe_unused tegra_fuse_resume(struct device *dev)
+{
+ int err;
+
+ /*
+ * Critical for RAM re-repair operation, which must occur on resume
+ * from LP1 system suspend and as part of CCPLEX cluster switching.
+ */
+ if (fuse->soc->clk_suspend_on) {
+ err = pm_runtime_force_resume(dev);
+ if (err)
+ return err;
+ }
+
+ return 0;
+}
+
+static int __maybe_unused tegra_fuse_suspend(struct device *dev)
+{
+ int err;
+
+ if (fuse->soc->clk_suspend_on) {
+ err = pm_runtime_force_suspend(dev);
+ if (err)
+ return err;
+ }
I just noticed that something gone wrong with this patch, the condition
should have been inverted. I'll fix it in the next version.
I may also try to factor out these fuse and some other patches which
could become a 5.15 material.