[PATCH v2 2/5] i2c: add I2C_AQ_NO_CLK_STRETCH to i2c-algo-bit.c

2015-10-29 Thread Nicola Corna
Add I2C_AQ_NO_CLK_STRETCH to drivers/i2c/algos/i2c-algo-bit.c when getscl is not available. Signed-off-by: Nicola Corna --- drivers/i2c/algos/i2c-algo-bit.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/i2c/algos/i2c-algo-bit.c

[PATCH 4/5] i2c: add i2c_check_quirks helper function

2015-10-29 Thread Nicola Corna
This patch adds a i2c_check_quirks helper function to check the quirk flags of an i2c adapter, in a similar way to i2c_check_functionality. Signed-off-by: Nicola Corna --- include/linux/i2c.h | 14 ++ 1 file changed, 14 insertions(+) diff --git

[PATCH v2 1/5] i2c: add i2c quirk flag for unsupported clock stretching

2015-10-29 Thread Nicola Corna
Add I2C_AQ_NO_CLK_STRETCH quirk flag, to be used when clock stretching is not supported. Signed-off-by: Nicola Corna --- include/linux/i2c.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/i2c.h b/include/linux/i2c.h index 768063b..9697002 100644 ---

Re: [PATCH] i2c: rcar: call rcar_i2c_init() after pm_runtime_get_sync()

2015-10-29 Thread Geert Uytterhoeven
On Thu, Oct 29, 2015 at 10:37 AM, Kuninori Morimoto wrote: > From: Kuninori Morimoto > > rcar_i2c_init() initializes I2C device, but it should be called > *after* pm_runtime_get_sync(). Otherwise it outputs very hi speed >

[PATCH v5 5/5] iio: humidity: si7020: add No Hold read mode

2015-10-29 Thread Nicola Corna
The Si7013/20/21 modules support 2 read modes: * Hold mode (blocking), where the device stretches the clock until the end of the measurement * No Hold mode (non-blocking), where the device replies NACK for every I2C call during the measurement Here the No Hold mode is implemented, selectable

Re: [PATCH] MAINTAINERS: i2c: mark also subdirectories as maintained

2015-10-29 Thread Joe Perches
On Thu, 2015-10-29 at 08:25 +0100, Wolfram Sang wrote: > Otherwise get_maintainer.pl will fall back to git history and CC > more people than needed. > > Signed-off-by: Wolfram Sang > Acked-by: Lee Jones > --- > MAINTAINERS | 1 + > 1 file changed, 1

Re: [PATCH v2] i2c: cadence: Move to sensible power management

2015-10-29 Thread Shubhrajyoti Datta
On Wed, Oct 28, 2015 at 9:48 PM, Sören Brinkmann wrote: > Hi Shubhrajyoti, > > > On Wed, 2015-10-28 at 12:56PM +0530, Shubhrajyoti Datta wrote: >> Currently the clocks are enabled at probe and disabled at remove. >> Which keeps the clocks enabled even if no transaction

Re: [PATCH] MAINTAINERS: i2c: mark also subdirectories as maintained

2015-10-29 Thread Wolfram Sang
> +The scripts/get_maintainer.pl tool has a quirk about subdirectories. > +If the file pattern is for a directory, then any subdirectories of > +the parent directory should also be specified. For instance: > + F: drivers/i2c/ > + F:

Issues with touchpad / touchscreen on yoga 900

2015-10-29 Thread Kevin Fenzi
Greetings. I'm having problems with a lenovo yoga 900 not seeing it's touchscreen or touchpad. Downstream bug: https://bugzilla.redhat.com/show_bug.cgi?id=1275718 The problem parts of dmesg seem to be: Oct 26 15:20:08 localhost kernel: i2c_designware i2c_designware.1:

Re: [PATCH] MAINTAINERS: i2c: mark also subdirectories as maintained

2015-10-29 Thread Joe Perches
On Thu, 2015-10-29 at 16:52 +0100, Wolfram Sang wrote: > > + The scripts/get_maintainer.pl tool has a quirk about subdirectories. > > + If the file pattern is for a directory, then any subdirectories of > > + the parent directory should also be specified. For instance: > > +

Re: [PATCH] i2c: rcar: make sure clocks are on when doing hw init

2015-10-29 Thread Geert Uytterhoeven
Hi Wolfram, On Thu, Oct 29, 2015 at 8:19 PM, Wolfram Sang wrote: > From: Wolfram Sang > > Reported-by: Kuninori Morimoto > Signed-off-by: Wolfram Sang Thanks for your

Re: Issues with touchpad / touchscreen on yoga 900

2015-10-29 Thread Wolfram Sang
On Thu, Oct 29, 2015 at 11:29:13AM -0600, Kevin Fenzi wrote: > Greetings. > > I'm having problems with a lenovo yoga 900 not seeing it's touchscreen > or touchpad. > > Downstream bug: > https://bugzilla.redhat.com/show_bug.cgi?id=1275718 > > The problem parts of dmesg seem to be: > > Oct

