[PATCH] i2c: imx: double check IIF in case interrupt lost

2014-08-14 Thread Fugang Duan
In i2c_imx_read(): ... result = i2c_imx_trx_complete(i2c_imx); if (result) return result; .. If the current byte read complete, IIF status is set, and pend up one GIC interrupt. In irq handler, wake up the wait queue in .i2c_imx_trx_complete(). But, for imx6q platform with high

[PATCH] i2c: imx: double check IIF in case interrupt lost

2014-08-14 Thread Fugang Duan
In i2c_imx_read(): ... result = i2c_imx_trx_complete(i2c_imx); if (result) return result; .. If the current byte read complete, IIF status is set, and pend up one GIC interrupt. In irq handler, wake up the wait queue in .i2c_imx_trx_complete(). But, for imx6q platform with high

Re: i2c access from kernel

2014-08-14 Thread Wolfram Sang
Hi, The first argument to i2c_transfer is pointer to struct i2c_adapter, which is very complex struct to fill !! You should never fill it yourself. This is the job of the i2c-core. If I know, for example, the exact bus number, is there some way I can get the i2c_adapter pointer to that bus

Re: [PATCH] I2C: Make I2C core able to be module when I2C_ACPI is selected.

2014-08-14 Thread Wolfram Sang
True, but only the I2C OpRegion parts needs to have I2C=y. Does it make sense to name ACPI_I2C to ACPI_I2C_OPREGION (or something like that) and only enable it when I2C=y? Then we would have ACPI I2C enumeration still in place. Yes, this makes sense to me. I will rewrite the patch.

Re: [PATCH] i2c: imx: double check IIF in case interrupt lost

2014-08-14 Thread Uwe Kleine-König
Hello, On Thu, Aug 14, 2014 at 04:29:14PM +0800, Fugang Duan wrote: In i2c_imx_read(): ... result = i2c_imx_trx_complete(i2c_imx); if (result) return result; .. If the current byte read complete, IIF status is set, and pend up one GIC interrupt. In irq handler, wake up the

RE: [PATCH] i2c: imx: double check IIF in case interrupt lost

2014-08-14 Thread fugang.d...@freescale.com
From: Uwe Kleine-König u.kleine-koe...@pengutronix.de Sent: Thursday, August 14, 2014 5:42 PM To: Duan Fugang-B38611 Cc: w...@the-dreams.de; linux-i2c@vger.kernel.org Subject: Re: [PATCH] i2c: imx: double check IIF in case interrupt lost Hello, On Thu, Aug 14, 2014 at 04:29:14PM +0800, Fugang

NOTICE

2014-08-14 Thread Head Quarter Western Union and Money Gram Transfer
Top of the day to you all from the Head Quarter Western Union and Money Gram Transfer. Dear User This is to inform all our users that the high rate of scam has been coming so much and we are receive complains from beach Transfer office that our customer has been send money to differed country as

Re: [PATCH] i2c: imx: double check IIF in case interrupt lost

2014-08-14 Thread Uwe Kleine-König
Hello, On Thu, Aug 14, 2014 at 10:09:42AM +, fugang.d...@freescale.com wrote: From: Uwe Kleine-König u.kleine-koe...@pengutronix.de Sent: Thursday, August 14, 2014 5:42 PM On Thu, Aug 14, 2014 at 04:29:14PM +0800, Fugang Duan wrote: diff --git a/drivers/i2c/busses/i2c-imx.c

RE: [PATCH] i2c: imx: double check IIF in case interrupt lost

2014-08-14 Thread fugang.d...@freescale.com
From: Uwe Kleine-König kleine-koe...@pengutronix.de Sent: Friday, August 15, 2014 3:27 AM To: Duan Fugang-B38611 Cc: w...@the-dreams.de; linux-i2c@vger.kernel.org Subject: Re: [PATCH] i2c: imx: double check IIF in case interrupt lost Hello, On Thu, Aug 14, 2014 at 10:09:42AM +,

[PATCH V2] I2C: Rework kernel config I2C_ACPI

2014-08-14 Thread Lan Tianyu
Commit da3c6647(I2C/ACPI: Clean up I2C ACPI code and Add CONFIG_I2C_ACPI config) adds a new kernel config I2C_ACPI and make I2C core built in when the config is selected. This is wrong because distributions etc generally compile I2C as a module and the commit broken that. This patch is to rename