Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'spi-fix-v5.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi

Pull spi fixes from Mark Brown:
"A couple of small, driver specific fixes that arrived in the past few
weeks"

* tag 'spi-fix-v5.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi:
spi: spi-nxp-fspi: move the register operation after the clock enable
spi: tegra20-slink: Ensure SPI controller reset is deasserted

+10 -6
+5 -6
drivers/spi/spi-nxp-fspi.c
··· 1124 1124 goto err_put_ctrl; 1125 1125 } 1126 1126 1127 - /* Clear potential interrupts */ 1128 - reg = fspi_readl(f, f->iobase + FSPI_INTR); 1129 - if (reg) 1130 - fspi_writel(f, reg, f->iobase + FSPI_INTR); 1131 - 1132 - 1133 1127 /* find the resources - controller memory mapped space */ 1134 1128 if (is_acpi_node(f->dev->fwnode)) 1135 1129 res = platform_get_resource(pdev, IORESOURCE_MEM, 1); ··· 1160 1166 goto err_put_ctrl; 1161 1167 } 1162 1168 } 1169 + 1170 + /* Clear potential interrupts */ 1171 + reg = fspi_readl(f, f->iobase + FSPI_INTR); 1172 + if (reg) 1173 + fspi_writel(f, reg, f->iobase + FSPI_INTR); 1163 1174 1164 1175 /* find the irq */ 1165 1176 ret = platform_get_irq(pdev, 0);
+5
drivers/spi/spi-tegra20-slink.c
··· 1118 1118 pm_runtime_put_noidle(&pdev->dev); 1119 1119 goto exit_pm_disable; 1120 1120 } 1121 + 1122 + reset_control_assert(tspi->rst); 1123 + udelay(2); 1124 + reset_control_deassert(tspi->rst); 1125 + 1121 1126 tspi->def_command_reg = SLINK_M_S; 1122 1127 tspi->def_command2_reg = SLINK_CS_ACTIVE_BETWEEN; 1123 1128 tegra_slink_writel(tspi, tspi->def_command_reg, SLINK_COMMAND);