* [PATCH 0/3] UFSHCD updates
@ 2013-05-14 16:04 Santosh Y
2013-05-14 16:04 ` [PATCH 1/3] ufs: Remove redundant platform_set_drvdata() Santosh Y
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Santosh Y @ 2013-05-14 16:04 UTC (permalink / raw)
To: james.bottomley; +Cc: linux-scsi, vinholikatti, Santosh Y
Hi James,
Please merge the following patches to scsi tree.
Thanks,
Santosh
Geert Uytterhoeven (1):
SCSI_UFSHCD should depend on SCSI_DMA
Sachin Kamat (1):
ufs: Remove redundant platform_set_drvdata()
Sujit Reddy Thumma (1):
Documentation: devicetree: Add DT bindings for UFS host controller
Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt | 16 ++++++++++++++++
drivers/scsi/ufs/Kconfig | 2 +-
drivers/scsi/ufs/ufshcd-pltfrm.c | 1 -
3 files changed, 17 insertions(+), 2 deletions(-)
create mode 100644 Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt
--
1.8.1.2
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/3] ufs: Remove redundant platform_set_drvdata()
2013-05-14 16:04 [PATCH 0/3] UFSHCD updates Santosh Y
@ 2013-05-14 16:04 ` Santosh Y
2013-05-14 16:04 ` [PATCH 2/3] SCSI_UFSHCD should depend on SCSI_DMA Santosh Y
2013-05-14 16:04 ` [PATCH 3/3] Documentation: devicetree: Add DT bindings for UFS host controller Santosh Y
2 siblings, 0 replies; 4+ messages in thread
From: Santosh Y @ 2013-05-14 16:04 UTC (permalink / raw)
To: james.bottomley; +Cc: linux-scsi, vinholikatti, Sachin Kamat, Santosh Y
From: Sachin Kamat <sachin.kamat@linaro.org>
Commit 0998d06310 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Santosh Y <santoshsy@gmail.com>
diff --git a/drivers/scsi/ufs/ufshcd-pltfrm.c b/drivers/scsi/ufs/ufshcd-pltfrm.c
index 03319ac..3db2ee1 100644
--- a/drivers/scsi/ufs/ufshcd-pltfrm.c
+++ b/drivers/scsi/ufs/ufshcd-pltfrm.c
@@ -184,7 +184,6 @@ static int ufshcd_pltfrm_remove(struct platform_device *pdev)
mem_size = resource_size(mem_res);
release_mem_region(mem_res->start, mem_size);
}
- platform_set_drvdata(pdev, NULL);
return 0;
}
--
1.8.1.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/3] SCSI_UFSHCD should depend on SCSI_DMA
2013-05-14 16:04 [PATCH 0/3] UFSHCD updates Santosh Y
2013-05-14 16:04 ` [PATCH 1/3] ufs: Remove redundant platform_set_drvdata() Santosh Y
@ 2013-05-14 16:04 ` Santosh Y
2013-05-14 16:04 ` [PATCH 3/3] Documentation: devicetree: Add DT bindings for UFS host controller Santosh Y
2 siblings, 0 replies; 4+ messages in thread
From: Santosh Y @ 2013-05-14 16:04 UTC (permalink / raw)
To: james.bottomley
Cc: linux-scsi, vinholikatti, Geert Uytterhoeven,
James E.J. Bottomley, Santosh Y
From: Geert Uytterhoeven <geert@linux-m68k.org>
If NO_DMA=y:
drivers/built-in.o: In function `ufshcd_transfer_req_compl':
drivers/scsi/ufs/ufshcd.c:1182: undefined reference to `scsi_dma_unmap'
drivers/built-in.o: In function `ufshcd_map_sg':
drivers/scsi/ufs/ufshcd.c:377: undefined reference to `scsi_dma_map'
drivers/built-in.o: In function `ufshcd_do_reset':
drivers/scsi/ufs/ufshcd.c:912: undefined reference to `scsi_dma_unmap'
drivers/built-in.o: In function `ufshcd_memory_alloc':
drivers/scsi/ufs/ufshcd.c:565: undefined reference to `dma_alloc_coherent'
drivers/built-in.o: In function `ufshcd_free_hba_memory':
drivers/scsi/ufs/ufshcd.c:185: undefined reference to `dma_free_coherent'
drivers/scsi/ufs/ufshcd.c:192: undefined reference to `dma_free_coherent'
drivers/scsi/ufs/ufshcd.c:199: undefined reference to `dma_free_coherent'
drivers/scsi/ufs/ufshcd.c:185: undefined reference to `dma_free_coherent'
drivers/scsi/ufs/ufshcd.c:192: undefined reference to `dma_free_coherent'
drivers/built-in.o:drivers/scsi/ufs/ufshcd.c:199: more undefined references to `dma_free_coherent' follow
drivers/built-in.o: In function `ufshcd_abort':
drivers/scsi/ufs/ufshcd.c:1498: undefined reference to `scsi_dma_unmap'
drivers/built-in.o: In function `ufshcd_device_reset':
drivers/scsi/ufs/ufshcd.c:1436: undefined reference to `scsi_dma_unmap'
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Vinayak Holikatti <vinholikatti@gmail.com>
Cc: James E.J. Bottomley <JBottomley@parallels.com>
Cc: linux-scsi@vger.kernel.org
Signed-off-by: Santosh Y <santoshsy@gmail.com>
diff --git a/drivers/scsi/ufs/Kconfig b/drivers/scsi/ufs/Kconfig
index 35faf24..f07f901 100644
--- a/drivers/scsi/ufs/Kconfig
+++ b/drivers/scsi/ufs/Kconfig
@@ -34,7 +34,7 @@
config SCSI_UFSHCD
tristate "Universal Flash Storage Controller Driver Core"
- depends on SCSI
+ depends on SCSI && SCSI_DMA
---help---
This selects the support for UFS devices in Linux, say Y and make
sure that you know the name of your UFS host adapter (the card
--
1.8.1.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 3/3] Documentation: devicetree: Add DT bindings for UFS host controller
2013-05-14 16:04 [PATCH 0/3] UFSHCD updates Santosh Y
2013-05-14 16:04 ` [PATCH 1/3] ufs: Remove redundant platform_set_drvdata() Santosh Y
2013-05-14 16:04 ` [PATCH 2/3] SCSI_UFSHCD should depend on SCSI_DMA Santosh Y
@ 2013-05-14 16:04 ` Santosh Y
2 siblings, 0 replies; 4+ messages in thread
From: Santosh Y @ 2013-05-14 16:04 UTC (permalink / raw)
To: james.bottomley; +Cc: linux-scsi, vinholikatti, Sujit Reddy Thumma, Santosh Y
From: Sujit Reddy Thumma <sthumma@codeaurora.org>
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 <sthumma@codeaurora.org>
Signed-off-by: Santosh Y <santoshsy@gmail.com>
diff --git a/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt b/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt
new file mode 100644
index 0000000..20468b2
--- /dev/null
+++ b/Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt
@@ -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>;
+ };
--
1.8.1.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-05-14 16:04 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-14 16:04 [PATCH 0/3] UFSHCD updates Santosh Y
2013-05-14 16:04 ` [PATCH 1/3] ufs: Remove redundant platform_set_drvdata() Santosh Y
2013-05-14 16:04 ` [PATCH 2/3] SCSI_UFSHCD should depend on SCSI_DMA Santosh Y
2013-05-14 16:04 ` [PATCH 3/3] Documentation: devicetree: Add DT bindings for UFS host controller Santosh Y
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox