* [PATCH 1/1] i2c: s3c2410: Remove class based instantiation
@ 2014-06-03 9:00 Sachin Kamat
2014-06-03 10:05 ` Wolfram Sang
0 siblings, 1 reply; 7+ messages in thread
From: Sachin Kamat @ 2014-06-03 9:00 UTC (permalink / raw)
To: linux-i2c
Cc: linux-samsung-soc, wsa, kgene.kim, ch.naveen, spk.linux,
Olof Johansson
With multiplatform support enabled for Exynos, class based
instantiation causes a boot time delay due to I2C_CLASS_HWMON
triggered probe. Since class based instantiation has been
deprecated since some time now, remove it for Samsung I2C driver.
Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
Cc: Olof Johansson <olof@lixom.net>
---
drivers/i2c/busses/i2c-s3c2410.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/i2c/busses/i2c-s3c2410.c b/drivers/i2c/busses/i2c-s3c2410.c
index bb3a9964f7e0..6f1706cdd9ba 100644
--- a/drivers/i2c/busses/i2c-s3c2410.c
+++ b/drivers/i2c/busses/i2c-s3c2410.c
@@ -1135,7 +1135,6 @@ static int s3c24xx_i2c_probe(struct platform_device *pdev)
i2c->adap.owner = THIS_MODULE;
i2c->adap.algo = &s3c24xx_i2c_algorithm;
i2c->adap.retries = 2;
- i2c->adap.class = I2C_CLASS_HWMON | I2C_CLASS_SPD | I2C_CLASS_DEPRECATED;
i2c->tx_setup = 50;
init_waitqueue_head(&i2c->wait);
--
1.7.9.5
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 1/1] i2c: s3c2410: Remove class based instantiation
2014-06-03 9:00 [PATCH 1/1] i2c: s3c2410: Remove class based instantiation Sachin Kamat
@ 2014-06-03 10:05 ` Wolfram Sang
2014-06-03 11:21 ` Sachin Kamat
0 siblings, 1 reply; 7+ messages in thread
From: Wolfram Sang @ 2014-06-03 10:05 UTC (permalink / raw)
To: Sachin Kamat
Cc: linux-i2c, linux-samsung-soc, kgene.kim, ch.naveen, spk.linux,
Olof Johansson
[-- Attachment #1: Type: text/plain, Size: 545 bytes --]
On Tue, Jun 03, 2014 at 02:30:22PM +0530, Sachin Kamat wrote:
> With multiplatform support enabled for Exynos, class based
> instantiation causes a boot time delay due to I2C_CLASS_HWMON
> triggered probe. Since class based instantiation has been
> deprecated since some time now, remove it for Samsung I2C driver.
>
> Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
> Cc: Olof Johansson <olof@lixom.net>
In my book, not long enough. I suggest I will take care of the removal.
I'll do it for all class deprecating drivers.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/1] i2c: s3c2410: Remove class based instantiation
2014-06-03 10:05 ` Wolfram Sang
@ 2014-06-03 11:21 ` Sachin Kamat
2014-06-03 11:54 ` Wolfram Sang
2014-06-03 12:03 ` Tomasz Figa
0 siblings, 2 replies; 7+ messages in thread
From: Sachin Kamat @ 2014-06-03 11:21 UTC (permalink / raw)
To: Wolfram Sang
Cc: linux-i2c, linux-samsung-soc, kgene.kim, ch.naveen,
Olof Johansson
Hi Wolfram,
On Tue, Jun 3, 2014 at 3:35 PM, Wolfram Sang <wsa@the-dreams.de> wrote:
> On Tue, Jun 03, 2014 at 02:30:22PM +0530, Sachin Kamat wrote:
>> With multiplatform support enabled for Exynos, class based
>> instantiation causes a boot time delay due to I2C_CLASS_HWMON
>> triggered probe. Since class based instantiation has been
>> deprecated since some time now, remove it for Samsung I2C driver.
>>
>> Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
>> Cc: Olof Johansson <olof@lixom.net>
>
> In my book, not long enough. I suggest I will take care of the removal.
> I'll do it for all class deprecating drivers.
The reason for the removal is the boot delay it is causing on Exynos 5250
based boards by throwing the following errors continuously.
[ 55.005300] s3c-i2c 12ce0000.i2c: cannot get bus (error -110)
[ 59.005300] s3c-i2c 12ce0000.i2c: cannot get bus (error -110)
[ 63.005300] s3c-i2c 12ce0000.i2c: cannot get bus (error -110)
Regards,
Sachin
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/1] i2c: s3c2410: Remove class based instantiation
2014-06-03 11:21 ` Sachin Kamat
@ 2014-06-03 11:54 ` Wolfram Sang
2014-06-03 12:03 ` Tomasz Figa
1 sibling, 0 replies; 7+ messages in thread
From: Wolfram Sang @ 2014-06-03 11:54 UTC (permalink / raw)
To: Sachin Kamat
Cc: linux-i2c, linux-samsung-soc, kgene.kim, ch.naveen,
Olof Johansson
[-- Attachment #1: Type: text/plain, Size: 498 bytes --]
> The reason for the removal is the boot delay it is causing on Exynos 5250
> based boards by throwing the following errors continuously.
>
> [ 55.005300] s3c-i2c 12ce0000.i2c: cannot get bus (error -110)
> [ 59.005300] s3c-i2c 12ce0000.i2c: cannot get bus (error -110)
> [ 63.005300] s3c-i2c 12ce0000.i2c: cannot get bus (error -110)
I know. That's why I implemented the deprecated class. Still, users may
need more time to switch over. Keep it an out-of-tree patch until then.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/1] i2c: s3c2410: Remove class based instantiation
2014-06-03 11:21 ` Sachin Kamat
2014-06-03 11:54 ` Wolfram Sang
@ 2014-06-03 12:03 ` Tomasz Figa
[not found] ` <538DB979.1030305-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
1 sibling, 1 reply; 7+ messages in thread
From: Tomasz Figa @ 2014-06-03 12:03 UTC (permalink / raw)
To: Sachin Kamat, Wolfram Sang
Cc: linux-i2c, linux-samsung-soc, kgene.kim, ch.naveen,
Olof Johansson
Hi Wolfram, Sachin,
On 03.06.2014 13:21, Sachin Kamat wrote:
> Hi Wolfram,
>
> On Tue, Jun 3, 2014 at 3:35 PM, Wolfram Sang <wsa@the-dreams.de> wrote:
>> On Tue, Jun 03, 2014 at 02:30:22PM +0530, Sachin Kamat wrote:
>>> With multiplatform support enabled for Exynos, class based
>>> instantiation causes a boot time delay due to I2C_CLASS_HWMON
>>> triggered probe. Since class based instantiation has been
>>> deprecated since some time now, remove it for Samsung I2C driver.
>>>
>>> Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
>>> Cc: Olof Johansson <olof@lixom.net>
>>
>> In my book, not long enough. I suggest I will take care of the removal.
>> I'll do it for all class deprecating drivers.
Couldn't it be made configurable with a Kconfig entry? E.g. "Enable
deprecated class-based instantiation" under Drivers / I2C? Turning it
off could make the code ignore the class field completely.
This way people that don't want it could just disable it and others
could also test whether disabling it affects them in any way.
>
> The reason for the removal is the boot delay it is causing on Exynos 5250
> based boards by throwing the following errors continuously.
>
> [ 55.005300] s3c-i2c 12ce0000.i2c: cannot get bus (error -110)
> [ 59.005300] s3c-i2c 12ce0000.i2c: cannot get bus (error -110)
> [ 63.005300] s3c-i2c 12ce0000.i2c: cannot get bus (error -110)
Are you sure this is directly related to class-based instantiation? This
looks like the bus being driven low by some external component or
incorrectly configured pins. What is this bus used for on affected board?
Best regards,
Tomasz
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/1] i2c: s3c2410: Remove class based instantiation
[not found] ` <538DB979.1030305-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2014-06-03 12:17 ` Wolfram Sang
2014-06-03 12:18 ` Tomasz Figa
0 siblings, 1 reply; 7+ messages in thread
From: Wolfram Sang @ 2014-06-03 12:17 UTC (permalink / raw)
To: Tomasz Figa
Cc: Sachin Kamat, linux-i2c-u79uwXL29TY76Z2rM5mHXA,
linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA,
kgene.kim-Sze3O3UU22JBDgjK7y7TUQ,
ch.naveen-Sze3O3UU22JBDgjK7y7TUQ, Olof Johansson
[-- Attachment #1: Type: text/plain, Size: 289 bytes --]
> Couldn't it be made configurable with a Kconfig entry? E.g. "Enable
> deprecated class-based instantiation" under Drivers / I2C? Turning it
> off could make the code ignore the class field completely.
Technically, yes. But we could also wait another cycle and just be done
with it :)
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/1] i2c: s3c2410: Remove class based instantiation
2014-06-03 12:17 ` Wolfram Sang
@ 2014-06-03 12:18 ` Tomasz Figa
0 siblings, 0 replies; 7+ messages in thread
From: Tomasz Figa @ 2014-06-03 12:18 UTC (permalink / raw)
To: Wolfram Sang
Cc: Sachin Kamat, linux-i2c, linux-samsung-soc, kgene.kim, ch.naveen,
Olof Johansson
On 03.06.2014 14:17, Wolfram Sang wrote:
>
>> Couldn't it be made configurable with a Kconfig entry? E.g. "Enable
>> deprecated class-based instantiation" under Drivers / I2C? Turning it
>> off could make the code ignore the class field completely.
>
> Technically, yes. But we could also wait another cycle and just be done
> with it :)
>
OK, if it's just one cycle, then it wouldn't make sense indeed. Thanks
for clarification.
Best regards,
Tomasz
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-06-03 12:18 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-03 9:00 [PATCH 1/1] i2c: s3c2410: Remove class based instantiation Sachin Kamat
2014-06-03 10:05 ` Wolfram Sang
2014-06-03 11:21 ` Sachin Kamat
2014-06-03 11:54 ` Wolfram Sang
2014-06-03 12:03 ` Tomasz Figa
[not found] ` <538DB979.1030305-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-06-03 12:17 ` Wolfram Sang
2014-06-03 12:18 ` Tomasz Figa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).