Re: [PATCH v2] i2c-imx: Add missing preporcessor directives

2015-08-15 Thread Andrey Smirnov
On Sat, Aug 15, 2015 at 1:53 PM, Sam Ravnborg wrote: > Hi Andrey. > > On Sat, Aug 15, 2015 at 09:44:31AM -0700, Andrey Smirnov wrote: >> 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

Re: [PATCH v2] i2c-imx: Add missing preporcessor directives

2015-08-15 Thread Sam Ravnborg
Hi Andrey. On Sat, Aug 15, 2015 at 09:44:31AM -0700, Andrey Smirnov wrote: > 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 makes sure > that i2c

[PATCH] spi-nor: Align spi_nor_ids[] with kernel 4.1

2015-08-15 Thread Fabio Estevam
From: Fabio Estevam Sync the spi_nor_ids[] struct with the one from kernel 4.1. Signed-off-by: Fabio Estevam --- drivers/mtd/spi-nor/spi-nor.c | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c

[PATCH v2] i2c-imx: Add missing preporcessor directives

2015-08-15 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 makes sure that i2c_fls_set_clk() is a no-op on non-PPC targets when CONFIG_COMMON_CLK is not set Sign

Re: [PATCH] i2c-imx: Add missing preporcessor directives

2015-08-15 Thread Andrey Smirnov
> > This driver is only built for ARCH_IMX (which select COMMON_CLK) > or two PowerPC variants. > > See following snip from Kconfig: > > config I2C_IMX > bool "MPC85xx/MPC5200/i.MX I2C Master driver" > depends on (ARCH_IMX && !ARCH_IMX1) || ARCH_MPC85XX || ARCH_MPC5200 > > How did y

Re: [PATCH] i2c-imx: Add missing preporcessor directives

2015-08-15 Thread Sam Ravnborg
On Fri, Aug 14, 2015 at 07:45:51PM -0700, Andrey Smirnov wrote: > 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 dir