All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] spi: spi-geni-qcom: Remove confusing comment about setting the watermark
@ 2021-07-12 15:50 Douglas Anderson
  2021-07-14 10:14 ` Vinod Koul
  2021-07-14 15:55 ` Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Douglas Anderson @ 2021-07-12 15:50 UTC (permalink / raw)
  To: Mark Brown
  Cc: akashast, vkoul, swboyd, Douglas Anderson, Andy Gross,
	Bjorn Andersson, linux-arm-msm, linux-kernel, linux-spi

The comment in setup_fifo_xfer() about setting the watermark wasn't
quite proper grammar and also stopped making sense around commit
6d66507d9b55 ("spi: spi-geni-qcom: Don't wait to start 1st transfer if
transmitting"). After that commit we actually start the transfer
_before_ the watermark interrupt comes.

I don't think the comment really has any value anymore. We've already
got a comment when we grab the spinlock saying that our interrupt can
come any time as a result of the things in the locked section. Let's
just remove it.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
---

 drivers/spi/spi-geni-qcom.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/drivers/spi/spi-geni-qcom.c b/drivers/spi/spi-geni-qcom.c
index b3861fb88711..2f51421e2a71 100644
--- a/drivers/spi/spi-geni-qcom.c
+++ b/drivers/spi/spi-geni-qcom.c
@@ -549,12 +549,6 @@ static void setup_fifo_xfer(struct spi_transfer *xfer,
 	 */
 	spin_lock_irq(&mas->lock);
 	geni_se_setup_m_cmd(se, m_cmd, FRAGMENTATION);
-
-	/*
-	 * TX_WATERMARK_REG should be set after SPI configuration and
-	 * setting up GENI SE engine, as driver starts data transfer
-	 * for the watermark interrupt.
-	 */
 	if (m_cmd & SPI_TX_ONLY) {
 		if (geni_spi_handle_tx(mas))
 			writel(mas->tx_wm, se->base + SE_GENI_TX_WATERMARK_REG);
-- 
2.32.0.93.g670b81a890-goog


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] spi: spi-geni-qcom: Remove confusing comment about setting the watermark
  2021-07-12 15:50 [PATCH] spi: spi-geni-qcom: Remove confusing comment about setting the watermark Douglas Anderson
@ 2021-07-14 10:14 ` Vinod Koul
  2021-07-14 15:55 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Vinod Koul @ 2021-07-14 10:14 UTC (permalink / raw)
  To: Douglas Anderson
  Cc: Mark Brown, akashast, swboyd, Andy Gross, Bjorn Andersson,
	linux-arm-msm, linux-kernel, linux-spi

On 12-07-21, 08:50, Douglas Anderson wrote:
> The comment in setup_fifo_xfer() about setting the watermark wasn't
> quite proper grammar and also stopped making sense around commit
> 6d66507d9b55 ("spi: spi-geni-qcom: Don't wait to start 1st transfer if
> transmitting"). After that commit we actually start the transfer
> _before_ the watermark interrupt comes.
> 
> I don't think the comment really has any value anymore. We've already
> got a comment when we grab the spinlock saying that our interrupt can
> come any time as a result of the things in the locked section. Let's
> just remove it.

Reviewed-by: Vinod Koul <vkoul@kernel.org>

-- 
~Vinod

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] spi: spi-geni-qcom: Remove confusing comment about setting the watermark
  2021-07-12 15:50 [PATCH] spi: spi-geni-qcom: Remove confusing comment about setting the watermark Douglas Anderson
  2021-07-14 10:14 ` Vinod Koul
@ 2021-07-14 15:55 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2021-07-14 15:55 UTC (permalink / raw)
  To: Douglas Anderson
  Cc: Mark Brown, Andy Gross, Bjorn Andersson, swboyd, vkoul, akashast,
	linux-arm-msm, linux-spi, linux-kernel

On Mon, 12 Jul 2021 08:50:17 -0700, Douglas Anderson wrote:
> The comment in setup_fifo_xfer() about setting the watermark wasn't
> quite proper grammar and also stopped making sense around commit
> 6d66507d9b55 ("spi: spi-geni-qcom: Don't wait to start 1st transfer if
> transmitting"). After that commit we actually start the transfer
> _before_ the watermark interrupt comes.
> 
> I don't think the comment really has any value anymore. We've already
> got a comment when we grab the spinlock saying that our interrupt can
> come any time as a result of the things in the locked section. Let's
> just remove it.

Applied to

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

Thanks!

[1/1] spi: spi-geni-qcom: Remove confusing comment about setting the watermark
      commit: 57f1c12e455fc6c4c0db2c9f14e57b95822c2321

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-07-14 15:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-12 15:50 [PATCH] spi: spi-geni-qcom: Remove confusing comment about setting the watermark Douglas Anderson
2021-07-14 10:14 ` Vinod Koul
2021-07-14 15:55 ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.