[PATCH 3/3] ARM: DTS: fix the chip select gpios definition in the SPI nodes

2014-07-15 Thread Naveen Krishna Chatradhi
://www.spinics.net/lists/linux-samsung-soc/msg32282.html Signed-off-by: Naveen Krishna Chatradhi Acked-by: Rob Herring Reviewed-by: Javier Martinez Canillas Reviewed-by: Doug Anderson Cc: Tomasz Figa --- This change is being reviewed @ http://www.mail-archive.com/devicetree@vger.kernel.org/msg

[PATCH 0/3] spi: s3c64xx: fix the driver to use "cs-gpios" property

2014-07-15 Thread Naveen Krishna Chatradhi
s SPI flash. This patchset is needed by the changes http://www.gossamer-threads.com/lists/linux/kernel/1951607 Tested-by on boards based on Exynos4, S5P, S3C series SoCs would be appreciated. Naveen Krishna Chatradhi (3): spi: s3c64xx: move property "cs-gpio" from controller_data su

[PATCH 2/3] spi: s3c64xx: validate s3c64xx_spi_csinfo before using

2014-07-15 Thread Naveen Krishna Chatradhi
This patch validates the cs->line (Chip select gpio) and struct s3c64xx_spi_csinfo *cs object for both DT and NON-DT platforms before using in .setup(). Also, check gpio_is_valid(spi->cs_gpio) in cleanup() before freeing up. Signed-off-by: Naveen Krishna Chatradhi Cc: Javier Martinez Ca

[PATCH 1/3] spi: s3c64xx: move "cs-gpio" from subnode to SPI DT node

2014-07-15 Thread Naveen Krishna Chatradhi
3c64xx.c can use spi->cs_gpio instead of parsing the property in the driver. Update the dt-bindings ion spi/spi-samsung.txt Signed-off-by: Naveen Krishna Chatradhi Acked-by: Rob Herring Cc: Javier Martinez Canillas Cc: Doug Anderson Cc: Tomasz Figa --- This patch is a rework of the chan

[PATCH 3/3 v6] ARM: DTS: fix the chip select gpios definition in the SPI nodes

2014-07-13 Thread Naveen Krishna Chatradhi
://www.spinics.net/lists/linux-samsung-soc/msg32282.html Signed-off-by: Naveen Krishna Chatradhi Acked-by: Rob Herring Reviewed-by: Javier Martinez Canillas Reviewed-by: Doug Anderson Cc: Tomasz Figa --- Changes since v5: None Changes since v4: 1. Added reviewed by from Javier and Doug. 2. Maintai

[PATCH 0/3 v6] spi: s3c64xx: use "cs-gpios" in spi node instead of "cs-gpio"

2014-07-13 Thread Naveen Krishna Chatradhi
d of "cs-gpio" defined in slaves "controller-data"(child) node. Also, fixes a compilation warning and corrects the DTS nodes for Exynos4210 based SMDKv310, Exynos4412 based Trats2, Exynos5250 based SMDK5250 boards. Changes since v5: 1. Fixed the "making a GPIO chip select ma

[PATCH 2/3 v6] spi: s3c64xx: for DT platofrms always get the chipselect info from DT node

2014-07-13 Thread Naveen Krishna Chatradhi
Use controller_data structure only for the Non Device tree platforms. For Device tree platforms, always derive the chipselect info from DT node. Signed-off-by: Naveen Krishna Chatradhi Reviewed-by: Javier Martinez Canillas Tested-by: Doug Anderson --- Changes since v5: None Changes since v4

[PATCH 1/3 v6] spi: s3c64xx: fix broken "cs_gpios" usage in the driver

2014-07-13 Thread Naveen Krishna Chatradhi
he breakage. We are assuming it is safe to remove the "cs-gpio"(singular) usage from device tree binding of spi-samsung.txt and makes appropriate changes in the driver to use "cs-gpios"(plural) from SPI device node. Signed-off-by: Naveen Krishna Chatradhi Acked-by: Rob Herrin

