2019-08-30 04:34:38

by Rayagonda Kokatanur

[permalink] [raw]
Subject: [PATCH V3 1/1] spi: bcm-qspi: Make BSPI default mode

The spi-nor controller defaults to BSPI mode, hence switch back
to its default mode after MSPI operations (write or erase)
are completed.

Signed-off-by: Rayagonda Kokatanur <[email protected]>
Reviewed-by: Mark Brown <[email protected]>
Reviewed-by: Kamal Dasu <[email protected]>
---
changes from V2:
- Address code review comment from Mark Brown about changelog.

Changes from V1:
- Address code review comment from Mark Brown.

drivers/spi/spi-bcm-qspi.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/spi/spi-bcm-qspi.c b/drivers/spi/spi-bcm-qspi.c
index 902bdbf..46a811a 100644
--- a/drivers/spi/spi-bcm-qspi.c
+++ b/drivers/spi/spi-bcm-qspi.c
@@ -897,6 +897,7 @@ static int bcm_qspi_transfer_one(struct spi_master *master,

read_from_hw(qspi, slots);
}
+ bcm_qspi_enable_bspi(qspi);

return 0;
}
--
1.9.1


2019-08-30 11:46:45

by Mark Brown

[permalink] [raw]
Subject: Applied "spi: bcm-qspi: Make BSPI default mode" to the spi tree

The patch

spi: bcm-qspi: Make BSPI default mode

has been applied to the spi tree at

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

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

From ca105398430de8c11e5e56a7bbfb00746ac5a268 Mon Sep 17 00:00:00 2001
From: Rayagonda Kokatanur <[email protected]>
Date: Fri, 30 Aug 2019 09:58:45 +0530
Subject: [PATCH] spi: bcm-qspi: Make BSPI default mode

The spi-nor controller defaults to BSPI mode, hence switch back
to its default mode after MSPI operations (write or erase)
are completed.

Signed-off-by: Rayagonda Kokatanur <[email protected]>
Reviewed-by: Mark Brown <[email protected]>
Reviewed-by: Kamal Dasu <[email protected]>
Link: https://lore.kernel.org/r/1567139325-7912-1-git-send-email-rayagonda.kokatanur@broadcom.com
Signed-off-by: Mark Brown <[email protected]>
---
drivers/spi/spi-bcm-qspi.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/spi/spi-bcm-qspi.c b/drivers/spi/spi-bcm-qspi.c
index 0dbfd2496ab8..7a3531856491 100644
--- a/drivers/spi/spi-bcm-qspi.c
+++ b/drivers/spi/spi-bcm-qspi.c
@@ -897,6 +897,7 @@ static int bcm_qspi_transfer_one(struct spi_master *master,

read_from_hw(qspi, slots);
}
+ bcm_qspi_enable_bspi(qspi);

return 0;
}
--
2.20.1