> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Kristen Carlson
> Accardi
> Sent: Friday, March 25, 2011 3:26 AM
> To: [email protected]
> Subject: [Meego-kernel] [PATCH 2/2 v2] dw_spi: add runtime pm support
> 
> ---
>  drivers/spi/dw_spi.c       |   22 ++++++++---------
>  drivers/spi/dw_spi_pci.c   |   54
> +++++++++++++++++++++++++++++++++++++++++++-
>  include/linux/spi/dw_spi.h |    2 +-
>  3 files changed, 64 insertions(+), 14 deletions(-)
> 
> diff --git a/drivers/spi/dw_spi.c b/drivers/spi/dw_spi.c
...
> -int dw_spi_suspend_host(struct dw_spi *dws)
> +int dw_spi_suspend_host(struct dw_spi *dws, bool runtime)
>  {
>       int ret = 0;
> 
> @@ -914,7 +911,8 @@ int dw_spi_suspend_host(struct dw_spi *dws)
>       if (ret)
>               return ret;
>       spi_enable_chip(dws, 0);
> -     spi_set_clk(dws, 0);
> +     if (!runtime)
> +             spi_set_clk(dws, 0);
>       return ret;
>  }
>  EXPORT_SYMBOL_GPL(dw_spi_suspend_host);

Is it specific to MRST platform that the serial clock cannot be turned off in 
runtime suspend? If so, I think we might need to move that platform specific 
code to dw_spi_pci.c.

Thanks
-Yong

_______________________________________________
MeeGo-kernel mailing list
[email protected]
http://lists.meego.com/listinfo/meego-kernel

Reply via email to