spi: dw: replace magic constant by DW_SPI_DR
PATCH 1/1 spi: dw: replace magic constant by DW_SPI_DR
The offset 0x60 is the offset of the data register defined as DW_SPI_DR in the header file. Use it.
--- drivers/spi/spi-dw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/spi-dw.c +1 -1
@@ -483,7 +483,7 @@ int dw_spi_add_host(struct device *dev, struct dw_spi *dws) dws->master = master; dws->type =SSI_MOTO_SPI ; dws->dma_inited =0 ; - dws->dma_addr = (dma_addr_t)(dws->paddr +0x60 ); + dws->dma_addr = (dma_addr_t)(dws->paddr +DW_SPI_DR );snprintf (dws->name,sizeof (dws->name),"dw_spi%d" , dws->bus_num); ret =request_irq (dws->irq, dw_spi_irq,IRQF_SHARED , dws->name, master);
Signature · 6 lines
2.6.1 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Applied "spi: dw: replace magic constant by DW_SPI_DR" to the spi tree
In reply to a message not in the archiveThe patch
spi: dw: replace magic constant by DW_SPI_DR
has been applied to the spi tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
d7ef54ca1219ddf99d56a0f7cf40912ab4c4bb0bMon Sep 17 00:00:00 2001
From: Andy Shevchenko <andriy.shevchenko-VuQAYsv1563Yd54FQh9/[email protected]>
Date: Tue, 27 Oct 2015 17:48:16 +0200
Subject: [PATCH] spi: dw: replace magic constant by DW_SPI_DR
The offset 0x60 is the offset of the data register defined as DW_SPI_DR in the header file. Use it.
--- drivers/spi/spi-dw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/spi-dw.c +1 -1
@@ -483,7 +483,7 @@ int dw_spi_add_host(struct device *dev, struct dw_spi *dws) dws->master = master; dws->type =SSI_MOTO_SPI ; dws->dma_inited =0 ; - dws->dma_addr = (dma_addr_t)(dws->paddr +0x60 ); + dws->dma_addr = (dma_addr_t)(dws->paddr +DW_SPI_DR );snprintf (dws->name,sizeof (dws->name),"dw_spi%d" , dws->bus_num); ret =request_irq (dws->irq, dw_spi_irq,IRQF_SHARED , dws->name, master);
Signature · 6 lines
2.6.1 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html