10.03.2020 18:19, Thierry Reding пишет: > From: Joseph Lo <josephl@xxxxxxxxxx> > > The EMC clock needs to carefully coordinate with the EMC controller > programming to make sure external memory can be properly clocked. Do so > by hooking up the EMC clock with an EMC provider that will specify which > rates are supported by the EMC and provide a callback to use for setting > the clock rate at the EMC. > > Based on work by Peter De Schrijver <pdeschrijver@xxxxxxxxxx>. > > Signed-off-by: Joseph Lo <josephl@xxxxxxxxxx> > Signed-off-by: Thierry Reding <treding@xxxxxxxxxx> > --- > Changes in v5: > - major rework and cleanup ... > +#ifdef CONFIG_PM_SLEEP > +static int tegra210_emc_suspend(struct device *dev) The __maybe_unused attribute will be a bit cleaner than the #ifdef.