Merge remote-tracking branch 'spi/for-5.13' into spi-linus
This commit is contained in:
commit
edf978a5a1
|
@ -1124,12 +1124,6 @@ static int nxp_fspi_probe(struct platform_device *pdev)
|
|||
goto err_put_ctrl;
|
||||
}
|
||||
|
||||
/* Clear potential interrupts */
|
||||
reg = fspi_readl(f, f->iobase + FSPI_INTR);
|
||||
if (reg)
|
||||
fspi_writel(f, reg, f->iobase + FSPI_INTR);
|
||||
|
||||
|
||||
/* find the resources - controller memory mapped space */
|
||||
if (is_acpi_node(f->dev->fwnode))
|
||||
res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
|
||||
|
@ -1167,6 +1161,11 @@ static int nxp_fspi_probe(struct platform_device *pdev)
|
|||
}
|
||||
}
|
||||
|
||||
/* Clear potential interrupts */
|
||||
reg = fspi_readl(f, f->iobase + FSPI_INTR);
|
||||
if (reg)
|
||||
fspi_writel(f, reg, f->iobase + FSPI_INTR);
|
||||
|
||||
/* find the irq */
|
||||
ret = platform_get_irq(pdev, 0);
|
||||
if (ret < 0)
|
||||
|
|
|
@ -379,6 +379,10 @@ static int sun6i_spi_transfer_one(struct spi_master *master,
|
|||
}
|
||||
|
||||
sun6i_spi_write(sspi, SUN6I_CLK_CTL_REG, reg);
|
||||
/* Finally enable the bus - doing so before might raise SCK to HIGH */
|
||||
reg = sun6i_spi_read(sspi, SUN6I_GBL_CTL_REG);
|
||||
reg |= SUN6I_GBL_CTL_BUS_ENABLE;
|
||||
sun6i_spi_write(sspi, SUN6I_GBL_CTL_REG, reg);
|
||||
|
||||
/* Setup the transfer now... */
|
||||
if (sspi->tx_buf)
|
||||
|
@ -504,7 +508,7 @@ static int sun6i_spi_runtime_resume(struct device *dev)
|
|||
}
|
||||
|
||||
sun6i_spi_write(sspi, SUN6I_GBL_CTL_REG,
|
||||
SUN6I_GBL_CTL_BUS_ENABLE | SUN6I_GBL_CTL_MASTER | SUN6I_GBL_CTL_TP);
|
||||
SUN6I_GBL_CTL_MASTER | SUN6I_GBL_CTL_TP);
|
||||
|
||||
return 0;
|
||||
|
||||
|
|
|
@ -1118,6 +1118,11 @@ static int tegra_slink_probe(struct platform_device *pdev)
|
|||
pm_runtime_put_noidle(&pdev->dev);
|
||||
goto exit_pm_disable;
|
||||
}
|
||||
|
||||
reset_control_assert(tspi->rst);
|
||||
udelay(2);
|
||||
reset_control_deassert(tspi->rst);
|
||||
|
||||
tspi->def_command_reg = SLINK_M_S;
|
||||
tspi->def_command2_reg = SLINK_CS_ACTIVE_BETWEEN;
|
||||
tegra_slink_writel(tspi, tspi->def_command_reg, SLINK_COMMAND);
|
||||
|
|
Loading…
Reference in New Issue