linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RESEND] dt-bindings: ufs: qcom: allow 'dma-coherent' property
@ 2023-01-16 16:42 Johan Hovold
  2023-01-18 23:48 ` Martin K. Petersen
  2023-01-27  3:22 ` Martin K. Petersen
  0 siblings, 2 replies; 3+ messages in thread
From: Johan Hovold @ 2023-01-16 16:42 UTC (permalink / raw)
  To: James E.J. Bottomley, Martin K. Petersen
  Cc: Andy Gross, Bjorn Andersson, Konrad Dybcio, Alim Akhtar,
	Avri Altman, Bart Van Assche, Rob Herring, Krzysztof Kozlowski,
	linux-arm-msm, linux-scsi, devicetree, linux-kernel,
	Johan Hovold, Rob Herring

UFS controllers may be cache coherent and must be marked as such in the
devicetree to avoid data corruption.

This is specifically needed on recent Qualcomm platforms like SC8280XP.

Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---

James and Martin,

I'm resending as reminder in case you missed the first submission which
included an arm64 dts update and also did not have you on CC as I was
following scripts/get_maintainer.pl too literally:

	https://lore.kernel.org/all/20221205100837.29212-1-johan+linaro@kernel.org/

I've added Rob and Bjorn's Reviewed-by tags from the above thread.

Could you take this one through the scsi tree?

Johan


 Documentation/devicetree/bindings/ufs/qcom,ufs.yaml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml
index f2d6298d926c..1f1d286749c0 100644
--- a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml
+++ b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml
@@ -44,6 +44,8 @@ properties:
     minItems: 8
     maxItems: 11
 
+  dma-coherent: true
+
   interconnects:
     minItems: 2
     maxItems: 2
-- 
2.38.2


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

* Re: [PATCH RESEND] dt-bindings: ufs: qcom: allow 'dma-coherent' property
  2023-01-16 16:42 [PATCH RESEND] dt-bindings: ufs: qcom: allow 'dma-coherent' property Johan Hovold
@ 2023-01-18 23:48 ` Martin K. Petersen
  2023-01-27  3:22 ` Martin K. Petersen
  1 sibling, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2023-01-18 23:48 UTC (permalink / raw)
  To: Johan Hovold
  Cc: James E.J. Bottomley, Martin K. Petersen, Andy Gross,
	Bjorn Andersson, Konrad Dybcio, Alim Akhtar, Avri Altman,
	Bart Van Assche, Rob Herring, Krzysztof Kozlowski, linux-arm-msm,
	linux-scsi, devicetree, linux-kernel, Rob Herring


Johan,

> UFS controllers may be cache coherent and must be marked as such in the
> devicetree to avoid data corruption.

Applied to 6.3/scsi-staging, thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering

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

* Re: [PATCH RESEND] dt-bindings: ufs: qcom: allow 'dma-coherent' property
  2023-01-16 16:42 [PATCH RESEND] dt-bindings: ufs: qcom: allow 'dma-coherent' property Johan Hovold
  2023-01-18 23:48 ` Martin K. Petersen
@ 2023-01-27  3:22 ` Martin K. Petersen
  1 sibling, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2023-01-27  3:22 UTC (permalink / raw)
  To: James E.J. Bottomley, Johan Hovold
  Cc: Martin K . Petersen, Andy Gross, Bjorn Andersson, Konrad Dybcio,
	Alim Akhtar, Avri Altman, Bart Van Assche, Rob Herring,
	Krzysztof Kozlowski, linux-arm-msm, linux-scsi, devicetree,
	linux-kernel, Rob Herring

On Mon, 16 Jan 2023 17:42:36 +0100, Johan Hovold wrote:

> UFS controllers may be cache coherent and must be marked as such in the
> devicetree to avoid data corruption.
> 
> This is specifically needed on recent Qualcomm platforms like SC8280XP.
> 
> 

Applied to 6.3/scsi-queue, thanks!

[1/1] dt-bindings: ufs: qcom: allow 'dma-coherent' property
      https://git.kernel.org/mkp/scsi/c/85e182b48a33

-- 
Martin K. Petersen	Oracle Linux Engineering

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

end of thread, other threads:[~2023-01-27  3:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-16 16:42 [PATCH RESEND] dt-bindings: ufs: qcom: allow 'dma-coherent' property Johan Hovold
2023-01-18 23:48 ` Martin K. Petersen
2023-01-27  3:22 ` Martin K. Petersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).