diff options
author | Daniel Golle <daniel@makrotopia.org> | 2022-03-21 01:16:48 +0000 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2022-03-21 13:11:56 +0000 |
commit | 786bf7fdaca4c75e7eba6e9aa3a8b5775fd21186 (patch) | |
tree | 926fecb2b1f6ce1e42ba7ef4c7aab8e68dfd214c /target/linux/octeontx/patches-5.4/0003-can-mcp251x-convert-to-half-duplex-SPI.patch | |
parent | 9470160c350d15f765c33d6c1db15d6c4709a64c (diff) | |
download | upstream-786bf7fdaca4c75e7eba6e9aa3a8b5775fd21186.tar.gz upstream-786bf7fdaca4c75e7eba6e9aa3a8b5775fd21186.tar.bz2 upstream-786bf7fdaca4c75e7eba6e9aa3a8b5775fd21186.zip |
kernel: delete Linux 5.4 config and patches
As the upcoming release will be based on Linux 5.10 only, remove all
kernel configuration as well as patches for Linux 5.4.
There were no targets still actively using Linux 5.4.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(cherry picked from commit 3a14580411adfb75f9a44eded9f41245b9e44606)
Diffstat (limited to 'target/linux/octeontx/patches-5.4/0003-can-mcp251x-convert-to-half-duplex-SPI.patch')
-rw-r--r-- | target/linux/octeontx/patches-5.4/0003-can-mcp251x-convert-to-half-duplex-SPI.patch | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/target/linux/octeontx/patches-5.4/0003-can-mcp251x-convert-to-half-duplex-SPI.patch b/target/linux/octeontx/patches-5.4/0003-can-mcp251x-convert-to-half-duplex-SPI.patch deleted file mode 100644 index f760b2ac9a..0000000000 --- a/target/linux/octeontx/patches-5.4/0003-can-mcp251x-convert-to-half-duplex-SPI.patch +++ /dev/null @@ -1,57 +0,0 @@ -From 097cc81ee5c15913ad330baffff2e3dea09bdad0 Mon Sep 17 00:00:00 2001 -From: Tim Harvey <tharvey@gateworks.com> -Date: Thu, 30 Aug 2018 15:16:08 -0700 -Subject: [PATCH] can: mcp251x: convert driver to half-duplex SPI - -Some SPI host controllers such as the Cavium Thunder TX do not support -full-duplex SPI. Using half-duplex transfers allows the driver to work -with those host controllers. - -Signed-off-by: Tim Harvey <tharvey@gateworks.com> ---- - drivers/net/can/spi/mcp251x.c | 15 ++++++++------- - 1 file changed, 8 insertions(+), 7 deletions(-) - ---- a/drivers/net/can/spi/mcp251x.c -+++ b/drivers/net/can/spi/mcp251x.c -@@ -291,23 +291,23 @@ static u8 mcp251x_read_reg(struct spi_de - priv->spi_tx_buf[0] = INSTRUCTION_READ; - priv->spi_tx_buf[1] = reg; - -- mcp251x_spi_trans(spi, 3); -- val = priv->spi_rx_buf[2]; -+ spi_write_then_read(spi, priv->spi_tx_buf, 2, &val, 1); - - return val; - } - - static void mcp251x_read_2regs(struct spi_device *spi, u8 reg, u8 *v1, u8 *v2) - { -+ u8 val[4] = {0}; - struct mcp251x_priv *priv = spi_get_drvdata(spi); - - priv->spi_tx_buf[0] = INSTRUCTION_READ; - priv->spi_tx_buf[1] = reg; - -- mcp251x_spi_trans(spi, 4); -+ spi_write_then_read(spi, priv->spi_tx_buf, 2, val, 2); - -- *v1 = priv->spi_rx_buf[2]; -- *v2 = priv->spi_rx_buf[3]; -+ *v1 = val[0]; -+ *v2 = val[1]; - } - - static void mcp251x_write_reg(struct spi_device *spi, u8 reg, u8 val) -@@ -398,8 +398,9 @@ static void mcp251x_hw_rx_frame(struct s - buf[i] = mcp251x_read_reg(spi, RXBCTRL(buf_idx) + i); - } else { - priv->spi_tx_buf[RXBCTRL_OFF] = INSTRUCTION_READ_RXB(buf_idx); -- mcp251x_spi_trans(spi, SPI_TRANSFER_BUF_LEN); -- memcpy(buf, priv->spi_rx_buf, SPI_TRANSFER_BUF_LEN); -+ spi_write_then_read(spi, priv->spi_tx_buf, 1, priv->spi_rx_buf, -+ SPI_TRANSFER_BUF_LEN); -+ memcpy(buf + 1, priv->spi_rx_buf, SPI_TRANSFER_BUF_LEN - 1); - } - } - |