[PATCH 2/3 v5] spi: s3c64xx: for DT platofrms always get the chipselect info from DT node

2014-06-12 Thread Naveen Krishna Chatradhi
Use controller_data structure only for the Non Device tree platforms. For Device tree platforms, always derive the chipselect info from DT node. Signed-off-by: Naveen Krishna Chatradhi Reviewed-by: Javier Martinez Canillas Tested-by: Doug Anderson --- Changes since v4: 1. Added reviewed by

[PATCH 3/3 v5] ARM: DTS: fix the chip select gpios definition in the SPI nodes

2014-06-12 Thread Naveen Krishna Chatradhi
://www.spinics.net/lists/linux-samsung-soc/msg32282.html Signed-off-by: Naveen Krishna Chatradhi Acked-by: Rob Herring Reviewed-by: Javier Martinez Canillas Reviewed-by: Doug Anderson Cc: Tomasz Figa --- Changes since v4: 1. Added reviewed by from Javier and Doug. 2. Maintained the "status"

[PATCH 1/3 v5] spi: s3c64xx: fix broken "cs_gpios" usage in the driver

2014-06-12 Thread Naveen Krishna Chatradhi
he breakage. We are assuming it is safe to remove the "cs-gpio"(singular) usage from device tree binding of spi-samsung.txt and makes appropriate changes in the driver to use "cs-gpios"(plural) from SPI device node. Signed-off-by: Naveen Krishna Chatradhi Acked-by: Rob Herring

[PATCH 3/3 v4] ARM: DTS: fix the chip select gpios definition in the SPI nodes

2014-06-12 Thread Naveen Krishna Chatradhi
://www.spinics.net/lists/linux-samsung-soc/msg32282.html Signed-off-by: Naveen Krishna Chatradhi Acked-by: Rob Herring Cc: Javier Martinez Canillas Cc: Doug Anderson Cc: Tomasz Figa --- arch/arm/boot/dts/exynos4210-smdkv310.dts |2 +- arch/arm/boot/dts/exynos4412-trats2.dts |2 +- arch/ar

[PATCH 2/3 v4] spi: s3c64xx: for DT platofrms always get the chipselect info from DT node

2014-06-12 Thread Naveen Krishna Chatradhi
Use controller_data structure only for the Non Device tree platforms. For Device tree platforms, always derive the chipselect info from DT node. Signed-off-by: Naveen Krishna Chatradhi Cc: Javier Martinez Canillas Cc: Doug Anderson Cc: Tomasz Figa --- drivers/spi/spi-s3c64xx.c | 11

[PATCH 1/3 v4] spi: s3c64xx: fix broken "cs_gpios" usage in the driver

2014-06-12 Thread Naveen Krishna Chatradhi
he breakage. We are assuming it is safe to remove the "cs-gpio"(singular) usage from device tree binding of spi-samsung.txt and makes appropriate changes in the driver to use "cs-gpios"(plural) from SPI device node. Signed-off-by: Naveen Krishna Chatradhi Acked-by: Rob Herrin

[PATCH 1/2 v3] spi: s3c64xx: use "cs-gpios" from spi node instead of "cs-gpio"

2014-06-10 Thread Naveen Krishna Chatradhi
d of "cs-gpio" defined in slaves "controller-data"(child) node. Also updates the Device tree Documentation. Signed-off-by: Naveen Krishna Chatradhi Acked-by: Rob Herring Cc: Javier Martinez Canillas Cc: Doug Anderson Cc: Tomasz Figa --- Changes since v2: 1. updated the gp

[PATCH 2/2 v3] ARM: DTS: move "cs-gpio" from "controller-data" to under spi node

2014-06-10 Thread Naveen Krishna Chatradhi
This patch moves the "cs-gpio" field from "controller-data" child node to under the spi device node. Respective changes are preposed to spi-s3c64xx.c driver. Signed-off-by: Naveen Krishna Chatradhi Acked-by: Rob Herring Cc: Javier Martinez Canillas Cc: Doug Ander

[PATCH 1/2 v2] spi: s3c64xx: use "cs-gpios" from spi node instead of "cs-gpio"

2014-06-10 Thread Naveen Krishna Chatradhi
d of "cs-gpio" defined in slaves "controller-data"(child) node. Also updates the Device tree Documentation. Signed-off-by: Naveen Krishna Chatradhi Cc: Javier Martinez Canillas Cc: Doug Anderson --- Changes since v1: 1. fixed a compilation warning thus squashing the

[PATCH 2/2 v2] ARM: DTS: move "cs-gpio" from "controller-data" to under spi node

2014-06-10 Thread Naveen Krishna Chatradhi
This patch moves the "cs-gpio" field from "controller-data" child node to under the spi device node. Respective changes are preposed to spi-s3c64xx.c driver. Signed-off-by: Naveen Krishna Chatradhi Cc: Javier Martinez Canillas Cc: Doug Anderson --- Changes since v1: None

[PATCH 0/2 v2] spi: s3c64xx: use "cs-gpios" in spi node instead of "cs-gpio"

2014-06-10 Thread Naveen Krishna Chatradhi
d of "cs-gpio" defined in slaves "controller-data"(child) node. Also, fixes a compilation warning and corrects the DTS nodes for Exynos4210 based SMDKv310, Exynos4412 based Trats2, Exynos5250 based SMDK5250 boards. Naveen Krishna Chatradhi (2): based on for-next branch of spi.git

[PATCH 1/3] spi: s3c64xx: use "cs-gpios" from spi node instead of "cs-gpio"

2014-06-10 Thread Naveen Krishna Chatradhi
This patch makes the changes in spi-s3c64xx.c driver to make use of "cs-gpios" from SPI node(parent) instead of "cs-gpio" defined in slaves "controller-data"(child) node. Signed-off-by: Naveen Krishna Chatradhi Cc: Javier Martinez Canillas Cc: Doug Anderson

[PATCH 0/3] spi: s3c64xx: use "cs-gpios" in spi node instead of "cs-gpio"

2014-06-10 Thread Naveen Krishna Chatradhi
d of "cs-gpio" defined in slaves "controller-data"(child) node. Also, fixes a compilation warning and corrects the DTS nodes for Exynos4210 based SMDKv310, Exynos4412 based Trats2, Exynos5250 based SMDK5250 boards. Naveen Krishna Chatradhi (3): based on for-next branch of spi

[PATCH 3/3] ARM: DTS: move "cs-gpio" from "controller-data" to under spi node

2014-06-10 Thread Naveen Krishna Chatradhi
This patch moves the "cs-gpio" field from "controller-data" child node to under the spi device node. Respective changes are preposed to spi-s3c64xx.c driver. Signed-off-by: Naveen Krishna Chatradhi Cc: Javier Martinez Canillas Cc: Doug Anderson --- arch/arm/boot/dts/exy

[PATCH 2/3] spi: s3c64xx: remove a compilation warning with an assignment

2014-06-10 Thread Naveen Krishna Chatradhi
This patch returns an integer error value instead of the pointer. "warning: return makes integer from pointer without a cast" Signed-off-by: Naveen Krishna Chatradhi Cc: Javier Martinez Canillas Cc: Doug Anderson --- drivers/spi/spi-s3c64xx.c |2 +- 1 file changed, 1 inser

[PATCH] spi: s3c64xx: Add fix for crash in spi suspend/resume

2012-11-06 Thread Naveen Krishna Chatradhi
part of the driver data. This fixes a SPI driver suspend crash. Signed-off-by: Abhilash Kesavan Signed-off-by: Naveen Krishna Chatradhi --- This was tested on spi-next branch http://git.kernel.org/pub/scm/linux/kernel/git/broonie/misc.git With S2R patches submitted on mailing list. http