Re: [PATCH 0/8] i.MX6 PCIe binding change and MSI support

2014-03-30 Thread Marek Vasut
On Friday, March 28, 2014 at 05:52:51 PM, Lucas Stach wrote:
 While working on MSI support for the i.MX6 PCIe host driver
 it has been discovered that the binding for this host controller
 is broken in many ways (refer to the patch descriptions for more
 info) and was introduced without proper discussion about what
 should/should not be in the binding.
 
 This series fixes this and minimizes the difference of the
 i.MX6 binding to the common designware PCIe binding. I'm aware
 that this is a quite radical change, but I think it's justified
 to do this as long as there aren't many user of the old binding
 (most of the optional properties in the binding aren't even
 implemented).
 
 Looking forward to your feedback.

Other but 2/8, which needs further discussion,

Reviewed-by: Marek Vasut ma...@denx.de

Best regards,
Marek Vasut
--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 1/8] ARM: imx6q-clk: parent lvds_gate from lvds_sel

2014-03-30 Thread Marek Vasut
On Friday, March 28, 2014 at 05:52:52 PM, Lucas Stach wrote:
 Allows fror proper refcounting of the parent clocks
 when enabling the clock output on CLK1/2 pads.
 
 Signed-off-by: Lucas Stach l.st...@pengutronix.de

Looks OK:

Reviewed-by: Marek Vasut ma...@denx.de

Best regards,
Marek Vasut
--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 2/8] PCI: designware: split Exynos and i.MX bindings

2014-03-30 Thread Marek Vasut
On Friday, March 28, 2014 at 05:52:53 PM, Lucas Stach wrote:
 The glue around the core designware IP is significantly
 different between the Exynos and i.MX implementation,
 which is reflected in the DT bindings.
 
 This changes the i.MX6 binding to reuse as much as
 possible from the common designware binding and
 removes old cruft.
 
 I removed the optional GPIOs with the following reasoning:
 - disable-gpio: endpoint specific GPIO, not currently
   wired up in any code. Should be handled by the PCI device
   driver, not the host controller driver.
 - wake-up-gpio: same as above.
 - power-on-gpio: No user in any upstream DT. This should
   be handled by a regulator which shouldn't be controlled
   by the host driver, but rather by the PCI device driver.

This power-on-gpio should indeed be handled by the regulator, but the regulator 
cannot be handled by the PCIe device driver. This power-on-gpio must be 
operated 
on per-slot basis if I understand it correctly, so it cannot be controlled by 
the host controller driver either.

The reason why this cannot be controlled by the device driver is that if the 
device is powered down, it won't be detected on the PCIe bus, thus it cannot 
enable the regulator which will power up the slot the device is sitting in.

[...]

btw. am I blind or do I just not see devicetree-discuss on CC ?

Best regards,
Marek Vasut
--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH] spi: s3c24xx: Convert to use devm_kzalloc

2014-03-30 Thread Axel Lin
Simplify the cleanup code.

Signed-off-by: Axel Lin axel@ingics.com
---
 drivers/spi/spi-s3c24xx.c | 10 +++---
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/drivers/spi/spi-s3c24xx.c b/drivers/spi/spi-s3c24xx.c
index bed2338..6db14e5 100644
--- a/drivers/spi/spi-s3c24xx.c
+++ b/drivers/spi/spi-s3c24xx.c
@@ -183,7 +183,9 @@ static int s3c24xx_spi_setup(struct spi_device *spi)
 
/* allocate settings on the first call */
if (!cs) {
-   cs = kzalloc(sizeof(struct s3c24xx_spi_devstate), GFP_KERNEL);
+   cs = devm_kzalloc(spi-dev,
+ sizeof(struct s3c24xx_spi_devstate),
+ GFP_KERNEL);
if (!cs) {
dev_err(spi-dev, no memory for controller state\n);
return -ENOMEM;
@@ -209,11 +211,6 @@ static int s3c24xx_spi_setup(struct spi_device *spi)
return 0;
 }
 
-static void s3c24xx_spi_cleanup(struct spi_device *spi)
-{
-   kfree(spi-controller_state);
-}
-
 static inline unsigned int hw_txbyte(struct s3c24xx_spi *hw, int count)
 {
return hw-tx ? hw-tx[count] : 0;
@@ -543,7 +540,6 @@ static int s3c24xx_spi_probe(struct platform_device *pdev)
hw-bitbang.txrx_bufs  = s3c24xx_spi_txrx;
 
hw-master-setup  = s3c24xx_spi_setup;
-   hw-master-cleanup = s3c24xx_spi_cleanup;
 
dev_dbg(hw-dev, bitbang at %p\n, hw-bitbang);
 
-- 
1.8.3.2



--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html