Merge remote-tracking branches 'spi/topic/omap-100k', 'spi/topic/omap-uwire', 'spi...
authorMark Brown <broonie@kernel.org>
Wed, 4 Nov 2015 11:02:12 +0000 (11:02 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 4 Nov 2015 11:02:12 +0000 (11:02 +0000)
1  2  3  4  5  6 
drivers/input/touchscreen/ads7846.c
drivers/mfd/ezx-pcap.c
drivers/net/ethernet/micrel/ks8851.c
drivers/spi/spi-pxa2xx.c
drivers/spi/spi-pxa2xx.h
drivers/spi/spi.c
drivers/spi/spidev.c
drivers/staging/fbtft/flexfb.c
drivers/video/fbdev/omap2/displays-new/panel-sony-acx565akm.c
include/linux/spi/spi.h
sound/soc/codecs/wm0010.c

Simple merge
Simple merge
Simple merge
index a8ef38ebb9c9db551191b2e80be567990a20817b,fdd7919770419bcbf63afaf326e719e43ae6513b,fdd7919770419bcbf63afaf326e719e43ae6513b,fdd7919770419bcbf63afaf326e719e43ae6513b,fdd7919770419bcbf63afaf326e719e43ae6513b,2e951084987d40d5a086de8ed4269beb0ff352c0..b25dc71b0ea918de43184625c8d359be43684dad
@@@@@@@ -922,53 -918,53 -918,53 -918,53 -918,53 -960,56 +964,56 @@@@@@@ static void pump_transfers(unsigned lon
        drv_data->read = drv_data->rx ? chip->read : null_reader;
      
        /* Change speed and bit per word on a per transfer */
-----   cr0 = chip->cr0;
-----   if (transfer->speed_hz || transfer->bits_per_word) {
----- 
-----           bits = chip->bits_per_word;
-----           speed = chip->speed_hz;
----- 
-----           if (transfer->speed_hz)
-----                   speed = transfer->speed_hz;
----- 
-----           if (transfer->bits_per_word)
-----                   bits = transfer->bits_per_word;
----- 
-----           clk_div = pxa2xx_ssp_get_clk_div(drv_data, chip, speed);
----- 
-----           if (bits <= 8) {
-----                   drv_data->n_bytes = 1;
-----                   drv_data->read = drv_data->read != null_reader ?
-----                                           u8_reader : null_reader;
-----                   drv_data->write = drv_data->write != null_writer ?
-----                                           u8_writer : null_writer;
-----           } else if (bits <= 16) {
-----                   drv_data->n_bytes = 2;
-----                   drv_data->read = drv_data->read != null_reader ?
-----                                           u16_reader : null_reader;
-----                   drv_data->write = drv_data->write != null_writer ?
-----                                           u16_writer : null_writer;
-----           } else if (bits <= 32) {
-----                   drv_data->n_bytes = 4;
-----                   drv_data->read = drv_data->read != null_reader ?
-----                                           u32_reader : null_reader;
-----                   drv_data->write = drv_data->write != null_writer ?
-----                                           u32_writer : null_writer;
-----           }
-----           /* if bits/word is changed in dma mode, then must check the
-----            * thresholds and burst also */
-----           if (chip->enable_dma) {
-----                   if (pxa2xx_spi_set_dma_burst_and_threshold(chip,
-----                                                   message->spi,
-----                                                   bits, &dma_burst,
-----                                                   &dma_thresh))
-----                           dev_warn_ratelimited(&message->spi->dev,
-----                                                "pump_transfers: DMA burst size reduced to match bits_per_word\n");
-----           }
----- 
-----           cr0 = pxa2xx_configure_sscr0(drv_data, clk_div, bits);
+++++   bits = transfer->bits_per_word;
+++++   speed = transfer->speed_hz;
+++++ 
+++++   clk_div = pxa2xx_ssp_get_clk_div(drv_data, speed);
+++++ 
+++++   if (bits <= 8) {
+++++           drv_data->n_bytes = 1;
+++++           drv_data->read = drv_data->read != null_reader ?
+++++                                   u8_reader : null_reader;
+++++           drv_data->write = drv_data->write != null_writer ?
+++++                                   u8_writer : null_writer;
+++++   } else if (bits <= 16) {
+++++           drv_data->n_bytes = 2;
+++++           drv_data->read = drv_data->read != null_reader ?
+++++                                   u16_reader : null_reader;
+++++           drv_data->write = drv_data->write != null_writer ?
+++++                                   u16_writer : null_writer;
+++++   } else if (bits <= 32) {
+++++           drv_data->n_bytes = 4;
+++++           drv_data->read = drv_data->read != null_reader ?
+++++                                   u32_reader : null_reader;
+++++           drv_data->write = drv_data->write != null_writer ?
+++++                                   u32_writer : null_writer;
 ++++   }
+++++   /*
+++++    * if bits/word is changed in dma mode, then must check the
+++++    * thresholds and burst also
+++++    */
+++++   if (chip->enable_dma) {
+++++           if (pxa2xx_spi_set_dma_burst_and_threshold(chip,
+++++                                           message->spi,
+++++                                           bits, &dma_burst,
+++++                                           &dma_thresh))
+++++                   dev_warn_ratelimited(&message->spi->dev,
+++++                                        "pump_transfers: DMA burst size reduced to match bits_per_word\n");
+       }
+     
+++++   /* NOTE:  PXA25x_SSP _could_ use external clocking ... */
+++++   cr0 = pxa2xx_configure_sscr0(drv_data, clk_div, bits);
+++++   if (!pxa25x_ssp_comp(drv_data))
+++++           dev_dbg(&message->spi->dev, "%u Hz actual, %s\n",
+++++                   drv_data->master->max_speed_hz
+++++                           / (1 + ((cr0 & SSCR0_SCR(0xfff)) >> 8)),
+++++                   chip->enable_dma ? "DMA" : "PIO");
+++++   else
+++++           dev_dbg(&message->spi->dev, "%u Hz actual, %s\n",
+++++                   drv_data->master->max_speed_hz / 2
+++++                           / (1 + ((cr0 & SSCR0_SCR(0x0ff)) >> 8)),
+++++                   chip->enable_dma ? "DMA" : "PIO");
 ++++ 
        message->state = RUNNING_STATE;
      
        drv_data->dma_mapped = 0;
index 0a9b6390a817f60467b03f9e3fa589cc5bddf79f,0a9b6390a817f60467b03f9e3fa589cc5bddf79f,0a9b6390a817f60467b03f9e3fa589cc5bddf79f,0a9b6390a817f60467b03f9e3fa589cc5bddf79f,99c4d8a0a1d0314620ad7ce42f658e90b8377162,514cf971707c07d471308b6b1968b76288d44a27..58efa98313aa0bf5c2aca5d8458032fac566a0eb
@@@@@@@ -86,10 -86,10 -86,10 -86,10 -86,9 -83,9 +83,8 @@@@@@@ struct driver_data 
      };
      
      struct chip_data {
-----   u32 cr0;
        u32 cr1;
        u32 dds_rate;
---- -  u32 psp;
        u32 timeout;
        u8 n_bytes;
        u32 dma_burst_size;
index f9e92f535cbb1ba427a77ab40b0266d453a75d3b,3abb3903f2ad454ef964299204bd3c2454890062,3abb3903f2ad454ef964299204bd3c2454890062,51e33dbe4e05e8f234bd6960550d8b396e025f50,3abb3903f2ad454ef964299204bd3c2454890062,3abb3903f2ad454ef964299204bd3c2454890062..e2415be209d5a77e9224add30db37d65244fabda
@@@@@@@ -375,14 -305,12 -305,12 -305,13 -305,12 -305,12 +375,15 @@@@@@@ static void spi_drv_shutdown(struct dev
      }
      
      /**
--- -- * spi_register_driver - register a SPI driver
+++ ++ * __spi_register_driver - register a SPI driver
       * @sdrv: the driver to register
       * Context: can sleep
 +++++ *
 +++++ * Return: zero on success, else a negative error code.
       */
--- --int spi_register_driver(struct spi_driver *sdrv)
+++ ++int __spi_register_driver(struct module *owner, struct spi_driver *sdrv)
      {
+++ ++  sdrv->driver.owner = owner;
        sdrv->driver.bus = &spi_bus_type;
        if (sdrv->probe)
                sdrv->driver.probe = spi_drv_probe;
Simple merge
Simple merge
Simple merge
Simple merge