mbox series

[v2,0/4] *** spi cs_timing restructure ***

Message ID 20210803102228.2535-1-Mason.Zhang@mediatek.com (mailing list archive)
Headers show
Series *** spi cs_timing restructure *** | expand

Message

Mason Zhang Aug. 3, 2021, 10:22 a.m. UTC
Hello,
This patchset has restructure spi cs_timing, as we know spi core has
removed spi_set_cs_timing() API, it is a correct decision because it
asked spi devices to call it in one more time.
so we need find another way to support user set cs_timing. Actually,
spi_device set spi_delay for cs_timing is enough, and about how to
set cs_timing, just put it one the master driver.
We have test this patch in mediatek platform, it can compeletly meets
our needs.

Changed in v2:
  - fix tegra spi build err

Mason Zhang (4):
  spi: move cs spi_delay to spi_device
  spi: modify set_cs_timing parameter
  spi: mediatek: modify set_cs_timing callback
  spi: tegra114: Fix set_cs_timing param

 drivers/spi/spi-mt65xx.c   | 102 ++++++++++++++++++++-----------------
 drivers/spi/spi-tegra114.c |   8 +--
 drivers/spi/spi.c          |   6 +--
 include/linux/spi/spi.h    |  23 ++++-----
 4 files changed, 73 insertions(+), 66 deletions(-)