[PATCH] i2c-imx: Add missing preporcessor directives

2015-08-14 Thread Andrey Smirnov
On non-PowerPC platforms call to i2c_fsl_set_clk() will try to obtain I2C clock freqency from i2c_fsl->clk, however that field would not be initialized if CONFIG_COMMON_CLK is not set. This patch add conditional compilation directives to make sure that i2c_fsl_set_clk() is not called if CONFIG_COMM

[PATCH v2] lib: libfile: Do not ignore errors in close()

2015-08-14 Thread Andrey Smirnov
Some character devices may perform meaningful operations in their implementation of close() -- a good example would be socfpga.c which checks if the FPGA was programmed succesfully in it's close() method -- so ignoring return value of this call may cause false positives in checking exit status for

[PATCH] i2c-imx: Fix memory leak in i2c_fsl_probe()

2015-08-14 Thread Andrey Smirnov
All points of failure in the code of i2c_fsl_probe() happen after the allocation of i2c_fsl, so all of them have to perform necessary cleanup setups in case of failure. Signed-off-by: Andrey Smirnov --- drivers/i2c/busses/i2c-imx.c | 12 1 file changed, 8 insertions(+), 4 deletions(

[PATCH 5/5] ARM: imx6: select OFTREE

2015-08-14 Thread Lucas Stach
i.MX6 is fully DT enabled and the already selected COMMON_CLK_OF_PROVIDER needs OFTREE support to build properly. Fixes: arch/arm/mach-imx/clk-imx6.c: In function 'imx6_ccm_probe': arch/arm/mach-imx/clk-imx6.c:500:2: error: invalid use of undefined type 'struct clk_onecell_data' arch/arm/mach-

[PATCH 1/5] video: simple-panel: depend on GPIOLIB

2015-08-14 Thread Lucas Stach
Fixes: In file included from include/gpio.h:4:0, from drivers/video/simple-panel.c:26: fatal error: mach/gpio.h: No such file or directory Signed-off-by: Lucas Stach --- drivers/video/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/video/Kconfig b/drivers/vid

[PATCH 3/5] video: ipu-fb: mark internally used functions as static

2015-08-14 Thread Lucas Stach
Fixes symbol clashes with the IPUv3 driver: In function `ipu_ch_param_write_field': drivers/video/imx-ipu-v3/ipu-common.c:103: multiple definition of `ipu_ch_param_write_field' drivers/video/imx-ipu-fb.c:359: first defined here In function `ipu_cpmem_set_format_rgb': drivers/video/imx-ipu-v3/ipu-

[PATCH 4/5] video: fbcon: needs console support

2015-08-14 Thread Lucas Stach
Fixes: In function `register_fbconsole': drivers/video/fbconsole.c:425: undefined reference to `console_register Signed-off-by: Lucas Stach --- drivers/video/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index 9a520c586971..bb8bbb539481

[PATCH 2/5] video: mtl017: depend on GPIOLIB

2015-08-14 Thread Lucas Stach
Fixes: In file included from include/gpio.h:4:0, from drivers/video/simple-panel.c:26: fatal error: mach/gpio.h: No such file or directory Signed-off-by: Lucas Stach --- drivers/video/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/video/Kconfig b/drivers/vid

Re: Passing devicetree to kernel

2015-08-14 Thread Steffen Trumtrar
Hi! On Thu, Aug 13, 2015 at 09:58:51AM -0700, Raj Swaminathan wrote: > Hi Lucas, > > I am using Altera's cyclone 5 SoCFPGA. > > Barebox version 2015.04.0 > Linux is rocketboards version 3.18.0 > Why are you using exactly these versions? Just curious. > I put some debug statements into the cod

Re: Passing devicetree to kernel

2015-08-14 Thread Lucas Stach
Am Donnerstag, den 13.08.2015, 09:58 -0700 schrieb Raj Swaminathan: > Hi Lucas, > > I am using Altera's cyclone 5 SoCFPGA. > > Barebox version 2015.04.0 > Linux is rocketboards version 3.18.0 > Barebox is using the mainline kernel DTs, I don't know if the downstream Rocketboards kernel is able t

[PATCH 2/4] clk: socfpga: fix dt binding support

2015-08-14 Thread Steffen Trumtrar
Change the set_parent/get_parent functions for clock-gates to work with the Linux kernel DT bindings. Signed-off-by: Steffen Trumtrar --- drivers/clk/socfpga.c | 73 --- 1 file changed, 52 insertions(+), 21 deletions(-) diff --git a/drivers/clk/so

[PATCH 4/4] gpio: dw: implement new bindings

2015-08-14 Thread Steffen Trumtrar
The gpio-driver was developed when the bindings where not stable. As these have changed in the meantime, the driver has to be updated to the status quo. Signed-off-by: Steffen Trumtrar --- drivers/gpio/gpio-dw.c | 79 +++--- 1 file changed, 55 insertio

[PATCH 1/4] ARM: dts: remove most of socfpga barebox-specific dt code

2015-08-14 Thread Steffen Trumtrar
Instead of using internal devicetree files, use the official ones from /dts/src/arm. Signed-off-by: Steffen Trumtrar --- arch/arm/dts/socfpga.dtsi | 659 + arch/arm/dts/socfpga_cyclone5.dtsi | 78 arch/arm/dts/socfpga_cyclone5_socdk.dts

[PATCH 3/4] gpio: dw: fix copy&paste variable name

2015-08-14 Thread Steffen Trumtrar
This is a DW driver not IMX; fix variable name. Signed-off-by: Steffen Trumtrar --- drivers/gpio/gpio-dw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/gpio-dw.c b/drivers/gpio/gpio-dw.c index e582eb6d91ca..362f365fa6a1 100644 --- a/drivers/gpio/gpio-dw.c