Hi Pavel, Thank you for review. > -----Original Message----- > From: cip-dev@lists.cip-project.org On Behalf Of Pavel Machek via > lists.cip-project.org > Sent: 05 January 2021 16:59 > To: Prabhakar Mahadev Lad > Cc: cip-dev@lists.cip-project.org; Nobuhiro Iwamatsu ; Pavel Machek > ; Biju Das > Subject: Re: [cip-dev] [PATCH v3 4.19.y-cip 16/17] spi: add Renesas RPC-IF driver > > Hi! > > > + > > +#ifdef CONFIG_PM_SLEEP > > +static int rpcif_spi_suspend(struct device *dev) > > +{ > > + struct spi_controller *ctlr = dev_get_drvdata(dev); > > + > > + return spi_controller_suspend(ctlr); > > +} > > + > > +static int rpcif_spi_resume(struct device *dev) > > +{ > > + struct spi_controller *ctlr = dev_get_drvdata(dev); > > + > > + return spi_controller_resume(ctlr); > > +} > > + > > +static SIMPLE_DEV_PM_OPS(rpcif_spi_pm_ops, rpcif_spi_suspend, rpcif_spi_resume); > > +#define DEV_PM_OPS (&rpcif_spi_pm_ops) > > +#else > > +#define DEV_PM_OPS NULL > > +#endif > > + > > +static struct platform_driver rpcif_spi_driver = { > > + .probe = rpcif_spi_probe, > > + .remove = rpcif_spi_remove, > > + .driver = { > > + .name = "rpc-if-spi", > > + .pm = DEV_PM_OPS, > > + }, > > +}; > > #ifdefs here could be reduced... > Agreed will do this change once we get the ifdef dropped in upstream. Cheers, Prabhakar > Best regards, > Pavel > > -- > DENX Software Engineering GmbH, Managing Director: Wolfgang Denk > HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany