diff options
| author | Dmitry Torokhov <[email protected]> | 2023-08-30 16:06:38 -0700 | 
|---|---|---|
| committer | Dmitry Torokhov <[email protected]> | 2023-08-30 16:06:38 -0700 | 
| commit | 1ac731c529cd4d6adbce134754b51ff7d822b145 (patch) | |
| tree | 143ab3f35ca5f3b69f583c84e6964b17139c2ec1 /drivers/spi/spi-fsl-espi.c | |
| parent | 07b4c950f27bef0362dc6ad7ee713aab61d58149 (diff) | |
| parent | 54116d442e001e1b6bd482122043b1870998a1f3 (diff) | |
Merge branch 'next' into for-linus
Prepare input updates for 6.6 merge window.
Diffstat (limited to 'drivers/spi/spi-fsl-espi.c')
| -rw-r--r-- | drivers/spi/spi-fsl-espi.c | 12 | 
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/spi/spi-fsl-espi.c b/drivers/spi/spi-fsl-espi.c index f7066bef7b06..b3d2d3db5850 100644 --- a/drivers/spi/spi-fsl-espi.c +++ b/drivers/spi/spi-fsl-espi.c @@ -345,7 +345,7 @@ static void fsl_espi_setup_transfer(struct spi_device *spi,  	/* don't write the mode register if the mode doesn't change */  	if (cs->hw_mode != hw_mode_old) -		fsl_espi_write_reg(espi, ESPI_SPMODEx(spi->chip_select), +		fsl_espi_write_reg(espi, ESPI_SPMODEx(spi_get_chipselect(spi, 0)),  				   cs->hw_mode);  } @@ -359,7 +359,7 @@ static int fsl_espi_bufs(struct spi_device *spi, struct spi_transfer *t)  	reinit_completion(&espi->done);  	/* Set SPCOM[CS] and SPCOM[TRANLEN] field */ -	spcom = SPCOM_CS(spi->chip_select); +	spcom = SPCOM_CS(spi_get_chipselect(spi, 0));  	spcom |= SPCOM_TRANLEN(t->len - 1);  	/* configure RXSKIP mode */ @@ -492,7 +492,7 @@ static int fsl_espi_setup(struct spi_device *spi)  	pm_runtime_get_sync(espi->dev); -	cs->hw_mode = fsl_espi_read_reg(espi, ESPI_SPMODEx(spi->chip_select)); +	cs->hw_mode = fsl_espi_read_reg(espi, ESPI_SPMODEx(spi_get_chipselect(spi, 0)));  	/* mask out bits we are going to set */  	cs->hw_mode &= ~(CSMODE_CP_BEGIN_EDGECLK | CSMODE_CI_INACTIVEHIGH  			 | CSMODE_REV); @@ -783,11 +783,9 @@ static int of_fsl_espi_probe(struct platform_device *ofdev)  	return fsl_espi_probe(dev, &mem, irq, num_cs);  } -static int of_fsl_espi_remove(struct platform_device *dev) +static void of_fsl_espi_remove(struct platform_device *dev)  {  	pm_runtime_disable(&dev->dev); - -	return 0;  }  #ifdef CONFIG_PM_SLEEP @@ -837,7 +835,7 @@ static struct platform_driver fsl_espi_driver = {  		.pm = &espi_pm,  	},  	.probe		= of_fsl_espi_probe, -	.remove		= of_fsl_espi_remove, +	.remove_new	= of_fsl_espi_remove,  };  module_platform_driver(fsl_espi_driver);  |