Re: [PATCH 5/9] i2c: rcar: init new messages in irq

2015-10-29 Thread Wolfram Sang
Laurent, > RTPORC7791SEB00010S > KOELSCH SN.057 > > I'm not sure if that tells anything about the board revision. Can you try this patch I just sent out? "i2c: rcar: make sure clocks are on when doing hw init" We know that Koelsch boards have different bootloaders leaving the clocks in

Re: [PATCH] i2c: rcar: call rcar_i2c_init() after pm_runtime_get_sync()

2015-10-29 Thread Wolfram Sang
> Hence now it's done again for every transfer? > > What about moving it just before the call to i2c_add_numbered_adapter(), > and wrapping it inside pm_runtime_get_sync(dev)/pm_runtime_put()? > > Wolfram, what do you think? I'd prefer the latter. Sending a tested patch in a second...

[PATCH] i2c: rcar: make sure clocks are on when doing hw init

2015-10-29 Thread Wolfram Sang
From: Wolfram Sang Reported-by: Kuninori Morimoto Signed-off-by: Wolfram Sang --- drivers/i2c/busses/i2c-rcar.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

Re: [PATCH V6 6/6] dts/ls1043a: add LS1043ARDB board support

2015-10-29 Thread Li Yang
On Fri, Oct 23, 2015 at 3:01 AM, Zhiqiang Hou wrote: > From: Shaohui Xie > > Signed-off-by: Shaohui Xie > Signed-off-by: Mingkai Hu > Signed-off-by: Wenbin Song >

[PATCH v2] i2c: rcar: make sure clocks are on when doing hw init

2015-10-29 Thread Wolfram Sang
From: Wolfram Sang Reported-by: Kuninori Morimoto Signed-off-by: Wolfram Sang --- drivers/i2c/busses/i2c-rcar.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git

Re: [PATCH v2] i2c: rcar: make sure clocks are on when doing hw init

2015-10-29 Thread Kuninori Morimoto
Hi Wolfram Sang wrote: > > From: Wolfram Sang > > Reported-by: Kuninori Morimoto > Signed-off-by: Wolfram Sang > --- Please add explain why this patch is needed, and what happen without

Re: [PATCH] i2c: rcar: call rcar_i2c_init() after pm_runtime_get_sync()

2015-10-29 Thread Kuninori Morimoto
Hi Geert > > From: Kuninori Morimoto > > > > rcar_i2c_init() initializes I2C device, but it should be called > > *after* pm_runtime_get_sync(). Otherwise it outputs very hi speed > > clock. This patch solved this issue, > > This patch also removes pointless

Re: [PATCH] i2c: rcar: make sure clocks are on when doing hw init

2015-10-29 Thread Kuninori Morimoto
Hi, Wolfram > From: Wolfram Sang > > Reported-by: Kuninori Morimoto > Signed-off-by: Wolfram Sang > --- > drivers/i2c/busses/i2c-rcar.c | 4 +++- > 1 file changed, 3 insertions(+), 1

[PATCH] MAINTAINERS: i2c: mark also subdirectories as maintained

2015-10-29 Thread Wolfram Sang
Otherwise get_maintainer.pl will fall back to git history and CC more people than needed. Signed-off-by: Wolfram Sang Acked-by: Lee Jones --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index

[PATCH] i2c: rcar: call rcar_i2c_init() after pm_runtime_get_sync()

2015-10-29 Thread Kuninori Morimoto
From: Kuninori Morimoto rcar_i2c_init() initializes I2C device, but it should be called *after* pm_runtime_get_sync(). Otherwise it outputs very hi speed clock. This patch solved this issue, This patch also removes pointless rcar_i2c_init() from

Re: [PATCH v4 4/4] iio: humidity: si7020: added No Hold read mode

2015-10-29 Thread Lars-Peter Clausen
>> So maybe more like this: >> >> static inline bool i2c_check_quirks(struct i2c_adapter *adap, u64 quirks) >> { >> if (!adap->quirks) >> return false; >> return (adap->quirks->flags & quirks) == quirks; >> } > > Should I use bool (like in your snippet) or int (like > i2c_check_functionality) as

Re: [PATCH v2] i2c: rcar: make sure clocks are on when doing hw init

2015-10-29 Thread Laurent Pinchart
Hi Wolfram, Thank you for the patch. I'm afraid this doesn't make any noticeable difference. With or without the patch applied the adv7511 can't be detected using the latest driver tag (renesas-devel-20151026-v4.3-rc7). However, I have a bit more information to report. First of all, I got

RE: [PATCH V6 6/6] dts/ls1043a: add LS1043ARDB board support

2015-10-29 Thread Hou Zhiqiang
> -Original Message- > From: pku@gmail.com [mailto:pku@gmail.com] On Behalf Of Li Yang > Sent: 2015年10月30日 4:33 > To: Hou Zhiqiang-B48286 > Cc: linux-arm-ker...@lists.infradead.org; Catalin Marinas; Will Deacon; > linux-i2c@vger.kernel.org; linux-watch...@vger.kernel.org; linux-