On Fri, Mar 19, 2021 at 02:22:57AM +0200, Dragos Rosioru (OSS) wrote: > From: Dragos Rosioru <dragos.rosi...@nxp.com> > > Added suspend/resume operations for PM support in the DCP driver. > After a suspend/resume cycle DCP would still be in a low-power mode > and have its clocks gated, thus requiring state to be saved beforehand: > - Control register value(DCP_CTRL) > - Channel control register value(DCP_CHANNELCTRL) > > Signed-off-by: Dragos Rosioru <dragos.rosi...@nxp.com> > --- > drivers/crypto/mxs-dcp.c | 76 > ++++++++++++++++++++++++++++++++++++++++++++++-- > 1 file changed, 74 insertions(+), 2 deletions(-) > > diff --git a/drivers/crypto/mxs-dcp.c b/drivers/crypto/mxs-dcp.c > index d6a7784..6748a4a 100644 > --- a/drivers/crypto/mxs-dcp.c > +++ b/drivers/crypto/mxs-dcp.c > @@ -23,6 +23,10 @@ > #include <crypto/internal/skcipher.h> > #include <crypto/scatterwalk.h> > > +#ifdef CONFIG_PM_SLEEP > +#include <linux/freezer.h> > +#endif
Please find a way to rework this patch so that it's not full of these ifdefs. Thanks, -- Email: Herbert Xu <herb...@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt