Re: [PATCH 12/16] i2c: i2c-s3c2410: Drop class based scanning to improve bootup time

2014-07-10 Thread Sachin Kamat
Hi Wolfram, On Thu, Jul 10, 2014 at 5:16 PM, Wolfram Sang wrote: > This driver has been flagged to drop class based instantiation. The removal > improves boot-up time and is unneeded for embedded controllers. Users have > been > warned to switch for some time now, so we can actually do the remov

Re: [PATCH 2/2] i2c-stub: Add support for banked register ranges

2014-07-10 Thread Guenter Roeck
On 07/10/2014 02:30 PM, Jean Delvare wrote: On Thu, 10 Jul 2014 11:40:36 -0700, Guenter Roeck wrote: On Thu, Jul 10, 2014 at 12:56:59PM +0200, Jean Delvare wrote: Some chips implement banked register ranges. This allows implementing more registers than the limited 8-bit address space originally

[PATCH] i2c: i2c-st: Use %pa to print 'resource_size_t' type

2014-07-10 Thread Fabio Estevam
From: Fabio Estevam When building multi_v7_defconfig with CONFIG_ARM_LPAE=y the following warning is seen: drivers/i2c/busses/i2c-st.c:818:2: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t' [-Wformat=] Use %pa to print 'resource_size_t' ty

Re: [PATCH 2/2] i2c-stub: Add support for banked register ranges

2014-07-10 Thread Guenter Roeck
On Thu, Jul 10, 2014 at 11:30:40PM +0200, Jean Delvare wrote: > On Thu, 10 Jul 2014 11:40:36 -0700, Guenter Roeck wrote: > > On Thu, Jul 10, 2014 at 12:56:59PM +0200, Jean Delvare wrote: > > > Some chips implement banked register ranges. This allows implementing > > > more registers than the limite

Re: [PATCH 2/2] i2c-stub: Add support for banked register ranges

2014-07-10 Thread Jean Delvare
On Thu, 10 Jul 2014 11:40:36 -0700, Guenter Roeck wrote: > On Thu, Jul 10, 2014 at 12:56:59PM +0200, Jean Delvare wrote: > > Some chips implement banked register ranges. This allows implementing > > more registers than the limited 8-bit address space originally allows. > > In order to access a regi

Re: [PATCH 2/2] i2c-stub: Add support for banked register ranges

2014-07-10 Thread Guenter Roeck
On Thu, Jul 10, 2014 at 12:56:59PM +0200, Jean Delvare wrote: > Some chips implement banked register ranges. This allows implementing > more registers than the limited 8-bit address space originally allows. > In order to access a register on these chips, you must first select > the proper bank. Add

Re: [PATCH 14/16] i2c: i2c-stu300: Drop class based scanning to improve bootup time

2014-07-10 Thread Linus Walleij
On Thu, Jul 10, 2014 at 1:46 PM, Wolfram Sang wrote: > This driver has been flagged to drop class based instantiation. The removal > improves boot-up time and is unneeded for embedded controllers. Users have > been > warned to switch for some time now, so we can actually do the removal. Keep >

Re: [PATCH 08/16] i2c: i2c-nomadik: Drop class based scanning to improve bootup time

2014-07-10 Thread Linus Walleij
On Thu, Jul 10, 2014 at 1:46 PM, Wolfram Sang wrote: > This driver has been flagged to drop class based instantiation. The removal > improves boot-up time and is unneeded for embedded controllers. Users have > been > warned to switch for some time now, so we can actually do the removal. Keep >

Re: [PATCH 09/16] i2c: i2c-ocores: Drop class based scanning to improve bootup time

2014-07-10 Thread Peter Korsgaard
> "Wolfram" == Wolfram Sang writes: > This driver has been flagged to drop class based instantiation. The removal > improves boot-up time and is unneeded for embedded controllers. Users have > been > warned to switch for some time now, so we can actually do the removal. Keep > the > D

Re: [PATCH 15/16] i2c: i2c-tegra: Drop class based scanning to improve bootup time

2014-07-10 Thread Thierry Reding
On Thu, Jul 10, 2014 at 01:46:35PM +0200, Wolfram Sang wrote: > This driver has been flagged to drop class based instantiation. The removal > improves boot-up time and is unneeded for embedded controllers. Users have > been > warned to switch for some time now, so we can actually do the removal. K

Re: [PATCH 00/16] i2c: drop class based instantiaion for selected drivers

