All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] spi/pxa2xx-pci: Add common clock framework support in PCI glue layer
@ 2014-07-24 17:10 ` chiau.ee.chew-ral2JQCrhuEAvxtiuMwx3w
  0 siblings, 0 replies; 29+ messages in thread
From: chiau.ee.chew @ 2014-07-24 17:10 UTC (permalink / raw)
  To: Eric Miao, Russell King, Haojian Zhuang, Mark Brown
  Cc: linux-arm-kernel, linux-spi, linux-kernel, Mika Westerberg,
	Chew Chiau Ee, Darren Hart, Kweh Hock Leong, chiauee85

From: Chew, Chiau Ee <chiau.ee.chew@intel.com>

SPI PXA2XX core layer has dependency on common clock framework
to obtain information on host supported clock rate. Thus, we
setup the clock device in the PCI glue layer to enable PCI mode
host pass in the clock rate information.

Signed-off-by: Chew, Chiau Ee <chiau.ee.chew@intel.com>
Acked-by: Kweh, Hock Leong <hock.leong.kweh@intel.com>
---
 changelog v2:
 i. add CONFIG_COMMON_CLK dependency for SPI_PXA2XX_PCI in Kconfig
 ii. add clk cleanup in remove()

 drivers/spi/Kconfig          |    2 +-
 drivers/spi/spi-pxa2xx-pci.c |   21 ++++++++++++++++++++-
 2 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig
index 62e2242..aa005cb 100644
--- a/drivers/spi/Kconfig
+++ b/drivers/spi/Kconfig
@@ -380,7 +380,7 @@ config SPI_PXA2XX
 	  additional documentation can be found a Documentation/spi/pxa2xx.
 
 config SPI_PXA2XX_PCI
-	def_tristate SPI_PXA2XX && PCI
+	def_tristate SPI_PXA2XX && PCI && COMMON_CLK
 
 config SPI_ROCKCHIP
 	tristate "Rockchip SPI controller driver"
diff --git a/drivers/spi/spi-pxa2xx-pci.c b/drivers/spi/spi-pxa2xx-pci.c
index c1865c9..20ebbc7 100644
--- a/drivers/spi/spi-pxa2xx-pci.c
+++ b/drivers/spi/spi-pxa2xx-pci.c
@@ -7,6 +7,8 @@
 #include <linux/of_device.h>
 #include <linux/module.h>
 #include <linux/spi/pxa2xx_spi.h>
+#include <linux/clk.h>
+#include <linux/clk-provider.h>
 
 enum {
 	PORT_CE4100,
@@ -21,6 +23,7 @@ struct pxa_spi_info {
 	int tx_chan_id;
 	int rx_slave_id;
 	int rx_chan_id;
+	unsigned long max_clk_rate;
 };
 
 static struct pxa_spi_info spi_info_configs[] = {
@@ -32,6 +35,7 @@ static struct pxa_spi_info spi_info_configs[] = {
 		.tx_chan_id = -1,
 		.rx_slave_id = -1,
 		.rx_chan_id = -1,
+		.max_clk_rate = 3686400,
 	},
 	[PORT_BYT] = {
 		.type = LPSS_SSP,
@@ -41,6 +45,7 @@ static struct pxa_spi_info spi_info_configs[] = {
 		.tx_chan_id = 0,
 		.rx_slave_id = 1,
 		.rx_chan_id = 1,
+		.max_clk_rate = 50000000,
 	},
 };
 
@@ -53,6 +58,7 @@ static int pxa2xx_spi_pci_probe(struct pci_dev *dev,
 	struct pxa2xx_spi_master spi_pdata;
 	struct ssp_device *ssp;
 	struct pxa_spi_info *c;
+	char buf[40];
 
 	ret = pcim_enable_device(dev);
 	if (ret)
@@ -84,6 +90,12 @@ static int pxa2xx_spi_pci_probe(struct pci_dev *dev,
 	ssp->port_id = (c->port_id >= 0) ? c->port_id : dev->devfn;
 	ssp->type = c->type;
 
+	snprintf(buf, sizeof(buf), "pxa2xx-spi.%d", ssp->port_id);
+	ssp->clk = clk_register_fixed_rate(&dev->dev, buf , NULL,
+					CLK_IS_ROOT, c->max_clk_rate);
+	 if (IS_ERR(ssp->clk))
+		return PTR_ERR(ssp->clk);
+
 	memset(&pi, 0, sizeof(pi));
 	pi.parent = &dev->dev;
 	pi.name = "pxa2xx-spi";
@@ -92,8 +104,10 @@ static int pxa2xx_spi_pci_probe(struct pci_dev *dev,
 	pi.size_data = sizeof(spi_pdata);
 
 	pdev = platform_device_register_full(&pi);
-	if (IS_ERR(pdev))
+	if (IS_ERR(pdev)) {
+		clk_unregister(ssp->clk);
 		return PTR_ERR(pdev);
+	}
 
 	pci_set_drvdata(dev, pdev);
 
@@ -103,8 +117,13 @@ static int pxa2xx_spi_pci_probe(struct pci_dev *dev,
 static void pxa2xx_spi_pci_remove(struct pci_dev *dev)
 {
 	struct platform_device *pdev = pci_get_drvdata(dev);
+	struct pxa2xx_spi_master *spi_pdata;
+
+	spi_pdata = dev_get_platdata(&pdev->dev);
 
 	platform_device_unregister(pdev);
+	clk_unregister(spi_pdata->ssp.clk);
+	pci_set_drvdata(dev, NULL);
 }
 
 static const struct pci_device_id pxa2xx_spi_pci_devices[] = {
-- 
1.7.4.4


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

* [PATCH v2] spi/pxa2xx-pci: Add common clock framework support in PCI glue layer
@ 2014-07-24 17:10 ` chiau.ee.chew-ral2JQCrhuEAvxtiuMwx3w
  0 siblings, 0 replies; 29+ messages in thread
From: chiau.ee.chew-ral2JQCrhuEAvxtiuMwx3w @ 2014-07-24 17:10 UTC (permalink / raw)
  To: Eric Miao, Russell King, Haojian Zhuang, Mark Brown
  Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-spi-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Mika Westerberg,
	Chew Chiau Ee, Darren Hart, Kweh Hock Leong,
	chiauee85-Re5JQEeQqe8AvxtiuMwx3w

From: Chew, Chiau Ee <chiau.ee.chew-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>

SPI PXA2XX core layer has dependency on common clock framework
to obtain information on host supported clock rate. Thus, we
setup the clock device in the PCI glue layer to enable PCI mode
host pass in the clock rate information.

Signed-off-by: Chew, Chiau Ee <chiau.ee.chew-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Acked-by: Kweh, Hock Leong <hock.leong.kweh-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
---
 changelog v2:
 i. add CONFIG_COMMON_CLK dependency for SPI_PXA2XX_PCI in Kconfig
 ii. add clk cleanup in remove()

 drivers/spi/Kconfig          |    2 +-
 drivers/spi/spi-pxa2xx-pci.c |   21 ++++++++++++++++++++-
 2 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig
index 62e2242..aa005cb 100644
--- a/drivers/spi/Kconfig
+++ b/drivers/spi/Kconfig
@@ -380,7 +380,7 @@ config SPI_PXA2XX
 	  additional documentation can be found a Documentation/spi/pxa2xx.
 
 config SPI_PXA2XX_PCI
-	def_tristate SPI_PXA2XX && PCI
+	def_tristate SPI_PXA2XX && PCI && COMMON_CLK
 
 config SPI_ROCKCHIP
 	tristate "Rockchip SPI controller driver"
diff --git a/drivers/spi/spi-pxa2xx-pci.c b/drivers/spi/spi-pxa2xx-pci.c
index c1865c9..20ebbc7 100644
--- a/drivers/spi/spi-pxa2xx-pci.c
+++ b/drivers/spi/spi-pxa2xx-pci.c
@@ -7,6 +7,8 @@
 #include <linux/of_device.h>
 #include <linux/module.h>
 #include <linux/spi/pxa2xx_spi.h>
+#include <linux/clk.h>
+#include <linux/clk-provider.h>
 
 enum {
 	PORT_CE4100,
@@ -21,6 +23,7 @@ struct pxa_spi_info {
 	int tx_chan_id;
 	int rx_slave_id;
 	int rx_chan_id;
+	unsigned long max_clk_rate;
 };
 
 static struct pxa_spi_info spi_info_configs[] = {
@@ -32,6 +35,7 @@ static struct pxa_spi_info spi_info_configs[] = {
 		.tx_chan_id = -1,
 		.rx_slave_id = -1,
 		.rx_chan_id = -1,
+		.max_clk_rate = 3686400,
 	},
 	[PORT_BYT] = {
 		.type = LPSS_SSP,
@@ -41,6 +45,7 @@ static struct pxa_spi_info spi_info_configs[] = {
 		.tx_chan_id = 0,
 		.rx_slave_id = 1,
 		.rx_chan_id = 1,
+		.max_clk_rate = 50000000,
 	},
 };
 
@@ -53,6 +58,7 @@ static int pxa2xx_spi_pci_probe(struct pci_dev *dev,
 	struct pxa2xx_spi_master spi_pdata;
 	struct ssp_device *ssp;
 	struct pxa_spi_info *c;
+	char buf[40];
 
 	ret = pcim_enable_device(dev);
 	if (ret)
@@ -84,6 +90,12 @@ static int pxa2xx_spi_pci_probe(struct pci_dev *dev,
 	ssp->port_id = (c->port_id >= 0) ? c->port_id : dev->devfn;
 	ssp->type = c->type;
 
+	snprintf(buf, sizeof(buf), "pxa2xx-spi.%d", ssp->port_id);
+	ssp->clk = clk_register_fixed_rate(&dev->dev, buf , NULL,
+					CLK_IS_ROOT, c->max_clk_rate);
+	 if (IS_ERR(ssp->clk))
+		return PTR_ERR(ssp->clk);
+
 	memset(&pi, 0, sizeof(pi));
 	pi.parent = &dev->dev;
 	pi.name = "pxa2xx-spi";
@@ -92,8 +104,10 @@ static int pxa2xx_spi_pci_probe(struct pci_dev *dev,
 	pi.size_data = sizeof(spi_pdata);
 
 	pdev = platform_device_register_full(&pi);
-	if (IS_ERR(pdev))
+	if (IS_ERR(pdev)) {
+		clk_unregister(ssp->clk);
 		return PTR_ERR(pdev);
+	}
 
 	pci_set_drvdata(dev, pdev);
 
@@ -103,8 +117,13 @@ static int pxa2xx_spi_pci_probe(struct pci_dev *dev,
 static void pxa2xx_spi_pci_remove(struct pci_dev *dev)
 {
 	struct platform_device *pdev = pci_get_drvdata(dev);
+	struct pxa2xx_spi_master *spi_pdata;
+
+	spi_pdata = dev_get_platdata(&pdev->dev);
 
 	platform_device_unregister(pdev);
+	clk_unregister(spi_pdata->ssp.clk);
+	pci_set_drvdata(dev, NULL);
 }
 
 static const struct pci_device_id pxa2xx_spi_pci_devices[] = {
-- 
1.7.4.4

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* [PATCH v2] spi/pxa2xx-pci: Add common clock framework support in PCI glue layer
@ 2014-07-24 17:10 ` chiau.ee.chew-ral2JQCrhuEAvxtiuMwx3w
  0 siblings, 0 replies; 29+ messages in thread
From: chiau.ee.chew at intel.com @ 2014-07-24 17:10 UTC (permalink / raw)
  To: linux-arm-kernel

From: Chew, Chiau Ee <chiau.ee.chew@intel.com>

SPI PXA2XX core layer has dependency on common clock framework
to obtain information on host supported clock rate. Thus, we
setup the clock device in the PCI glue layer to enable PCI mode
host pass in the clock rate information.

Signed-off-by: Chew, Chiau Ee <chiau.ee.chew@intel.com>
Acked-by: Kweh, Hock Leong <hock.leong.kweh@intel.com>
---
 changelog v2:
 i. add CONFIG_COMMON_CLK dependency for SPI_PXA2XX_PCI in Kconfig
 ii. add clk cleanup in remove()

 drivers/spi/Kconfig          |    2 +-
 drivers/spi/spi-pxa2xx-pci.c |   21 ++++++++++++++++++++-
 2 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig
index 62e2242..aa005cb 100644
--- a/drivers/spi/Kconfig
+++ b/drivers/spi/Kconfig
@@ -380,7 +380,7 @@ config SPI_PXA2XX
 	  additional documentation can be found a Documentation/spi/pxa2xx.
 
 config SPI_PXA2XX_PCI
-	def_tristate SPI_PXA2XX && PCI
+	def_tristate SPI_PXA2XX && PCI && COMMON_CLK
 
 config SPI_ROCKCHIP
 	tristate "Rockchip SPI controller driver"
diff --git a/drivers/spi/spi-pxa2xx-pci.c b/drivers/spi/spi-pxa2xx-pci.c
index c1865c9..20ebbc7 100644
--- a/drivers/spi/spi-pxa2xx-pci.c
+++ b/drivers/spi/spi-pxa2xx-pci.c
@@ -7,6 +7,8 @@
 #include <linux/of_device.h>
 #include <linux/module.h>
 #include <linux/spi/pxa2xx_spi.h>
+#include <linux/clk.h>
+#include <linux/clk-provider.h>
 
 enum {
 	PORT_CE4100,
@@ -21,6 +23,7 @@ struct pxa_spi_info {
 	int tx_chan_id;
 	int rx_slave_id;
 	int rx_chan_id;
+	unsigned long max_clk_rate;
 };
 
 static struct pxa_spi_info spi_info_configs[] = {
@@ -32,6 +35,7 @@ static struct pxa_spi_info spi_info_configs[] = {
 		.tx_chan_id = -1,
 		.rx_slave_id = -1,
 		.rx_chan_id = -1,
+		.max_clk_rate = 3686400,
 	},
 	[PORT_BYT] = {
 		.type = LPSS_SSP,
@@ -41,6 +45,7 @@ static struct pxa_spi_info spi_info_configs[] = {
 		.tx_chan_id = 0,
 		.rx_slave_id = 1,
 		.rx_chan_id = 1,
+		.max_clk_rate = 50000000,
 	},
 };
 
@@ -53,6 +58,7 @@ static int pxa2xx_spi_pci_probe(struct pci_dev *dev,
 	struct pxa2xx_spi_master spi_pdata;
 	struct ssp_device *ssp;
 	struct pxa_spi_info *c;
+	char buf[40];
 
 	ret = pcim_enable_device(dev);
 	if (ret)
@@ -84,6 +90,12 @@ static int pxa2xx_spi_pci_probe(struct pci_dev *dev,
 	ssp->port_id = (c->port_id >= 0) ? c->port_id : dev->devfn;
 	ssp->type = c->type;
 
+	snprintf(buf, sizeof(buf), "pxa2xx-spi.%d", ssp->port_id);
+	ssp->clk = clk_register_fixed_rate(&dev->dev, buf , NULL,
+					CLK_IS_ROOT, c->max_clk_rate);
+	 if (IS_ERR(ssp->clk))
+		return PTR_ERR(ssp->clk);
+
 	memset(&pi, 0, sizeof(pi));
 	pi.parent = &dev->dev;
 	pi.name = "pxa2xx-spi";
@@ -92,8 +104,10 @@ static int pxa2xx_spi_pci_probe(struct pci_dev *dev,
 	pi.size_data = sizeof(spi_pdata);
 
 	pdev = platform_device_register_full(&pi);
-	if (IS_ERR(pdev))
+	if (IS_ERR(pdev)) {
+		clk_unregister(ssp->clk);
 		return PTR_ERR(pdev);
+	}
 
 	pci_set_drvdata(dev, pdev);
 
@@ -103,8 +117,13 @@ static int pxa2xx_spi_pci_probe(struct pci_dev *dev,
 static void pxa2xx_spi_pci_remove(struct pci_dev *dev)
 {
 	struct platform_device *pdev = pci_get_drvdata(dev);
+	struct pxa2xx_spi_master *spi_pdata;
+
+	spi_pdata = dev_get_platdata(&pdev->dev);
 
 	platform_device_unregister(pdev);
+	clk_unregister(spi_pdata->ssp.clk);
+	pci_set_drvdata(dev, NULL);
 }
 
 static const struct pci_device_id pxa2xx_spi_pci_devices[] = {
-- 
1.7.4.4

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

* Re: [PATCH v2] spi/pxa2xx-pci: Add common clock framework support in PCI glue layer
@ 2014-07-25  5:32   ` Mika Westerberg
  0 siblings, 0 replies; 29+ messages in thread
From: Mika Westerberg @ 2014-07-25  5:32 UTC (permalink / raw)
  To: chiau.ee.chew
  Cc: Eric Miao, Russell King, Haojian Zhuang, Mark Brown,
	linux-arm-kernel, linux-spi, linux-kernel, Darren Hart,
	Kweh Hock Leong, chiauee85

On Fri, Jul 25, 2014 at 01:10:54AM +0800, chiau.ee.chew@intel.com wrote:
> From: Chew, Chiau Ee <chiau.ee.chew@intel.com>
> 
> SPI PXA2XX core layer has dependency on common clock framework
> to obtain information on host supported clock rate. Thus, we
> setup the clock device in the PCI glue layer to enable PCI mode
> host pass in the clock rate information.
> 
> Signed-off-by: Chew, Chiau Ee <chiau.ee.chew@intel.com>
> Acked-by: Kweh, Hock Leong <hock.leong.kweh@intel.com>

Looks reasonable,

Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>

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

* Re: [PATCH v2] spi/pxa2xx-pci: Add common clock framework support in PCI glue layer
@ 2014-07-25  5:32   ` Mika Westerberg
  0 siblings, 0 replies; 29+ messages in thread
From: Mika Westerberg @ 2014-07-25  5:32 UTC (permalink / raw)
  To: chiau.ee.chew-ral2JQCrhuEAvxtiuMwx3w
  Cc: Eric Miao, Russell King, Haojian Zhuang, Mark Brown,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-spi-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Darren Hart,
	Kweh Hock Leong, chiauee85-Re5JQEeQqe8AvxtiuMwx3w

On Fri, Jul 25, 2014 at 01:10:54AM +0800, chiau.ee.chew-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org wrote:
> From: Chew, Chiau Ee <chiau.ee.chew-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> 
> SPI PXA2XX core layer has dependency on common clock framework
> to obtain information on host supported clock rate. Thus, we
> setup the clock device in the PCI glue layer to enable PCI mode
> host pass in the clock rate information.
> 
> Signed-off-by: Chew, Chiau Ee <chiau.ee.chew-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> Acked-by: Kweh, Hock Leong <hock.leong.kweh-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>

Looks reasonable,

Acked-by: Mika Westerberg <mika.westerberg-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* [PATCH v2] spi/pxa2xx-pci: Add common clock framework support in PCI glue layer
@ 2014-07-25  5:32   ` Mika Westerberg
  0 siblings, 0 replies; 29+ messages in thread
From: Mika Westerberg @ 2014-07-25  5:32 UTC (permalink / raw)
  To: linux-arm-kernel

On Fri, Jul 25, 2014 at 01:10:54AM +0800, chiau.ee.chew at intel.com wrote:
> From: Chew, Chiau Ee <chiau.ee.chew@intel.com>
> 
> SPI PXA2XX core layer has dependency on common clock framework
> to obtain information on host supported clock rate. Thus, we
> setup the clock device in the PCI glue layer to enable PCI mode
> host pass in the clock rate information.
> 
> Signed-off-by: Chew, Chiau Ee <chiau.ee.chew@intel.com>
> Acked-by: Kweh, Hock Leong <hock.leong.kweh@intel.com>

Looks reasonable,

Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>

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

* Re: [PATCH v2] spi/pxa2xx-pci: Add common clock framework support in PCI glue layer
  2014-07-25  5:32   ` Mika Westerberg
@ 2014-07-29 16:13     ` Andrea Adami
  -1 siblings, 0 replies; 29+ messages in thread
From: Andrea Adami @ 2014-07-29 16:13 UTC (permalink / raw)
  To: Mika Westerberg
  Cc: chiau.ee.chew, Kweh Hock Leong, Russell King, Darren Hart,
	chiauee85, linux-kernel, Haojian Zhuang, linux-spi, Mark Brown,
	Eric Miao, linux-arm-kernel

On Fri, Jul 25, 2014 at 7:32 AM, Mika Westerberg
<mika.westerberg@linux.intel.com> wrote:
> On Fri, Jul 25, 2014 at 01:10:54AM +0800, chiau.ee.chew@intel.com wrote:
>> From: Chew, Chiau Ee <chiau.ee.chew@intel.com>
>>
>> SPI PXA2XX core layer has dependency on common clock framework
>> to obtain information on host supported clock rate. Thus, we
>> setup the clock device in the PCI glue layer to enable PCI mode
>> host pass in the clock rate information.
>>
>> Signed-off-by: Chew, Chiau Ee <chiau.ee.chew@intel.com>
>> Acked-by: Kweh, Hock Leong <hock.leong.kweh@intel.com>
>
> Looks reasonable,
>
> Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

Hi,

note that a previous version of the patch breaks spi on pxa machines:
tested on pxa250 poodle and pxa255 corgi.
The patch is included in linux-Yocto since 3.14.

The evident error is the absence of the touchscreen and on corgi a total crash.
pxa2xx-spi: probe of pxa2xx-spi.1 failed with error -2

I sent the full logs to the pxa maintainers.
Please let me know if there are any trivial fixes to apply on the top
of this patch for the non-pci, non-DT boards or better workarounds.

Thanks

Andrea

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

* [PATCH v2] spi/pxa2xx-pci: Add common clock framework support in PCI glue layer
@ 2014-07-29 16:13     ` Andrea Adami
  0 siblings, 0 replies; 29+ messages in thread
From: Andrea Adami @ 2014-07-29 16:13 UTC (permalink / raw)
  To: linux-arm-kernel

On Fri, Jul 25, 2014 at 7:32 AM, Mika Westerberg
<mika.westerberg@linux.intel.com> wrote:
> On Fri, Jul 25, 2014 at 01:10:54AM +0800, chiau.ee.chew at intel.com wrote:
>> From: Chew, Chiau Ee <chiau.ee.chew@intel.com>
>>
>> SPI PXA2XX core layer has dependency on common clock framework
>> to obtain information on host supported clock rate. Thus, we
>> setup the clock device in the PCI glue layer to enable PCI mode
>> host pass in the clock rate information.
>>
>> Signed-off-by: Chew, Chiau Ee <chiau.ee.chew@intel.com>
>> Acked-by: Kweh, Hock Leong <hock.leong.kweh@intel.com>
>
> Looks reasonable,
>
> Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

Hi,

note that a previous version of the patch breaks spi on pxa machines:
tested on pxa250 poodle and pxa255 corgi.
The patch is included in linux-Yocto since 3.14.

The evident error is the absence of the touchscreen and on corgi a total crash.
pxa2xx-spi: probe of pxa2xx-spi.1 failed with error -2

I sent the full logs to the pxa maintainers.
Please let me know if there are any trivial fixes to apply on the top
of this patch for the non-pci, non-DT boards or better workarounds.

Thanks

Andrea

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

* Re: [PATCH v2] spi/pxa2xx-pci: Add common clock framework support in PCI glue layer
@ 2014-07-29 18:55       ` Mark Brown
  0 siblings, 0 replies; 29+ messages in thread
From: Mark Brown @ 2014-07-29 18:55 UTC (permalink / raw)
  To: Andrea Adami
  Cc: Mika Westerberg, chiau.ee.chew, Kweh Hock Leong, Russell King,
	Darren Hart, chiauee85, linux-kernel, Haojian Zhuang, linux-spi,
	Eric Miao, linux-arm-kernel

[-- Attachment #1: Type: text/plain, Size: 284 bytes --]

On Tue, Jul 29, 2014 at 06:13:06PM +0200, Andrea Adami wrote:

> note that a previous version of the patch breaks spi on pxa machines:
> tested on pxa250 poodle and pxa255 corgi.
> The patch is included in linux-Yocto since 3.14.

The interesting question is if this version works...

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

* Re: [PATCH v2] spi/pxa2xx-pci: Add common clock framework support in PCI glue layer
@ 2014-07-29 18:55       ` Mark Brown
  0 siblings, 0 replies; 29+ messages in thread
From: Mark Brown @ 2014-07-29 18:55 UTC (permalink / raw)
  To: Andrea Adami
  Cc: Mika Westerberg, chiau.ee.chew-ral2JQCrhuEAvxtiuMwx3w,
	Kweh Hock Leong, Russell King, Darren Hart,
	chiauee85-Re5JQEeQqe8AvxtiuMwx3w,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Haojian Zhuang,
	linux-spi-u79uwXL29TY76Z2rM5mHXA, Eric Miao, linux-arm-kernel

[-- Attachment #1: Type: text/plain, Size: 284 bytes --]

On Tue, Jul 29, 2014 at 06:13:06PM +0200, Andrea Adami wrote:

> note that a previous version of the patch breaks spi on pxa machines:
> tested on pxa250 poodle and pxa255 corgi.
> The patch is included in linux-Yocto since 3.14.

The interesting question is if this version works...

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

* [PATCH v2] spi/pxa2xx-pci: Add common clock framework support in PCI glue layer
@ 2014-07-29 18:55       ` Mark Brown
  0 siblings, 0 replies; 29+ messages in thread
From: Mark Brown @ 2014-07-29 18:55 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Jul 29, 2014 at 06:13:06PM +0200, Andrea Adami wrote:

> note that a previous version of the patch breaks spi on pxa machines:
> tested on pxa250 poodle and pxa255 corgi.
> The patch is included in linux-Yocto since 3.14.

The interesting question is if this version works...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140729/46e3c43f/attachment.sig>

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

* Re: [PATCH v2] spi/pxa2xx-pci: Add common clock framework support in PCI glue layer
@ 2014-07-29 22:06         ` Andrea Adami
  0 siblings, 0 replies; 29+ messages in thread
From: Andrea Adami @ 2014-07-29 22:06 UTC (permalink / raw)
  To: Mark Brown
  Cc: Mika Westerberg, chiau.ee.chew, Kweh Hock Leong, Russell King,
	Darren Hart, chiauee85, linux-kernel, Haojian Zhuang, linux-spi,
	Eric Miao, linux-arm-kernel

On Tue, Jul 29, 2014 at 8:55 PM, Mark Brown <broonie@kernel.org> wrote:
> On Tue, Jul 29, 2014 at 06:13:06PM +0200, Andrea Adami wrote:
>
>> note that a previous version of the patch breaks spi on pxa machines:
>> tested on pxa250 poodle and pxa255 corgi.
>> The patch is included in linux-Yocto since 3.14.
>
> The interesting question is if this version works...

Happy to report that I could finally test on poodle/pxa250 the current
v2 and the patch doesn't seem to disturb the probe.
Sorry for the noise.

Andrea

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

* Re: [PATCH v2] spi/pxa2xx-pci: Add common clock framework support in PCI glue layer
@ 2014-07-29 22:06         ` Andrea Adami
  0 siblings, 0 replies; 29+ messages in thread
From: Andrea Adami @ 2014-07-29 22:06 UTC (permalink / raw)
  To: Mark Brown
  Cc: Mika Westerberg, chiau.ee.chew-ral2JQCrhuEAvxtiuMwx3w,
	Kweh Hock Leong, Russell King, Darren Hart,
	chiauee85-Re5JQEeQqe8AvxtiuMwx3w,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Haojian Zhuang,
	linux-spi-u79uwXL29TY76Z2rM5mHXA, Eric Miao, linux-arm-kernel

On Tue, Jul 29, 2014 at 8:55 PM, Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote:
> On Tue, Jul 29, 2014 at 06:13:06PM +0200, Andrea Adami wrote:
>
>> note that a previous version of the patch breaks spi on pxa machines:
>> tested on pxa250 poodle and pxa255 corgi.
>> The patch is included in linux-Yocto since 3.14.
>
> The interesting question is if this version works...

Happy to report that I could finally test on poodle/pxa250 the current
v2 and the patch doesn't seem to disturb the probe.
Sorry for the noise.

Andrea
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* [PATCH v2] spi/pxa2xx-pci: Add common clock framework support in PCI glue layer
@ 2014-07-29 22:06         ` Andrea Adami
  0 siblings, 0 replies; 29+ messages in thread
From: Andrea Adami @ 2014-07-29 22:06 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Jul 29, 2014 at 8:55 PM, Mark Brown <broonie@kernel.org> wrote:
> On Tue, Jul 29, 2014 at 06:13:06PM +0200, Andrea Adami wrote:
>
>> note that a previous version of the patch breaks spi on pxa machines:
>> tested on pxa250 poodle and pxa255 corgi.
>> The patch is included in linux-Yocto since 3.14.
>
> The interesting question is if this version works...

Happy to report that I could finally test on poodle/pxa250 the current
v2 and the patch doesn't seem to disturb the probe.
Sorry for the noise.

Andrea

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

* Re: [PATCH v2] spi/pxa2xx-pci: Add common clock framework support in PCI glue layer
@ 2014-08-04 15:55           ` Darren Hart
  0 siblings, 0 replies; 29+ messages in thread
From: Darren Hart @ 2014-08-04 15:55 UTC (permalink / raw)
  To: Andrea Adami, Mark Brown
  Cc: Mika Westerberg, chiau.ee.chew, Kweh Hock Leong, Russell King,
	chiauee85, linux-kernel, Haojian Zhuang, linux-spi, Eric Miao,
	linux-arm-kernel

On 7/29/14, 15:06, "Andrea Adami" <andrea.adami@gmail.com> wrote:

>On Tue, Jul 29, 2014 at 8:55 PM, Mark Brown <broonie@kernel.org> wrote:
>> On Tue, Jul 29, 2014 at 06:13:06PM +0200, Andrea Adami wrote:
>>
>>> note that a previous version of the patch breaks spi on pxa machines:
>>> tested on pxa250 poodle and pxa255 corgi.
>>> The patch is included in linux-Yocto since 3.14.
>>
>> The interesting question is if this version works...
>
>Happy to report that I could finally test on poodle/pxa250 the current
>v2 and the patch doesn't seem to disturb the probe.
>Sorry for the noise.
>
>Andrea
>

I tested this (v2) on the MinnowBoard-Max (Baytrail Atom E3825) in PCI
mode and successfully attached an MCP32XX ADC and tested it's IIO
interface.

-- 
Darren Hart					Open Source Technology Center
darren.hart@intel.com				            Intel Corporation




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

* Re: [PATCH v2] spi/pxa2xx-pci: Add common clock framework support in PCI glue layer
@ 2014-08-04 15:55           ` Darren Hart
  0 siblings, 0 replies; 29+ messages in thread
From: Darren Hart @ 2014-08-04 15:55 UTC (permalink / raw)
  To: Andrea Adami, Mark Brown
  Cc: Mika Westerberg, chiau.ee.chew-ral2JQCrhuEAvxtiuMwx3w,
	Kweh Hock Leong, Russell King, chiauee85-Re5JQEeQqe8AvxtiuMwx3w,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Haojian Zhuang,
	linux-spi-u79uwXL29TY76Z2rM5mHXA, Eric Miao, linux-arm-kernel

On 7/29/14, 15:06, "Andrea Adami" <andrea.adami-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

>On Tue, Jul 29, 2014 at 8:55 PM, Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote:
>> On Tue, Jul 29, 2014 at 06:13:06PM +0200, Andrea Adami wrote:
>>
>>> note that a previous version of the patch breaks spi on pxa machines:
>>> tested on pxa250 poodle and pxa255 corgi.
>>> The patch is included in linux-Yocto since 3.14.
>>
>> The interesting question is if this version works...
>
>Happy to report that I could finally test on poodle/pxa250 the current
>v2 and the patch doesn't seem to disturb the probe.
>Sorry for the noise.
>
>Andrea
>

I tested this (v2) on the MinnowBoard-Max (Baytrail Atom E3825) in PCI
mode and successfully attached an MCP32XX ADC and tested it's IIO
interface.

-- 
Darren Hart					Open Source Technology Center
darren.hart-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org				            Intel Corporation



--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* [PATCH v2] spi/pxa2xx-pci: Add common clock framework support in PCI glue layer
@ 2014-08-04 15:55           ` Darren Hart
  0 siblings, 0 replies; 29+ messages in thread
From: Darren Hart @ 2014-08-04 15:55 UTC (permalink / raw)
  To: linux-arm-kernel

On 7/29/14, 15:06, "Andrea Adami" <andrea.adami@gmail.com> wrote:

>On Tue, Jul 29, 2014 at 8:55 PM, Mark Brown <broonie@kernel.org> wrote:
>> On Tue, Jul 29, 2014 at 06:13:06PM +0200, Andrea Adami wrote:
>>
>>> note that a previous version of the patch breaks spi on pxa machines:
>>> tested on pxa250 poodle and pxa255 corgi.
>>> The patch is included in linux-Yocto since 3.14.
>>
>> The interesting question is if this version works...
>
>Happy to report that I could finally test on poodle/pxa250 the current
>v2 and the patch doesn't seem to disturb the probe.
>Sorry for the noise.
>
>Andrea
>

I tested this (v2) on the MinnowBoard-Max (Baytrail Atom E3825) in PCI
mode and successfully attached an MCP32XX ADC and tested it's IIO
interface.

-- 
Darren Hart					Open Source Technology Center
darren.hart at intel.com				            Intel Corporation

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

* Re: [PATCH v2] spi/pxa2xx-pci: Add common clock framework support in PCI glue layer
@ 2014-08-07  8:43             ` Mika Westerberg
  0 siblings, 0 replies; 29+ messages in thread
From: Mika Westerberg @ 2014-08-07  8:43 UTC (permalink / raw)
  To: Mark Brown, Darren Hart
  Cc: Andrea Adami, chiau.ee.chew, Kweh Hock Leong, Russell King,
	chiauee85, linux-kernel, Haojian Zhuang, linux-spi, Eric Miao,
	linux-arm-kernel

On Mon, Aug 04, 2014 at 08:55:50AM -0700, Darren Hart wrote:
> On 7/29/14, 15:06, "Andrea Adami" <andrea.adami@gmail.com> wrote:
> 
> >On Tue, Jul 29, 2014 at 8:55 PM, Mark Brown <broonie@kernel.org> wrote:
> >> On Tue, Jul 29, 2014 at 06:13:06PM +0200, Andrea Adami wrote:
> >>
> >>> note that a previous version of the patch breaks spi on pxa machines:
> >>> tested on pxa250 poodle and pxa255 corgi.
> >>> The patch is included in linux-Yocto since 3.14.
> >>
> >> The interesting question is if this version works...
> >
> >Happy to report that I could finally test on poodle/pxa250 the current
> >v2 and the patch doesn't seem to disturb the probe.
> >Sorry for the noise.
> >
> >Andrea
> >
> 
> I tested this (v2) on the MinnowBoard-Max (Baytrail Atom E3825) in PCI
> mode and successfully attached an MCP32XX ADC and tested it's IIO
> interface.

Mark,

Any idea what happened to this patch? I didn't find it in linux-next and
it looks like it is not merged with mainline either.

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

* Re: [PATCH v2] spi/pxa2xx-pci: Add common clock framework support in PCI glue layer
@ 2014-08-07  8:43             ` Mika Westerberg
  0 siblings, 0 replies; 29+ messages in thread
From: Mika Westerberg @ 2014-08-07  8:43 UTC (permalink / raw)
  To: Mark Brown, Darren Hart
  Cc: Andrea Adami, chiau.ee.chew-ral2JQCrhuEAvxtiuMwx3w,
	Kweh Hock Leong, Russell King, chiauee85-Re5JQEeQqe8AvxtiuMwx3w,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Haojian Zhuang,
	linux-spi-u79uwXL29TY76Z2rM5mHXA, Eric Miao, linux-arm-kernel

On Mon, Aug 04, 2014 at 08:55:50AM -0700, Darren Hart wrote:
> On 7/29/14, 15:06, "Andrea Adami" <andrea.adami-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> 
> >On Tue, Jul 29, 2014 at 8:55 PM, Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote:
> >> On Tue, Jul 29, 2014 at 06:13:06PM +0200, Andrea Adami wrote:
> >>
> >>> note that a previous version of the patch breaks spi on pxa machines:
> >>> tested on pxa250 poodle and pxa255 corgi.
> >>> The patch is included in linux-Yocto since 3.14.
> >>
> >> The interesting question is if this version works...
> >
> >Happy to report that I could finally test on poodle/pxa250 the current
> >v2 and the patch doesn't seem to disturb the probe.
> >Sorry for the noise.
> >
> >Andrea
> >
> 
> I tested this (v2) on the MinnowBoard-Max (Baytrail Atom E3825) in PCI
> mode and successfully attached an MCP32XX ADC and tested it's IIO
> interface.

Mark,

Any idea what happened to this patch? I didn't find it in linux-next and
it looks like it is not merged with mainline either.
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* [PATCH v2] spi/pxa2xx-pci: Add common clock framework support in PCI glue layer
@ 2014-08-07  8:43             ` Mika Westerberg
  0 siblings, 0 replies; 29+ messages in thread
From: Mika Westerberg @ 2014-08-07  8:43 UTC (permalink / raw)
  To: linux-arm-kernel

On Mon, Aug 04, 2014 at 08:55:50AM -0700, Darren Hart wrote:
> On 7/29/14, 15:06, "Andrea Adami" <andrea.adami@gmail.com> wrote:
> 
> >On Tue, Jul 29, 2014 at 8:55 PM, Mark Brown <broonie@kernel.org> wrote:
> >> On Tue, Jul 29, 2014 at 06:13:06PM +0200, Andrea Adami wrote:
> >>
> >>> note that a previous version of the patch breaks spi on pxa machines:
> >>> tested on pxa250 poodle and pxa255 corgi.
> >>> The patch is included in linux-Yocto since 3.14.
> >>
> >> The interesting question is if this version works...
> >
> >Happy to report that I could finally test on poodle/pxa250 the current
> >v2 and the patch doesn't seem to disturb the probe.
> >Sorry for the noise.
> >
> >Andrea
> >
> 
> I tested this (v2) on the MinnowBoard-Max (Baytrail Atom E3825) in PCI
> mode and successfully attached an MCP32XX ADC and tested it's IIO
> interface.

Mark,

Any idea what happened to this patch? I didn't find it in linux-next and
it looks like it is not merged with mainline either.

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

* RE: [PATCH v2] spi/pxa2xx-pci: Add common clock framework support in PCI glue layer
@ 2014-08-13 11:59               ` Kweh, Hock Leong
  0 siblings, 0 replies; 29+ messages in thread
From: Kweh, Hock Leong @ 2014-08-13 11:59 UTC (permalink / raw)
  To: Mika Westerberg, Mark Brown, Darren Hart
  Cc: Andrea Adami, Chew, Chiau Ee, Russell King, chiauee85,
	linux-kernel, Haojian Zhuang, linux-spi, Eric Miao,
	linux-arm-kernel

> -----Original Message-----
> From: Mika Westerberg [mailto:mika.westerberg@linux.intel.com]
> Sent: Thursday, August 07, 2014 4:43 PM
> To: Mark Brown; Darren Hart
> Cc: Andrea Adami; Chew, Chiau Ee; Kweh, Hock Leong; Russell King;
> chiauee85@gmail.com; linux-kernel@vger.kernel.org; Haojian Zhuang; linux-
> spi@vger.kernel.org; Eric Miao; linux-arm-kernel
> Subject: Re: [PATCH v2] spi/pxa2xx-pci: Add common clock framework
> support in PCI glue layer
> 
> On Mon, Aug 04, 2014 at 08:55:50AM -0700, Darren Hart wrote:
> > On 7/29/14, 15:06, "Andrea Adami" <andrea.adami@gmail.com> wrote:
> >
> > >On Tue, Jul 29, 2014 at 8:55 PM, Mark Brown <broonie@kernel.org> wrote:
> > >> On Tue, Jul 29, 2014 at 06:13:06PM +0200, Andrea Adami wrote:
> > >>
> > >>> note that a previous version of the patch breaks spi on pxa machines:
> > >>> tested on pxa250 poodle and pxa255 corgi.
> > >>> The patch is included in linux-Yocto since 3.14.
> > >>
> > >> The interesting question is if this version works...
> > >
> > >Happy to report that I could finally test on poodle/pxa250 the
> > >current
> > >v2 and the patch doesn't seem to disturb the probe.
> > >Sorry for the noise.
> > >
> > >Andrea
> > >
> >
> > I tested this (v2) on the MinnowBoard-Max (Baytrail Atom E3825) in PCI
> > mode and successfully attached an MCP32XX ADC and tested it's IIO
> > interface.
> 
> Mark,
> 
> Any idea what happened to this patch? I didn't find it in linux-next and it
> looks like it is not merged with mainline either.

Hi Mark,

Would like to follow up with you about this patch. Do you have plan to merge it in ?


Regards,
Wilson

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

* RE: [PATCH v2] spi/pxa2xx-pci: Add common clock framework support in PCI glue layer
@ 2014-08-13 11:59               ` Kweh, Hock Leong
  0 siblings, 0 replies; 29+ messages in thread
From: Kweh, Hock Leong @ 2014-08-13 11:59 UTC (permalink / raw)
  To: Mika Westerberg, Mark Brown, Darren Hart
  Cc: Andrea Adami, Chew, Chiau Ee, Russell King,
	chiauee85-Re5JQEeQqe8AvxtiuMwx3w,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Haojian Zhuang,
	linux-spi-u79uwXL29TY76Z2rM5mHXA, Eric Miao, linux-arm-kernel

> -----Original Message-----
> From: Mika Westerberg [mailto:mika.westerberg-VuQAYsv1563Yd54FQh9/CA@public.gmane.org]
> Sent: Thursday, August 07, 2014 4:43 PM
> To: Mark Brown; Darren Hart
> Cc: Andrea Adami; Chew, Chiau Ee; Kweh, Hock Leong; Russell King;
> chiauee85-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; Haojian Zhuang; linux-
> spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; Eric Miao; linux-arm-kernel
> Subject: Re: [PATCH v2] spi/pxa2xx-pci: Add common clock framework
> support in PCI glue layer
> 
> On Mon, Aug 04, 2014 at 08:55:50AM -0700, Darren Hart wrote:
> > On 7/29/14, 15:06, "Andrea Adami" <andrea.adami-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> >
> > >On Tue, Jul 29, 2014 at 8:55 PM, Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote:
> > >> On Tue, Jul 29, 2014 at 06:13:06PM +0200, Andrea Adami wrote:
> > >>
> > >>> note that a previous version of the patch breaks spi on pxa machines:
> > >>> tested on pxa250 poodle and pxa255 corgi.
> > >>> The patch is included in linux-Yocto since 3.14.
> > >>
> > >> The interesting question is if this version works...
> > >
> > >Happy to report that I could finally test on poodle/pxa250 the
> > >current
> > >v2 and the patch doesn't seem to disturb the probe.
> > >Sorry for the noise.
> > >
> > >Andrea
> > >
> >
> > I tested this (v2) on the MinnowBoard-Max (Baytrail Atom E3825) in PCI
> > mode and successfully attached an MCP32XX ADC and tested it's IIO
> > interface.
> 
> Mark,
> 
> Any idea what happened to this patch? I didn't find it in linux-next and it
> looks like it is not merged with mainline either.

Hi Mark,

Would like to follow up with you about this patch. Do you have plan to merge it in ?


Regards,
Wilson
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* [PATCH v2] spi/pxa2xx-pci: Add common clock framework support in PCI glue layer
@ 2014-08-13 11:59               ` Kweh, Hock Leong
  0 siblings, 0 replies; 29+ messages in thread
From: Kweh, Hock Leong @ 2014-08-13 11:59 UTC (permalink / raw)
  To: linux-arm-kernel

> -----Original Message-----
> From: Mika Westerberg [mailto:mika.westerberg at linux.intel.com]
> Sent: Thursday, August 07, 2014 4:43 PM
> To: Mark Brown; Darren Hart
> Cc: Andrea Adami; Chew, Chiau Ee; Kweh, Hock Leong; Russell King;
> chiauee85 at gmail.com; linux-kernel at vger.kernel.org; Haojian Zhuang; linux-
> spi at vger.kernel.org; Eric Miao; linux-arm-kernel
> Subject: Re: [PATCH v2] spi/pxa2xx-pci: Add common clock framework
> support in PCI glue layer
> 
> On Mon, Aug 04, 2014 at 08:55:50AM -0700, Darren Hart wrote:
> > On 7/29/14, 15:06, "Andrea Adami" <andrea.adami@gmail.com> wrote:
> >
> > >On Tue, Jul 29, 2014 at 8:55 PM, Mark Brown <broonie@kernel.org> wrote:
> > >> On Tue, Jul 29, 2014 at 06:13:06PM +0200, Andrea Adami wrote:
> > >>
> > >>> note that a previous version of the patch breaks spi on pxa machines:
> > >>> tested on pxa250 poodle and pxa255 corgi.
> > >>> The patch is included in linux-Yocto since 3.14.
> > >>
> > >> The interesting question is if this version works...
> > >
> > >Happy to report that I could finally test on poodle/pxa250 the
> > >current
> > >v2 and the patch doesn't seem to disturb the probe.
> > >Sorry for the noise.
> > >
> > >Andrea
> > >
> >
> > I tested this (v2) on the MinnowBoard-Max (Baytrail Atom E3825) in PCI
> > mode and successfully attached an MCP32XX ADC and tested it's IIO
> > interface.
> 
> Mark,
> 
> Any idea what happened to this patch? I didn't find it in linux-next and it
> looks like it is not merged with mainline either.

Hi Mark,

Would like to follow up with you about this patch. Do you have plan to merge it in ?


Regards,
Wilson

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

* Re: [PATCH v2] spi/pxa2xx-pci: Add common clock framework support in PCI glue layer
@ 2014-08-13 19:20                 ` Mark Brown
  0 siblings, 0 replies; 29+ messages in thread
From: Mark Brown @ 2014-08-13 19:20 UTC (permalink / raw)
  To: Kweh, Hock Leong
  Cc: Mika Westerberg, Darren Hart, Andrea Adami, Chew, Chiau Ee,
	Russell King, chiauee85, linux-kernel, Haojian Zhuang, linux-spi,
	Eric Miao, linux-arm-kernel

[-- Attachment #1: Type: text/plain, Size: 895 bytes --]

On Wed, Aug 13, 2014 at 11:59:14AM +0000, Kweh, Hock Leong wrote:

> > Any idea what happened to this patch? I didn't find it in linux-next and it
> > looks like it is not merged with mainline either.

> Would like to follow up with you about this patch. Do you have plan to merge it in ?
> 

Please don't send contentless pings, it just adds to the amount of mail
that needs reading.  Since I don't want to encourage people to do this I
tend to respond to contentless pings by delaying things, otherwise I
might give the impression that it's a good idea (and the "oh, I did
something with that" that comes from deleting the nag makes that happen
subconsciously anyway).

Please also allow a reasonable time for review, less than two weeks (to
when Mika first nagged) is a bit aggressive for something that isn't an
urgent bug fix.  People might take vacation or just be busy.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

* Re: [PATCH v2] spi/pxa2xx-pci: Add common clock framework support in PCI glue layer
@ 2014-08-13 19:20                 ` Mark Brown
  0 siblings, 0 replies; 29+ messages in thread
From: Mark Brown @ 2014-08-13 19:20 UTC (permalink / raw)
  To: Kweh, Hock Leong
  Cc: Mika Westerberg, Darren Hart, Andrea Adami, Chew, Chiau Ee,
	Russell King, chiauee85-Re5JQEeQqe8AvxtiuMwx3w,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Haojian Zhuang,
	linux-spi-u79uwXL29TY76Z2rM5mHXA, Eric Miao, linux-arm-kernel

[-- Attachment #1: Type: text/plain, Size: 895 bytes --]

On Wed, Aug 13, 2014 at 11:59:14AM +0000, Kweh, Hock Leong wrote:

> > Any idea what happened to this patch? I didn't find it in linux-next and it
> > looks like it is not merged with mainline either.

> Would like to follow up with you about this patch. Do you have plan to merge it in ?
> 

Please don't send contentless pings, it just adds to the amount of mail
that needs reading.  Since I don't want to encourage people to do this I
tend to respond to contentless pings by delaying things, otherwise I
might give the impression that it's a good idea (and the "oh, I did
something with that" that comes from deleting the nag makes that happen
subconsciously anyway).

Please also allow a reasonable time for review, less than two weeks (to
when Mika first nagged) is a bit aggressive for something that isn't an
urgent bug fix.  People might take vacation or just be busy.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

* [PATCH v2] spi/pxa2xx-pci: Add common clock framework support in PCI glue layer
@ 2014-08-13 19:20                 ` Mark Brown
  0 siblings, 0 replies; 29+ messages in thread
From: Mark Brown @ 2014-08-13 19:20 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, Aug 13, 2014 at 11:59:14AM +0000, Kweh, Hock Leong wrote:

> > Any idea what happened to this patch? I didn't find it in linux-next and it
> > looks like it is not merged with mainline either.

> Would like to follow up with you about this patch. Do you have plan to merge it in ?
> 

Please don't send contentless pings, it just adds to the amount of mail
that needs reading.  Since I don't want to encourage people to do this I
tend to respond to contentless pings by delaying things, otherwise I
might give the impression that it's a good idea (and the "oh, I did
something with that" that comes from deleting the nag makes that happen
subconsciously anyway).

Please also allow a reasonable time for review, less than two weeks (to
when Mika first nagged) is a bit aggressive for something that isn't an
urgent bug fix.  People might take vacation or just be busy.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140813/6962b16c/attachment.sig>

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

* Re: [PATCH v2] spi/pxa2xx-pci: Add common clock framework support in PCI glue layer
@ 2014-08-16 22:20   ` Mark Brown
  0 siblings, 0 replies; 29+ messages in thread
From: Mark Brown @ 2014-08-16 22:20 UTC (permalink / raw)
  To: chiau.ee.chew
  Cc: Eric Miao, Russell King, Haojian Zhuang, linux-arm-kernel,
	linux-spi, linux-kernel, Mika Westerberg, Darren Hart,
	Kweh Hock Leong, chiauee85

[-- Attachment #1: Type: text/plain, Size: 389 bytes --]

On Fri, Jul 25, 2014 at 01:10:54AM +0800, chiau.ee.chew@intel.com wrote:
> From: Chew, Chiau Ee <chiau.ee.chew@intel.com>
> 
> SPI PXA2XX core layer has dependency on common clock framework
> to obtain information on host supported clock rate. Thus, we
> setup the clock device in the PCI glue layer to enable PCI mode
> host pass in the clock rate information.

Applied, thanks.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

* Re: [PATCH v2] spi/pxa2xx-pci: Add common clock framework support in PCI glue layer
@ 2014-08-16 22:20   ` Mark Brown
  0 siblings, 0 replies; 29+ messages in thread
From: Mark Brown @ 2014-08-16 22:20 UTC (permalink / raw)
  To: chiau.ee.chew-ral2JQCrhuEAvxtiuMwx3w
  Cc: Eric Miao, Russell King, Haojian Zhuang,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-spi-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Mika Westerberg,
	Darren Hart, Kweh Hock Leong, chiauee85-Re5JQEeQqe8AvxtiuMwx3w

[-- Attachment #1: Type: text/plain, Size: 449 bytes --]

On Fri, Jul 25, 2014 at 01:10:54AM +0800, chiau.ee.chew-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org wrote:
> From: Chew, Chiau Ee <chiau.ee.chew-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> 
> SPI PXA2XX core layer has dependency on common clock framework
> to obtain information on host supported clock rate. Thus, we
> setup the clock device in the PCI glue layer to enable PCI mode
> host pass in the clock rate information.

Applied, thanks.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

* [PATCH v2] spi/pxa2xx-pci: Add common clock framework support in PCI glue layer
@ 2014-08-16 22:20   ` Mark Brown
  0 siblings, 0 replies; 29+ messages in thread
From: Mark Brown @ 2014-08-16 22:20 UTC (permalink / raw)
  To: linux-arm-kernel

On Fri, Jul 25, 2014 at 01:10:54AM +0800, chiau.ee.chew at intel.com wrote:
> From: Chew, Chiau Ee <chiau.ee.chew@intel.com>
> 
> SPI PXA2XX core layer has dependency on common clock framework
> to obtain information on host supported clock rate. Thus, we
> setup the clock device in the PCI glue layer to enable PCI mode
> host pass in the clock rate information.

Applied, thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140816/eb77b4d6/attachment.sig>

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

end of thread, other threads:[~2014-08-16 22:20 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-24 17:10 [PATCH v2] spi/pxa2xx-pci: Add common clock framework support in PCI glue layer chiau.ee.chew
2014-07-24 17:10 ` chiau.ee.chew at intel.com
2014-07-24 17:10 ` chiau.ee.chew-ral2JQCrhuEAvxtiuMwx3w
2014-07-25  5:32 ` Mika Westerberg
2014-07-25  5:32   ` Mika Westerberg
2014-07-25  5:32   ` Mika Westerberg
2014-07-29 16:13   ` Andrea Adami
2014-07-29 16:13     ` Andrea Adami
2014-07-29 18:55     ` Mark Brown
2014-07-29 18:55       ` Mark Brown
2014-07-29 18:55       ` Mark Brown
2014-07-29 22:06       ` Andrea Adami
2014-07-29 22:06         ` Andrea Adami
2014-07-29 22:06         ` Andrea Adami
2014-08-04 15:55         ` Darren Hart
2014-08-04 15:55           ` Darren Hart
2014-08-04 15:55           ` Darren Hart
2014-08-07  8:43           ` Mika Westerberg
2014-08-07  8:43             ` Mika Westerberg
2014-08-07  8:43             ` Mika Westerberg
2014-08-13 11:59             ` Kweh, Hock Leong
2014-08-13 11:59               ` Kweh, Hock Leong
2014-08-13 11:59               ` Kweh, Hock Leong
2014-08-13 19:20               ` Mark Brown
2014-08-13 19:20                 ` Mark Brown
2014-08-13 19:20                 ` Mark Brown
2014-08-16 22:20 ` Mark Brown
2014-08-16 22:20   ` Mark Brown
2014-08-16 22:20   ` 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.