diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux-5.4/linux-yocto-5.4.69-amdx86/0010-spi-amd-Drop-superfluous-member-from-struct-amd_spi.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux-5.4/linux-yocto-5.4.69-amdx86/0010-spi-amd-Drop-superfluous-member-from-struct-amd_spi.patch | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux-5.4/linux-yocto-5.4.69-amdx86/0010-spi-amd-Drop-superfluous-member-from-struct-amd_spi.patch b/meta-amd-bsp/recipes-kernel/linux-5.4/linux-yocto-5.4.69-amdx86/0010-spi-amd-Drop-superfluous-member-from-struct-amd_spi.patch deleted file mode 100644 index 902e8cda..00000000 --- a/meta-amd-bsp/recipes-kernel/linux-5.4/linux-yocto-5.4.69-amdx86/0010-spi-amd-Drop-superfluous-member-from-struct-amd_spi.patch +++ /dev/null @@ -1,62 +0,0 @@ -From ee070973c9d449c2cf45e91bee82ec936e49f068 Mon Sep 17 00:00:00 2001 -From: Lukas Wunner <lukas@wunner.de> -Date: Mon, 4 May 2020 13:12:05 +0200 -Subject: [PATCH 10/21] spi: amd: Drop superfluous member from struct amd_spi - -The AMD SPI driver stores a pointer to the spi_master in struct amd_spi -so that it can get from the latter to the former in amd_spi_fifo_xfer(). - -It's simpler to just pass the pointer from the sole caller -amd_spi_master_transfer() and drop the pointer from struct amd_spi. - -Signed-off-by: Lukas Wunner <lukas@wunner.de> -Link: https://lore.kernel.org/r/a088b684ad292faf3bd036e51529e608e5c94638.1588590210.git.lukas@wunner.de -Signed-off-by: Mark Brown <broonie@kernel.org> -Signed-off-by: Sudheesh Mavila <sudheesh.mavila@amd.com> ---- - drivers/spi/spi-amd.c | 6 ++---- - 1 file changed, 2 insertions(+), 4 deletions(-) - -diff --git a/drivers/spi/spi-amd.c b/drivers/spi/spi-amd.c -index 489a95fff49e..f1b08db9d5b8 100755 ---- a/drivers/spi/spi-amd.c -+++ b/drivers/spi/spi-amd.c -@@ -38,7 +38,6 @@ struct amd_spi { - void __iomem *io_remap_addr; - unsigned long io_base_addr; - u32 rom_addr; -- struct spi_master *master; - u8 chip_select; - }; - -@@ -164,9 +163,9 @@ static int amd_spi_master_setup(struct spi_device *spi) - } - - static inline int amd_spi_fifo_xfer(struct amd_spi *amd_spi, -+ struct spi_master *master, - struct spi_message *message) - { -- struct spi_master *master = amd_spi->master; - struct spi_transfer *xfer = NULL; - u8 cmd_opcode; - u8 *buf = NULL; -@@ -241,7 +240,7 @@ static int amd_spi_master_transfer(struct spi_master *master, - * Extract spi_transfers from the spi message and - * program the controller. - */ -- amd_spi_fifo_xfer(amd_spi, msg); -+ amd_spi_fifo_xfer(amd_spi, master, msg); - - return 0; - } -@@ -262,7 +261,6 @@ static int amd_spi_probe(struct platform_device *pdev) - } - - amd_spi = spi_master_get_devdata(master); -- amd_spi->master = master; - - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - amd_spi->io_remap_addr = devm_ioremap_resource(&pdev->dev, res); --- -2.17.1 - |