mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 14:37:57 +00:00
15b9c02d6c
Removed upstreamed:
generic/101-Use-stddefs.h-instead-of-compiler.h.patch[1]
bcm27xx/patches-5.10/950-0194-drm-fourcc-Add-packed-10bit-YUV-4-2-0-format.patch
All patches automatically rebased.
1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.10.163&id=ddd2bb08bd99b7ee4442fbbe0f9b80236fdd71d2
Build system: x86_64
Build-tested: ramips/tplink_archer-a6-v3
Run-tested: ramips/tplink_archer-a6-v3
Signed-off-by: John Audia <therealgraysky@proton.me>
(cherry picked from commit 2835df54ab
)
33 lines
973 B
Diff
33 lines
973 B
Diff
From 086a38a1e0eea3b7cbb207384b92d5dc82c62454 Mon Sep 17 00:00:00 2001
|
|
From: Phil Elwell <phil@raspberrypi.com>
|
|
Date: Mon, 20 Apr 2020 13:41:10 +0100
|
|
Subject: [PATCH] Revert "spi: spidev: Fix CS polarity if GPIO
|
|
descriptors are used"
|
|
|
|
This reverts commit 83b2a8fe43bda0c11981ad6afa5dd0104d78be28.
|
|
---
|
|
drivers/spi/spidev.c | 5 -----
|
|
1 file changed, 5 deletions(-)
|
|
|
|
--- a/drivers/spi/spidev.c
|
|
+++ b/drivers/spi/spidev.c
|
|
@@ -413,7 +413,6 @@ spidev_ioctl(struct file *filp, unsigned
|
|
else
|
|
retval = get_user(tmp, (u32 __user *)arg);
|
|
if (retval == 0) {
|
|
- struct spi_controller *ctlr = spi->controller;
|
|
u32 save = spi->mode;
|
|
|
|
if (tmp & ~SPI_MODE_MASK) {
|
|
@@ -421,10 +420,6 @@ spidev_ioctl(struct file *filp, unsigned
|
|
break;
|
|
}
|
|
|
|
- if (ctlr->use_gpio_descriptors && ctlr->cs_gpiods &&
|
|
- ctlr->cs_gpiods[spi->chip_select])
|
|
- tmp |= SPI_CS_HIGH;
|
|
-
|
|
tmp |= spi->mode & ~SPI_MODE_MASK;
|
|
spi->mode = (u16)tmp;
|
|
retval = spi_setup(spi);
|