Merge remote-tracking branches 'spi/topic/altera', 'spi/topic/atmel', 'spi/topic...
authorMark Brown <broonie@linaro.org>
Sun, 30 Mar 2014 00:50:57 +0000 (00:50 +0000)
committerMark Brown <broonie@linaro.org>
Sun, 30 Mar 2014 00:50:57 +0000 (00:50 +0000)
1  2  3  4  5  6  7  8  9 
drivers/spi/spi-atmel.c

@@@@@@@@@@ -1455,16 -1455,8 -1448,11 -1455,8 -1455,8 -1455,8 -1455,8 -1455,8 -1455,8 +1448,19 @@@@@@@@@@ static int atmel_spi_suspend(struct dev
         {
                struct spi_master       *master = dev_get_drvdata(dev);
                struct atmel_spi        *as = spi_master_get_devdata(master);
 ++++++++       int ret;
 ++++++++
 ++++++++       /* Stop the queue running */
 ++++++++       ret = spi_master_suspend(master);
 ++++++++       if (ret) {
 ++++++++               dev_warn(dev, "cannot suspend master\n");
 ++++++++               return ret;
 ++++++++       }
         
                clk_disable_unprepare(as->clk);
++ ++++++
++ ++++++       pinctrl_pm_select_sleep_state(dev);
++ ++++++
                return 0;
         }
         
@@@@@@@@@@ -1472,16 -1464,9 -1460,11 -1464,9 -1464,9 -1464,9 -1464,9 -1464,9 -1464,9 +1468,18 @@@@@@@@@@ static int atmel_spi_resume(struct devi
         {
                struct spi_master       *master = dev_get_drvdata(dev);
                struct atmel_spi        *as = spi_master_get_devdata(master);
 ++++++++       int ret;
 + ++++++
++ ++++++       pinctrl_pm_select_default_state(dev);
+        
                clk_prepare_enable(as->clk);
 --------       return 0;
 ++++++++
 ++++++++       /* Start the queue running */
 ++++++++       ret = spi_master_resume(master);
 ++++++++       if (ret)
 ++++++++               dev_err(dev, "problem starting queue (%d)\n", ret);
 ++++++++
 ++++++++       return ret;
         }
         
         static SIMPLE_DEV_PM_OPS(atmel_spi_pm_ops, atmel_spi_suspend, atmel_spi_resume);