Documentation: devicetree: Add DT bindings for UFS host controller
Subsystems (4)
PATCH 1/2 Documentation: devicetree: Add DT bindings for UFS host controller
Compatible list is used in commit 03b1781 but is not documented. Add necessary device tree bindings to describe on-chip UFS host controllers.
Signed-off-by Sujit Reddy Thumma <[email protected]>
--- .../devicetree/bindings/ufs/ufshcd-pltfrm.txt | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt
Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt new file +16 -0
@@ -0,0 +1,16 @@ +* Universal Flash Storage (UFS) Host Controller + +UFSHC nodes are defined to describe on-chip UFS host controllers. +Each UFS controller instance should have its own node. + +Required properties: +- compatible : compatible list, contains "jedec,ufs-1.1" +- interrupts : <interrupt mapping for UFS host controller IRQ> +- reg : <registers mapping> + +Example: + ufshc@0xfc598000 { + compatible = "jedec,ufs-1.1"; + reg = <0xfc598000 0x800>; + interrupts = <0 28 0>; + };
Signature · 2 lines
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation.
PATCH 2/2 scsi: ufs: Fix the response UPIU length setting
The response UPIU length should be in DWORD and not in bytes.
Signed-off-by Maya Erez <[email protected]>
Signed-off-by Sujit Reddy Thumma <[email protected]>
--- drivers/scsi/ufs/ufshcd.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/scsi/ufs/ufshcd.c +1 -1
@@ -911,7 +911,7 @@ static void ufshcd_host_memory_configure(struct ufs_hba *hba) utrdlp[i].prd_table_offset =cpu_to_le16 ((prdt_offset >>2 )); utrdlp[i].response_upiu_length = -cpu_to_le16 (ALIGNED_UPIU_SIZE ); +cpu_to_le16 (ALIGNED_UPIU_SIZE >>2 ); hba->lrb[i].utr_descriptor_ptr = (utrdlp + i); hba->lrb[i].ucd_req_ptr =
Signature · 2 lines
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation.