mirror of
https://github.com/torvalds/linux.git
synced 2024-11-21 19:41:42 +00:00
spi: Fixes for v6.12
A small collection of driver specific fixes for SPI, there's nothing particularly remarkable about any of them. -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmcf/nYACgkQJNaLcl1U h9A9AAf/a2PFeRBT9OcgUHkI0/Ca2t/7Onb5C5ouvIwnlYZkgPCQUO5p545HemEn kHiV579V5iIGQJ8mLzIPin32DjnKltYqkozR+AztGQcO0bULNMFP3++d6b2ZHTUT l2zhJdwMHpn5psDjEdnHrIQk4goBMoF+CIIaVnPOfkaO7oOpM8NOFoXhodCsYrCg GLxl16y8MkR4CgZsawCCb24wBZnqPH00UuiqXtrWwbyzSd0mHvJ2vecwWRu1iYk0 74srtk2tsdewPRoSlbUm72aJm0dPyNnk0StwXBnVF8O0g0jbDwWz1kePR9PfQuls RGari/wB9PIjLEyM08pVdtaByhrjlw== =u9Y1 -----END PGP SIGNATURE----- Merge tag 'spi-fix-v6.12-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi Pull spi fixes from Mark Brown: "A small collection of driver specific fixes for SPI, there's nothing particularly remarkable about any of them" * tag 'spi-fix-v6.12-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi: spi: spi-fsl-dspi: Fix crash when not using GPIO chip select spi: geni-qcom: Fix boot warning related to pm_runtime and devres spi: mtk-snfi: fix kerneldoc for mtk_snand_is_page_ops() spi: stm32: fix missing device mode capability in stm32mp25
This commit is contained in:
commit
e42b1a9a25
@ -1003,6 +1003,7 @@ static int dspi_setup(struct spi_device *spi)
|
||||
u32 cs_sck_delay = 0, sck_cs_delay = 0;
|
||||
struct fsl_dspi_platform_data *pdata;
|
||||
unsigned char pasc = 0, asc = 0;
|
||||
struct gpio_desc *gpio_cs;
|
||||
struct chip_data *chip;
|
||||
unsigned long clkrate;
|
||||
bool cs = true;
|
||||
@ -1077,7 +1078,10 @@ static int dspi_setup(struct spi_device *spi)
|
||||
chip->ctar_val |= SPI_CTAR_LSBFE;
|
||||
}
|
||||
|
||||
gpiod_direction_output(spi_get_csgpiod(spi, 0), false);
|
||||
gpio_cs = spi_get_csgpiod(spi, 0);
|
||||
if (gpio_cs)
|
||||
gpiod_direction_output(gpio_cs, false);
|
||||
|
||||
dspi_deassert_cs(spi, &cs);
|
||||
|
||||
spi_set_ctldata(spi, chip);
|
||||
|
@ -1116,6 +1116,11 @@ static int spi_geni_probe(struct platform_device *pdev)
|
||||
init_completion(&mas->tx_reset_done);
|
||||
init_completion(&mas->rx_reset_done);
|
||||
spin_lock_init(&mas->lock);
|
||||
|
||||
ret = geni_icc_get(&mas->se, NULL);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
pm_runtime_use_autosuspend(&pdev->dev);
|
||||
pm_runtime_set_autosuspend_delay(&pdev->dev, 250);
|
||||
ret = devm_pm_runtime_enable(dev);
|
||||
@ -1125,9 +1130,6 @@ static int spi_geni_probe(struct platform_device *pdev)
|
||||
if (device_property_read_bool(&pdev->dev, "spi-slave"))
|
||||
spi->target = true;
|
||||
|
||||
ret = geni_icc_get(&mas->se, NULL);
|
||||
if (ret)
|
||||
return ret;
|
||||
/* Set the bus quota to a reasonable value for register access */
|
||||
mas->se.icc_paths[GENI_TO_CORE].avg_bw = Bps_to_icc(CORE_2X_50_MHZ);
|
||||
mas->se.icc_paths[CPU_TO_GENI].avg_bw = GENI_DEFAULT_BW;
|
||||
|
@ -1187,7 +1187,7 @@ cleanup:
|
||||
|
||||
/**
|
||||
* mtk_snand_is_page_ops() - check if the op is a controller supported page op.
|
||||
* @op spi-mem op to check
|
||||
* @op: spi-mem op to check
|
||||
*
|
||||
* Check whether op can be executed with read_from_cache or program_load
|
||||
* mode in the controller.
|
||||
|
@ -2044,6 +2044,7 @@ static const struct stm32_spi_cfg stm32mp25_spi_cfg = {
|
||||
.baud_rate_div_max = STM32H7_SPI_MBR_DIV_MAX,
|
||||
.has_fifo = true,
|
||||
.prevent_dma_burst = true,
|
||||
.has_device_mode = true,
|
||||
};
|
||||
|
||||
static const struct of_device_id stm32_spi_of_match[] = {
|
||||
|
Loading…
Reference in New Issue
Block a user