2014-07-10 Thread Wolfram Sang
> > + /* Warn that the adapter lost class based instantiation */ > > + if (adapter->class == I2C_CLASS_DEPRECATED) { > > + dev_dbg(&adapter->dev, > > + "This adapter dropped support for I2C classes and " > > + "won't auto-detect %s devices anymore.

[PULL REQUEST] i2c for 3.16

2014-07-10 Thread Wolfram Sang
Linus, here is one buildfix for the i2c subsystem. While here, I decided to add the header cleanup as well. Please pull. Thanks, Wolfram The following changes since commit a497c3ba1d97fc69c1e78e7b96435ba8c2cb42ee: Linux 3.16-rc2 (2014-06-21 19:02:54 -1000) are available in the git repos

Re: [PATCH 00/16] i2c: drop class based instantiaion for selected drivers

2014-07-10 Thread Lothar Waßmann
Hi, Wolfram Sang wrote: > Some drivers were flagged to remove class based instantiation soon to improve > boot-up time. Originally, I was planning for a longer deprecation time so > users > could switch over to some other kind of instantiation. However, the demand for > the speed up is high enoug

Re: [PATCH 15/16] i2c: i2c-tegra: Drop class based scanning to improve bootup time

2014-07-10 Thread Mikko Perttunen
Reviewed-by: Mikko Perttunen Tested-by: Mikko Perttunen On 10/07/14 14:46, Wolfram Sang wrote: This driver has been flagged to drop class based instantiation. The removal improves boot-up time and is unneeded for embedded controllers. Users have been warned to switch for some time now, so we c

Re: [PATCH 1/2] i2c-stub: Remember the number of emulated chips

2014-07-10 Thread Guenter Roeck
On 07/10/2014 03:45 AM, Jean Delvare wrote: This makes initialization, cleanup and look-up easier. Signed-off-by: Jean Delvare Cc: Guenter Roeck --- This applies on top of Guenter's patch "i2c: stub: Add support for SMBus block commands", v2. Looks good. Reviewed-by: Guenter Roeck dri

Re: [PATCH v3] i2c: busses: i2c-pxa.c: Fix for possible null pointer dereferenc

2014-07-10 Thread Wolfram Sang
> Ok then, Wolfram! > > Keep only: > > ereqirq: > clk_disable_unprepare(i2c->clk); > > And let everyone else just return? I haven't looked at the details, but when you simply can return, do it. > It is rather pointless to add something in a patch, to remove it in the next. Yup, just say

[PATCH 02/16] i2c: i2c-at91: Drop class based scanning to improve bootup time

2014-07-10 Thread Wolfram Sang
This driver has been flagged to drop class based instantiation. The removal improves boot-up time and is unneeded for embedded controllers. Users have been warned to switch for some time now, so we can actually do the removal. Keep the DEPRECATED flag, so the core can inform users that the behaviou

[PATCH 01/16] i2c: add debug info when class instantiation was dropped

2014-07-10 Thread Wolfram Sang
We have a warning already when support for old-fashioned class based instantiation is about to be dropped somewhen soon from a driver. Let's have another one when it was actually dropped. This allows to remove the cruft a little earlier and still let users know what happened in the rare case they a

[PATCH 03/16] i2c: i2c-bcm2835: Drop class based scanning to improve bootup time

2014-07-10 Thread Wolfram Sang
This driver has been flagged to drop class based instantiation. The removal improves boot-up time and is unneeded for embedded controllers. Users have been warned to switch for some time now, so we can actually do the removal. Keep the DEPRECATED flag, so the core can inform users that the behaviou

[PATCH 04/16] i2c: i2c-bfin-twi: Drop class based scanning to improve bootup time

2014-07-10 Thread Wolfram Sang
This driver has been flagged to drop class based instantiation. The removal improves boot-up time and is unneeded for embedded controllers. Users have been warned to switch for some time now, so we can actually do the removal. Keep the DEPRECATED flag, so the core can inform users that the behaviou

[PATCH 05/16] i2c: i2c-davinci: Drop class based scanning to improve bootup time

2014-07-10 Thread Wolfram Sang
This driver has been flagged to drop class based instantiation. The removal improves boot-up time and is unneeded for embedded controllers. Users have been warned to switch for some time now, so we can actually do the removal. Keep the DEPRECATED flag, so the core can inform users that the behaviou

[PATCH 11/16] i2c: i2c-rcar: Drop class based scanning to improve bootup time

2014-07-10 Thread Wolfram Sang
This driver has been flagged to drop class based instantiation. The removal improves boot-up time and is unneeded for embedded controllers. Users have been warned to switch for some time now, so we can actually do the removal. Keep the DEPRECATED flag, so the core can inform users that the behaviou

[PATCH 07/16] i2c: i2c-mv64xxx: Drop class based scanning to improve bootup time

2014-07-10 Thread Wolfram Sang
This driver has been flagged to drop class based instantiation. The removal improves boot-up time and is unneeded for embedded controllers. Users have been warned to switch for some time now, so we can actually do the removal. Keep the DEPRECATED flag, so the core can inform users that the behaviou

[PATCH 06/16] i2c: i2c-designware-platdrv: Drop class based scanning to improve bootup time

2014-07-10 Thread Wolfram Sang
This driver has been flagged to drop class based instantiation. The removal improves boot-up time and is unneeded for embedded controllers. Users have been warned to switch for some time now, so we can actually do the removal. Keep the DEPRECATED flag, so the core can inform users that the behaviou

[PATCH 08/16] i2c: i2c-nomadik: Drop class based scanning to improve bootup time

2014-07-10 Thread Wolfram Sang
This driver has been flagged to drop class based instantiation. The removal improves boot-up time and is unneeded for embedded controllers. Users have been warned to switch for some time now, so we can actually do the removal. Keep the DEPRECATED flag, so the core can inform users that the behaviou

[PATCH 10/16] i2c: i2c-omap: Drop class based scanning to improve bootup time

2014-07-10 Thread Wolfram Sang
This driver has been flagged to drop class based instantiation. The removal improves boot-up time and is unneeded for embedded controllers. Users have been warned to switch for some time now, so we can actually do the removal. Keep the DEPRECATED flag, so the core can inform users that the behaviou

[PATCH 09/16] i2c: i2c-ocores: Drop class based scanning to improve bootup time

2014-07-10 Thread Wolfram Sang
This driver has been flagged to drop class based instantiation. The removal improves boot-up time and is unneeded for embedded controllers. Users have been warned to switch for some time now, so we can actually do the removal. Keep the DEPRECATED flag, so the core can inform users that the behaviou

[PATCH 14/16] i2c: i2c-stu300: Drop class based scanning to improve bootup time

2014-07-10 Thread Wolfram Sang
This driver has been flagged to drop class based instantiation. The removal improves boot-up time and is unneeded for embedded controllers. Users have been warned to switch for some time now, so we can actually do the removal. Keep the DEPRECATED flag, so the core can inform users that the behaviou

[PATCH 16/16] i2c: i2c-xiic: Drop class based scanning to improve bootup time

2014-07-10 Thread Wolfram Sang
This driver has been flagged to drop class based instantiation. The removal improves boot-up time and is unneeded for embedded controllers. Users have been warned to switch for some time now, so we can actually do the removal. Keep the DEPRECATED flag, so the core can inform users that the behaviou

[PATCH 13/16] i2c: i2c-sirf: Drop class based scanning to improve bootup time

2014-07-10 Thread Wolfram Sang
This driver has been flagged to drop class based instantiation. The removal improves boot-up time and is unneeded for embedded controllers. Users have been warned to switch for some time now, so we can actually do the removal. Keep the DEPRECATED flag, so the core can inform users that the behaviou

[PATCH 12/16] i2c: i2c-s3c2410: Drop class based scanning to improve bootup time

2014-07-10 Thread Wolfram Sang
This driver has been flagged to drop class based instantiation. The removal improves boot-up time and is unneeded for embedded controllers. Users have been warned to switch for some time now, so we can actually do the removal. Keep the DEPRECATED flag, so the core can inform users that the behaviou

[PATCH 15/16] i2c: i2c-tegra: Drop class based scanning to improve bootup time

2014-07-10 Thread Wolfram Sang
This driver has been flagged to drop class based instantiation. The removal improves boot-up time and is unneeded for embedded controllers. Users have been warned to switch for some time now, so we can actually do the removal. Keep the DEPRECATED flag, so the core can inform users that the behaviou

[PATCH 00/16] i2c: drop class based instantiaion for selected drivers

2014-07-10 Thread Wolfram Sang
Some drivers were flagged to remove class based instantiation soon to improve boot-up time. Originally, I was planning for a longer deprecation time so users could switch over to some other kind of instantiation. However, the demand for the speed up is high enough and class based instantiation is u

[PATCH 2/2] i2c-stub: Add support for banked register ranges

2014-07-10 Thread Jean Delvare
Some chips implement banked register ranges. This allows implementing more registers than the limited 8-bit address space originally allows. In order to access a register on these chips, you must first select the proper bank. Add support for this mechanism to the i2c-stub driver so that such chips

[PATCH 1/2] i2c-stub: Remember the number of emulated chips

2014-07-10 Thread Jean Delvare
This makes initialization, cleanup and look-up easier. Signed-off-by: Jean Delvare Cc: Guenter Roeck --- This applies on top of Guenter's patch "i2c: stub: Add support for SMBus block commands", v2. drivers/i2c/i2c-stub.c |9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) --- l