linux-xiaomi-chiron/drivers
Andreas Färber 1847e3046c
spi: gpio: Implement LSB First bitbang support
Add support for slave DT property spi-lsb-first, i.e., SPI_LSB_FIRST mode.
Duplicate the inline helpers bitbang_txrx_be_cpha{0,1} as LE versions.
Conditionally call them from all the spi-gpio txrx_word callbacks.

Some alternatives to this implementation approach were discussed back
then [0], but eventually it was considered reasonable.

[0] https://lore.kernel.org/linux-arm-kernel/20191212033952.5967-8-afaerber@suse.de/

Signed-off-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Tested-by: Christian Hewitt <christianshewitt@gmail.com>
Link: https://lore.kernel.org/r/feac3377-4ad1-77d8-9a18-3588d80fb909@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2022-02-22 11:56:41 +00:00
..
accessibility
acpi Merge branch 'akpm' (patches from Andrew) 2022-01-22 11:28:23 +02:00
amba
android
ata ata: pata_platform: Fix a NULL pointer dereference in __pata_platform_probe() 2022-01-27 11:22:43 +09:00
atm
auxdisplay
base
bcma
block bitmap patches for 5.17-rc1 2022-01-23 06:20:44 +02:00
bluetooth
bus spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
cdrom
char spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
clk spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
clocksource
comedi
connector connector/cn_proc: Use task_is_in_init_pid_ns() 2022-01-26 18:57:09 -08:00
counter counter: fix an IS_ERR() vs NULL bug 2022-01-26 19:40:33 +01:00
cpufreq
cpuidle
crypto
cxl
dax
dca
devfreq
dio
dma
dma-buf
edac
eisa
extcon
firewire
firmware efi: runtime: avoid EFIv2 runtime services on Apple x86 machines 2022-01-23 10:31:27 +01:00
fpga
fsi
gnss
gpio spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
gpu spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
greybus
hid
hsi
hv Drivers: hv: balloon: account for vmbus packet header in max_pkt_size 2022-01-23 22:31:23 +00:00
hwmon spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
hwspinlock
hwtracing
i2c
i3c
idle
iio spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
infiniband bitmap patches for 5.17-rc1 2022-01-23 06:20:44 +02:00
input spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
interconnect
iommu
ipack
irqchip irqchip fixes for 5.17, take #1 2022-01-29 21:03:20 +01:00
isdn
leds spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
macintosh
mailbox
mcb
md dm: properly fix redundant bio-based IO accounting 2022-01-28 12:28:15 -07:00
media spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
memory
memstick
message
mfd mtd: spi-nor / spi / MFD: Convert intel-spi to SPI MEM 2022-02-15 12:53:31 +00:00
misc spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
mmc spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
most
mtd mtd: spi-nor / spi / MFD: Convert intel-spi to SPI MEM 2022-02-15 12:53:31 +00:00
mux
net spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
nfc spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
ntb
nubus proc: remove PDE_DATA() completely 2022-01-22 08:33:37 +02:00
nvdimm
nvme nvme-fabrics: remove the unneeded ret variable in nvmf_dev_show 2022-01-27 08:17:17 +01:00
nvmem
of Devicetree fixes for v5.17, take 1: 2022-01-22 09:52:17 +02:00
opp
parisc Merge branch 'akpm' (patches from Andrew) 2022-01-22 11:28:23 +02:00
parport
pci pci-v5.17-fixes-2 2022-01-29 19:05:47 +02:00
pcmcia
perf
phy
pinctrl
platform spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
pnp proc: remove PDE_DATA() completely 2022-01-22 08:33:37 +02:00
power
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator
remoteproc
reset
rpmsg rpmsg fixes for v5.17-rc1 2022-01-27 11:23:26 +02:00
rtc spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
s390 scsi: zfcp: Fix failed recovery on gone remote port with non-NPIV FCP devices 2022-01-24 23:30:27 -05:00
sbus
scsi scsi: myrs: Fix crash in error case 2022-01-25 00:09:41 -05:00
sh
siox
slimbus
soc bitmap patches for 5.17-rc1 2022-01-23 06:20:44 +02:00
soundwire
spi spi: gpio: Implement LSB First bitbang support 2022-02-22 11:56:41 +00:00
spmi
ssb
staging spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
target scsi: target: iscsi: Make sure the np under each tpg is unique 2022-01-24 23:30:24 -05:00
tc
tee
thermal
thunderbolt
tty spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
uio
usb spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
vdpa
vfio
vhost
video spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
virt bitmap patches for 5.17-rc1 2022-01-23 06:20:44 +02:00
virtio
visorbus
vlynq
vme
w1
watchdog
xen
zorro proc: remove PDE_DATA() completely 2022-01-22 08:33:37 +02:00
Kconfig
Makefile