* [GIT PULL] i2c updates for 2.6.30
@ 2009-03-28 20:39 Jean Delvare
[not found] ` <20090328213950.1c788471-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Jean Delvare @ 2009-03-28 20:39 UTC (permalink / raw)
To: Linus Torvalds, LKML; +Cc: Linux I2C
Hi Linus,
Please pull the i2c subsystem updates for Linux 2.6.30 from:
git://jdelvare.pck.nerim.net/jdelvare-2.6 i2c-for-linus
This adds support for 6 new SMBus controllers (nVidia MCP67, MCP73,
MCP78S and MCP79, AMD SB800 and Broadcom HT1100), plus the usual amount
of cleanups and random improvements, in particular to the i2c-algo-pca
and i2c-algo-pcf drivers. Also a new document explaining the different
way I2C devices can be instantiated. No core changes.
Documentation/feature-removal-schedule.txt | 3 +-
Documentation/i2c/busses/i2c-nforce2 | 12 +-
Documentation/i2c/busses/i2c-piix4 | 2 +-
Documentation/i2c/instantiating-devices | 167 ++++++++++++++++++
Documentation/i2c/writing-clients | 19 ++-
arch/sh/boards/board-sh7785lcr.c | 2 +-
drivers/i2c/algos/i2c-algo-bit.c | 4 +-
drivers/i2c/algos/i2c-algo-pca.c | 250 ++++++++++++++++++++++-----
drivers/i2c/algos/i2c-algo-pcf.c | 261 +++++++++++++---------------
drivers/i2c/busses/Kconfig | 9 +-
drivers/i2c/busses/i2c-davinci.c | 8 +-
drivers/i2c/busses/i2c-ibm_iic.c | 6 +-
drivers/i2c/busses/i2c-iop3xx.c | 2 +-
drivers/i2c/busses/i2c-mpc.c | 4 +-
drivers/i2c/busses/i2c-mv64xxx.c | 7 +-
drivers/i2c/busses/i2c-nforce2.c | 12 +-
drivers/i2c/busses/i2c-pca-isa.c | 39 +++--
drivers/i2c/busses/i2c-pca-platform.c | 48 +++---
drivers/i2c/busses/i2c-piix4.c | 77 ++++++++-
drivers/i2c/busses/i2c-powermac.c | 3 +-
drivers/i2c/busses/i2c-pxa.c | 9 +-
drivers/i2c/i2c-core.c | 36 +++--
drivers/misc/eeprom/Kconfig | 2 +-
include/linux/i2c-algo-pca.h | 33 ++++-
include/linux/i2c-pca-platform.h | 2 +-
include/linux/pci_ids.h | 5 +
26 files changed, 746 insertions(+), 276 deletions(-)
create mode 100644 Documentation/i2c/instantiating-devices
---------------
Flavio Leitner (1):
i2c-piix4: Add support for the Broadcom HT1100 chipset
Frank Seidel (2):
i2c: Add missing KERN_* constants to printks
i2c: Adapt debug macros for KERN_* constants
Jean Delvare (7):
i2c: Document the different ways to instantiate i2c devices
i2c: Let checkpatch shout on users of the legacy model
i2c: Clarify which clients are auto-removed
i2c-nforce2: Add support for MCP67, MCP73, MCP78S and MCP79
i2c: Set a default timeout value for all adapters
i2c: Adapter timeout is in jiffies
i2c-davinci: Fix timeout handling
Marco Aurelio da Costa (1):
i2c-algo-pca: Add PCA9665 support
Roel Kluin (2):
i2c-algo-pcf: Style cleanups
i2c-algo-pcf: Handle timeout correctly
Shane Huang (1):
i2c-piix4: Add support to SB800 SMBus changes
Wolfram Sang (4):
eeprom/at24: Remove EXPERIMENTAL
i2c-algo-pca: Rework waiting for a free bus
i2c-algo-pca: Use timeout for checking the state machine
i2c-pca-platform: Use defaults if no platform_data given
Zhenwen Xu (1):
i2c-core: Some style cleanups
Thanks,
--
Jean Delvare
^ permalink raw reply [flat|nested] 5+ messages in thread[parent not found: <20090328213950.1c788471-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>]
* Re: [GIT PULL] i2c updates for 2.6.30 [not found] ` <20090328213950.1c788471-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org> @ 2009-04-07 20:20 ` Geert Uytterhoeven [not found] ` <10f740e80904071320t2fdd073bs51f3a8abf0f60e36-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Geert Uytterhoeven @ 2009-04-07 20:20 UTC (permalink / raw) To: Jean Delvare, Wolfram Sang; +Cc: LKML, Linux I2C On Sat, Mar 28, 2009 at 22:39, Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org> wrote: > Please pull the i2c subsystem updates for Linux 2.6.30 from: > Wolfram Sang (4): > i2c-algo-pca: Rework waiting for a free bus This one introduced: drivers/i2c/algos/i2c-algo-pca.c:197: warning: 'state' is used uninitialized in this function Probably while (pca_status(adap) != 0xf8) { should become while ((state = pca_status(adap)) != 0xf8) { again. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <10f740e80904071320t2fdd073bs51f3a8abf0f60e36-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [GIT PULL] i2c updates for 2.6.30 [not found] ` <10f740e80904071320t2fdd073bs51f3a8abf0f60e36-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2009-04-08 8:03 ` Wolfram Sang 2009-04-08 8:13 ` Jean Delvare 1 sibling, 0 replies; 5+ messages in thread From: Wolfram Sang @ 2009-04-08 8:03 UTC (permalink / raw) To: Geert Uytterhoeven; +Cc: Jean Delvare, LKML, Linux I2C [-- Attachment #1: Type: text/plain, Size: 320 bytes --] > drivers/i2c/algos/i2c-algo-pca.c:197: warning: 'state' is used > uninitialized in this function ACK. Will send a patch in a minute. Thanks for reporting! -- Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ | [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 197 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [GIT PULL] i2c updates for 2.6.30 [not found] ` <10f740e80904071320t2fdd073bs51f3a8abf0f60e36-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2009-04-08 8:03 ` Wolfram Sang @ 2009-04-08 8:13 ` Jean Delvare [not found] ` <20090408101303.71399654-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org> 1 sibling, 1 reply; 5+ messages in thread From: Jean Delvare @ 2009-04-08 8:13 UTC (permalink / raw) To: Geert Uytterhoeven; +Cc: Wolfram Sang, LKML, Linux I2C Hi Geert, On Tue, 7 Apr 2009 22:20:29 +0200, Geert Uytterhoeven wrote: > On Sat, Mar 28, 2009 at 22:39, Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org> wrote: > > Please pull the i2c subsystem updates for Linux 2.6.30 from: > > > Wolfram Sang (4): > > i2c-algo-pca: Rework waiting for a free bus > > This one introduced: > > drivers/i2c/algos/i2c-algo-pca.c:197: warning: 'state' is used > uninitialized in this function > > Probably > > while (pca_status(adap) != 0xf8) { > > should become > > while ((state = pca_status(adap)) != 0xf8) { > > again. You're perfectly right, I must have missed it because I didn't build any kernel with CONFIG_I2C_DEBUG_ALGO=y for a long time. Here's the fix I will push to Linus soon: From: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org> Subject: i2c-algo-pca: Fix use of uninitialized variable in debug message A recent change broke debugging of pca_xfer(), fix it. Reported-by: Geert Uytterhoeven <geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org> Signed-off-by: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org> Cc: Wolfram Sang <w.sang-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> --- drivers/i2c/algos/i2c-algo-pca.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-2.6.30-rc1.orig/drivers/i2c/algos/i2c-algo-pca.c 2009-04-08 08:52:48.000000000 +0200 +++ linux-2.6.30-rc1/drivers/i2c/algos/i2c-algo-pca.c 2009-04-08 10:06:36.000000000 +0200 @@ -190,7 +190,7 @@ static int pca_xfer(struct i2c_adapter * int completed = 1; unsigned long timeout = jiffies + i2c_adap->timeout; - while (pca_status(adap) != 0xf8) { + while ((state = pca_status(adap)) != 0xf8) { if (time_before(jiffies, timeout)) { msleep(10); } else { -- Jean Delvare ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <20090408101303.71399654-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>]
* Re: [GIT PULL] i2c updates for 2.6.30 [not found] ` <20090408101303.71399654-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org> @ 2009-04-08 8:15 ` Wolfram Sang 0 siblings, 0 replies; 5+ messages in thread From: Wolfram Sang @ 2009-04-08 8:15 UTC (permalink / raw) To: Jean Delvare; +Cc: Geert Uytterhoeven, LKML, Linux I2C [-- Attachment #1: Type: text/plain, Size: 2494 bytes --] On Wed, Apr 08, 2009 at 10:13:03AM +0200, Jean Delvare wrote: > Hi Geert, > > On Tue, 7 Apr 2009 22:20:29 +0200, Geert Uytterhoeven wrote: > > On Sat, Mar 28, 2009 at 22:39, Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org> wrote: > > > Please pull the i2c subsystem updates for Linux 2.6.30 from: > > > > > Wolfram Sang (4): > > > i2c-algo-pca: Rework waiting for a free bus > > > > This one introduced: > > > > drivers/i2c/algos/i2c-algo-pca.c:197: warning: 'state' is used > > uninitialized in this function > > > > Probably > > > > while (pca_status(adap) != 0xf8) { > > > > should become > > > > while ((state = pca_status(adap)) != 0xf8) { > > > > again. > > You're perfectly right, I must have missed it because I didn't build > any kernel with CONFIG_I2C_DEBUG_ALGO=y for a long time. Here's the fix > I will push to Linus soon: > > From: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org> > Subject: i2c-algo-pca: Fix use of uninitialized variable in debug message > > A recent change broke debugging of pca_xfer(), fix it. > > Reported-by: Geert Uytterhoeven <geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org> > Signed-off-by: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org> > Cc: Wolfram Sang <w.sang-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> Heh, I was too slow :) Acked-by: Wolfram Sang <w.sang-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> > --- > drivers/i2c/algos/i2c-algo-pca.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > --- linux-2.6.30-rc1.orig/drivers/i2c/algos/i2c-algo-pca.c 2009-04-08 08:52:48.000000000 +0200 > +++ linux-2.6.30-rc1/drivers/i2c/algos/i2c-algo-pca.c 2009-04-08 10:06:36.000000000 +0200 > @@ -190,7 +190,7 @@ static int pca_xfer(struct i2c_adapter * > int completed = 1; > unsigned long timeout = jiffies + i2c_adap->timeout; > > - while (pca_status(adap) != 0xf8) { > + while ((state = pca_status(adap)) != 0xf8) { > if (time_before(jiffies, timeout)) { > msleep(10); > } else { > > > -- > Jean Delvare > -- > To unsubscribe from this list: send the line "unsubscribe linux-i2c" in > the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ | [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 197 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-04-08 8:15 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-28 20:39 [GIT PULL] i2c updates for 2.6.30 Jean Delvare
[not found] ` <20090328213950.1c788471-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2009-04-07 20:20 ` Geert Uytterhoeven
[not found] ` <10f740e80904071320t2fdd073bs51f3a8abf0f60e36-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-04-08 8:03 ` Wolfram Sang
2009-04-08 8:13 ` Jean Delvare
[not found] ` <20090408101303.71399654-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2009-04-08 8:15 ` Wolfram Sang
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox