All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RESEND 0/4] spi: sh-msiof: Add DT support
@ 2012-11-07 11:40 ` Bastian Hecht
  0 siblings, 0 replies; 31+ messages in thread
From: Bastian Hecht @ 2012-11-07 11:40 UTC (permalink / raw)
  To: linux-arm-kernel

Patch resend from 21st september, this time cover letter included. Added ARM-ML
and SH-ML as recipients too.

The first patch contains a minor cleanup that becomes possible due to older
changes in the SuperH code.

In the 2nd patch we add the SH-Mobile chips as possible architecture requirement
for the MSIOF driver.

Then we come to the core of the patchset: DeviceTree support for sh-msiof in
patch 3 and patch 4.

There are minimal changes to the first publication to the patchset like changing
a comment string, so I just resend it as v1 again as there are no comments to the
original patchset.

Bastian Hecht (4):
  spi: sh-msiof: Remove unneeded clock name
  spi: Add SH Mobile series as dependency to MSIOF controller
  spi: sh-msiof: Add device tree parsing to driver
  devicetree: Add Renesas SH Mobile MSIOF spi controller binding doc

 Documentation/devicetree/bindings/spi/sh-msiof.txt |   12 ++++
 drivers/spi/Kconfig                                |    4 +-
 drivers/spi/spi-sh-msiof.c                         |   60 ++++++++++++++++++--
 3 files changed, 69 insertions(+), 7 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/spi/sh-msiof.txt

-- 
1.7.5.4


^ permalink raw reply	[flat|nested] 31+ messages in thread
* [PATCH 1/4] spi: sh-msiof: Remove unneeded clock name
@ 2012-09-21 11:00 Bastian Hecht
       [not found] ` <1348225249-1294-1-git-send-email-hechtb-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 31+ messages in thread
From: Bastian Hecht @ 2012-09-21 11:00 UTC (permalink / raw)
  To: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
  Cc: magnus.damm-Re5JQEeQqe8AvxtiuMwx3w

clk_get() no longer needs a character string for associating the right
clock as this is done via the device struct now.

Signed-off-by: Bastian Hecht <hechtb-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
 drivers/spi/spi-sh-msiof.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/spi/spi-sh-msiof.c b/drivers/spi/spi-sh-msiof.c
index 1f466bc..96358d0 100644
--- a/drivers/spi/spi-sh-msiof.c
+++ b/drivers/spi/spi-sh-msiof.c
@@ -597,7 +597,6 @@ static int sh_msiof_spi_probe(struct platform_device *pdev)
 	struct resource	*r;
 	struct spi_master *master;
 	struct sh_msiof_spi_priv *p;
-	char clk_name[16];
 	int i;
 	int ret;
 
@@ -614,10 +613,9 @@ static int sh_msiof_spi_probe(struct platform_device *pdev)
 	p->info = pdev->dev.platform_data;
 	init_completion(&p->done);
 
-	snprintf(clk_name, sizeof(clk_name), "msiof%d", pdev->id);
-	p->clk = clk_get(&pdev->dev, clk_name);
+	p->clk = clk_get(&pdev->dev, NULL);
 	if (IS_ERR(p->clk)) {
-		dev_err(&pdev->dev, "cannot get clock \"%s\"\n", clk_name);
+		dev_err(&pdev->dev, "cannot get clock\n");
 		ret = PTR_ERR(p->clk);
 		goto err1;
 	}
-- 
1.7.5.4


------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html

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

end of thread, other threads:[~2012-12-12 11:26 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-07 11:40 [PATCH RESEND 0/4] spi: sh-msiof: Add DT support Bastian Hecht
2012-11-07 11:40 ` Bastian Hecht
2012-11-07 11:40 ` Bastian Hecht
2012-11-07 11:40 ` [PATCH 1/4] spi: sh-msiof: Remove unneeded clock name Bastian Hecht
2012-11-07 11:40   ` Bastian Hecht
2012-11-07 11:40   ` Bastian Hecht
2012-12-06 14:05   ` Grant Likely
2012-12-06 14:05     ` Grant Likely
2012-12-06 14:05     ` Grant Likely
2012-11-07 11:40 ` [PATCH 2/4] spi: Add SH Mobile series as dependency to MSIOF controller Bastian Hecht
2012-11-07 11:40   ` Bastian Hecht
2012-11-07 11:40   ` Bastian Hecht
2012-11-07 11:40 ` [PATCH 3/4] spi: sh-msiof: Add device tree parsing to driver Bastian Hecht
2012-11-07 11:40   ` Bastian Hecht
2012-11-07 11:40   ` Bastian Hecht
2012-12-06 14:14   ` Grant Likely
2012-12-06 14:14     ` Grant Likely
2012-12-06 14:14     ` Grant Likely
2012-11-07 11:40 ` [PATCH 4/4] devicetree: Add Renesas SH Mobile MSIOF spi controller binding doc Bastian Hecht
2012-11-07 11:40   ` Bastian Hecht
2012-11-07 11:40   ` Bastian Hecht
2012-12-06 14:08   ` Grant Likely
2012-12-06 14:08     ` Grant Likely
2012-12-06 14:08     ` Grant Likely
2012-12-06 14:13     ` Grant Likely
2012-12-06 14:13       ` Grant Likely
2012-12-06 14:13       ` Grant Likely
2012-12-12 11:26       ` Bastian Hecht
2012-12-12 11:26         ` Bastian Hecht
2012-12-12 11:26         ` Bastian Hecht
  -- strict thread matches above, loose matches on Subject: below --
2012-09-21 11:00 [PATCH 1/4] spi: sh-msiof: Remove unneeded clock name Bastian Hecht
     [not found] ` <1348225249-1294-1-git-send-email-hechtb-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-09-21 11:00   ` [PATCH 3/4] spi: sh-msiof: Add device tree parsing to driver Bastian Hecht

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.