From: Grygorii Strashko <grygorii.strashko@ti.com> To: Wolfram Sang <wsa@the-dreams.de> Cc: <linux-kernel@vger.kernel.org>, <linux-omap@vger.kernel.org>, <linux-i2c@vger.kernel.org>, Grygorii Strashko <grygorii.strashko@ti.com>, Tony Lindgren <tony@atomide.com> Subject: [RFC 1/2] i2c: omap: drop class based instantiation of slaves Date: Wed, 19 Jun 2013 21:22:11 +0300 [thread overview] Message-ID: <1371666132-29655-1-git-send-email-grygorii.strashko@ti.com> (raw) In-Reply-To: <1370596166-12404-1-git-send-email-wsa@the-dreams.de> Class based instantiation mechanism can cause huge delays when booting. For example: when CONFIG_SENSORS_LM75 option is enabled for omap4-sdp board - it introduces 5-6 ms boot delay. It's not recommended to use this mechanism with embedded I2C, so disable it by leaving I2C adapter "class" field undefined (remove I2C_CLASS_HWMON). CC: Tony Lindgren <tony@atomide.com> Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com> --- drivers/i2c/busses/i2c-omap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index f06109f..ae2b27f 100644 --- a/drivers/i2c/busses/i2c-omap.c +++ b/drivers/i2c/busses/i2c-omap.c @@ -1231,7 +1231,7 @@ omap_i2c_probe(struct platform_device *pdev) adap = &dev->adapter; i2c_set_adapdata(adap, dev); adap->owner = THIS_MODULE; - adap->class = I2C_CLASS_HWMON | I2C_CLASS_DEPRECATED; + adap->class = I2C_CLASS_DEPRECATED; strlcpy(adap->name, "OMAP I2C adapter", sizeof(adap->name)); adap->algo = &omap_i2c_algo; adap->dev.parent = &pdev->dev; -- 1.7.9.5
WARNING: multiple messages have this Message-ID (diff)
From: Grygorii Strashko <grygorii.strashko@ti.com> To: Wolfram Sang <wsa@the-dreams.de> Cc: linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-i2c@vger.kernel.org, Grygorii Strashko <grygorii.strashko@ti.com>, Tony Lindgren <tony@atomide.com> Subject: [RFC 1/2] i2c: omap: drop class based instantiation of slaves Date: Wed, 19 Jun 2013 21:22:11 +0300 [thread overview] Message-ID: <1371666132-29655-1-git-send-email-grygorii.strashko@ti.com> (raw) In-Reply-To: <1370596166-12404-1-git-send-email-wsa@the-dreams.de> Class based instantiation mechanism can cause huge delays when booting. For example: when CONFIG_SENSORS_LM75 option is enabled for omap4-sdp board - it introduces 5-6 ms boot delay. It's not recommended to use this mechanism with embedded I2C, so disable it by leaving I2C adapter "class" field undefined (remove I2C_CLASS_HWMON). CC: Tony Lindgren <tony@atomide.com> Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com> --- drivers/i2c/busses/i2c-omap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index f06109f..ae2b27f 100644 --- a/drivers/i2c/busses/i2c-omap.c +++ b/drivers/i2c/busses/i2c-omap.c @@ -1231,7 +1231,7 @@ omap_i2c_probe(struct platform_device *pdev) adap = &dev->adapter; i2c_set_adapdata(adap, dev); adap->owner = THIS_MODULE; - adap->class = I2C_CLASS_HWMON | I2C_CLASS_DEPRECATED; + adap->class = I2C_CLASS_DEPRECATED; strlcpy(adap->name, "OMAP I2C adapter", sizeof(adap->name)); adap->algo = &omap_i2c_algo; adap->dev.parent = &pdev->dev; -- 1.7.9.5
next prev parent reply other threads:[~2013-06-19 18:27 UTC|newest] Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-06-04 17:33 [PATCH] i2c: Let users disable "Probe an I2C bus for certain devices" Grygorii Strashko 2013-06-04 17:33 ` Grygorii Strashko 2013-06-04 17:49 ` Wolfram Sang 2013-06-04 17:49 ` Wolfram Sang 2013-06-05 16:13 ` Grygorii Strashko 2013-06-05 16:13 ` Grygorii Strashko 2013-06-07 9:06 ` Wolfram Sang 2013-06-07 9:09 ` [RFC] i2c: add deprecation warning for class based instantiation Wolfram Sang 2013-06-19 10:15 ` Wolfram Sang 2013-06-19 10:15 ` Wolfram Sang 2013-06-19 18:21 ` Grygorii Strashko 2013-06-19 18:21 ` Grygorii Strashko 2013-06-20 18:37 ` Wolfram Sang 2013-06-19 18:22 ` Grygorii Strashko 2013-06-19 18:22 ` Grygorii Strashko 2013-06-19 18:22 ` Grygorii Strashko [this message] 2013-06-19 18:22 ` [RFC 1/2] i2c: omap: drop class based instantiation of slaves Grygorii Strashko 2013-06-19 18:22 ` [RFC 2/2] i2c: gpio: " Grygorii Strashko 2013-06-19 18:22 ` Grygorii Strashko 2013-06-07 10:10 ` [PATCH] i2c: Let users disable "Probe an I2C bus for certain devices" Grygorii Strashko 2013-06-07 10:10 ` Grygorii Strashko 2013-06-07 21:28 ` Wolfram Sang 2013-06-07 21:28 ` Wolfram Sang
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1371666132-29655-1-git-send-email-grygorii.strashko@ti.com \ --to=grygorii.strashko@ti.com \ --cc=linux-i2c@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-omap@vger.kernel.org \ --cc=tony@atomide.com \ --cc=wsa@the-dreams.de \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.