1. 11 10月, 2018 7 次提交
  2. 10 10月, 2018 4 次提交
  3. 09 10月, 2018 1 次提交
    • N
      spi: spi-ep93xx: Use dma_data_direction for ep93xx_spi_dma_{finish,prepare} · a1108c7b
      Nathan Chancellor 提交于
      Clang warns when one enumerated type is implicitly converted to another.
      
      drivers/spi/spi-ep93xx.c:342:62: warning: implicit conversion from
      enumeration type 'enum dma_transfer_direction' to different enumeration
      type 'enum dma_data_direction' [-Wenum-conversion]
              nents = dma_map_sg(chan->device->dev, sgt->sgl, sgt->nents, dir);
                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
      ./include/linux/dma-mapping.h:428:58: note: expanded from macro
      'dma_map_sg'
      #define dma_map_sg(d, s, n, r) dma_map_sg_attrs(d, s, n, r, 0)
                                     ~~~~~~~~~~~~~~~~          ^
      drivers/spi/spi-ep93xx.c:348:57: warning: implicit conversion from
      enumeration type 'enum dma_transfer_direction' to different enumeration
      type 'enum dma_data_direction' [-Wenum-conversion]
                      dma_unmap_sg(chan->device->dev, sgt->sgl, sgt->nents, dir);
                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
      ./include/linux/dma-mapping.h:429:62: note: expanded from macro
      'dma_unmap_sg'
      #define dma_unmap_sg(d, s, n, r) dma_unmap_sg_attrs(d, s, n, r, 0)
                                       ~~~~~~~~~~~~~~~~~~          ^
      drivers/spi/spi-ep93xx.c:377:56: warning: implicit conversion from
      enumeration type 'enum dma_transfer_direction' to different enumeration
      type 'enum dma_data_direction' [-Wenum-conversion]
              dma_unmap_sg(chan->device->dev, sgt->sgl, sgt->nents, dir);
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
      ./include/linux/dma-mapping.h:429:62: note: expanded from macro
      'dma_unmap_sg'
      #define dma_unmap_sg(d, s, n, r) dma_unmap_sg_attrs(d, s, n, r, 0)
                                       ~~~~~~~~~~~~~~~~~~          ^
      3 warnings generated.
      
      dma_{,un}map_sg expect an enum of type dma_data_direction but this
      driver uses dma_transfer_direction for everything. Convert the driver to
      use dma_data_direction for these two functions.
      
      There are two places that strictly require an enum of type
      dma_transfer_direction: the direction member in struct dma_slave_config
      and the direction parameter in dmaengine_prep_slave_sg. To avoid using
      an explicit cast, add a simple function, ep93xx_dma_data_to_trans_dir,
      to safely map between the two types because they are not 1 to 1 in
      meaning.
      Signed-off-by: NNathan Chancellor <natechancellor@gmail.com>
      Reviewed-by: NNick Desaulniers <ndesaulniers@google.com>
      Reviewed-by: NMika Westerberg <mika.westerberg@linux.intel.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      a1108c7b
  4. 08 10月, 2018 1 次提交
  5. 04 10月, 2018 1 次提交
  6. 03 10月, 2018 1 次提交
  7. 28 9月, 2018 4 次提交
  8. 24 9月, 2018 2 次提交
  9. 21 9月, 2018 2 次提交
  10. 19 9月, 2018 4 次提交
  11. 18 9月, 2018 4 次提交
  12. 13 9月, 2018 1 次提交
  13. 12 9月, 2018 1 次提交
    • L
      spi: davinci: Remove chip select GPIO pdata · 56df612a
      Linus Walleij 提交于
      The DaVinci SPI can use either:
      - Internal chip selects (inside the SPI host)
      - External chip selects (using GPIO)
      - External chip selects passed in pdata
      
      The last way of passing external chip selects through
      platform data is not used in the kernel. Delete it to make
      the code simpler when refactoring GPIO.
      
      Cc: Sekhar Nori <nsekhar@ti.com>
      Cc: Kevin Hilman <khilman@kernel.org>
      Cc: Michele Dionisio <michele.dionisio@gmail.com>
      Cc: Frode Isaksen <fisaksen@baylibre.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      56df612a
  14. 11 9月, 2018 1 次提交
  15. 10 9月, 2018 1 次提交
    • L
      spi: gpio: No MISO does not imply no RX · abf5feef
      Linus Walleij 提交于
      There is a logical problem in spi-gpio with host just
      assigning a MOSI line and no MISO: this is interpreted
      as the host cannot do RX and the host is flagged with
      SPI_MASTER_NO_RX.
      
      This is wrong: since GPIO lines can switch direction,
      in 3WIRE operation the host will simply reverse the
      direction of the GPIO line and start reading from it,
      there is even code for doing this in the driver, but
      it went unnoticed because it was tested by using a
      master with 4 wires but a device using just 3 wires.
      
      Remove the offending flag.
      
      Cc: Andrzej Hajda <a.hajda@samsung.com>
      Cc: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      abf5feef
  16. 08 9月, 2018 2 次提交
  17. 06 9月, 2018 2 次提交
  18. 05 9月, 2018 1 次提交