Skip to contentSkip to conversation

spi: mediatek: advertise the availability of Dual and Quad mode

PATCH In review [email protected] 2 participants 5 messages May 23, 2023 – May 25, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spi: mediatek: advertise the availability of Dual and Quad mode

From: Qii Wang <[email protected]>

this patch advertise the availability of Dual and Quad SPI mode for ipm design.

---
 drivers/spi/spi-mt65xx.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/spi/spi-mt65xx.c +2 -1
index 21c321f43766..1501ee8459ff 100644
@@ -1144,7 +1144,8 @@ static int mtk_spi_probe(struct platform_device *pdev)
 	if (mdata->dev_comp->must_tx)
 		master->flags = SPI_MASTER_MUST_TX;
 	if (mdata->dev_comp->ipm_design)
-		master->mode_bits |= SPI_LOOP;
+		master->mode_bits |= SPI_LOOP | SPI_RX_DUAL | SPI_TX_DUAL |
+				     SPI_RX_QUAD | SPI_TX_QUAD;
 
 	if (mdata->dev_comp->ipm_design) {
 		mdata->dev = dev;
Signature · 1 line
2.25.1
maintainer
#1 lore raw

drivers/spi/spi-mt65xx.c static int mtk_spi_probe(struct platform_device *pdev) · line 1148

Quoted 4 lines · On Tue, May 23, 2023 at 07:26:08PM +0800, [email protected] wrote:
drivers/spi/spi-mt65xx.c +2 -1
 	if (mdata->dev_comp->ipm_design)
-		master->mode_bits |= SPI_LOOP;
+		master->mode_bits |= SPI_LOOP | SPI_RX_DUAL | SPI_TX_DUAL |
+				     SPI_RX_QUAD | SPI_TX_QUAD;

I don't see any changes to handle these modes?

maintainer
#3 lore raw
Quoted 2 lines · Qii Wang (王琪)

The previous patch was this one:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/spi/spi-mt65xx.c?h=v6.4-rc3&id=9f763fd20da7d892ffaedac0c58d821922f8a674

Please include human readable descriptions of things like commits and issues being discussed in e-mail in your mails, this makes them much easier for humans to read especially when they have no internet access. I do frequently catch up on my mail on flights or while otherwise travelling so this is even more pressing for me than just being about making things a bit easier to read.

maintainer
#4 lore raw
In reply to [email protected]
Quoted 4 lines · On Tue, 23 May 2023 19:26:08 +0800, [email protected] wrote:

this patch advertise the availability of Dual and Quad SPI mode for ipm design.

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next

Thanks!

[1/1] spi: mediatek: advertise the availability of Dual and Quad mode

      commit: dcb2d27444baeba91701bcab38d60c219cb47463

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