Jean Delvare | 4 May 2010 11:12
Gravatar

[GIT PULL] i2c fixes for 2.6.34

Hi Linus,

Please pull i2c subsystem fixes for Linux 2.6.34 from:

git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging.git i2c-for-linus

 Documentation/i2c/writing-clients |    5 +++
 drivers/i2c/i2c-core.c            |   63 +++++++++++++++++++++++-------------
 include/linux/i2c.h               |    2 +
 3 files changed, 47 insertions(+), 23 deletions(-)

---------------

Jean Delvare (2):
      i2c: Fix probing of FSC hardware monitoring chips
      i2c-core: Use per-adapter userspace device lists

Wolfram Sang (1):
      i2c-core: Erase pointer to clientdata on removal

Thanks,
--

-- 
Jean Delvare
Michael Lawnick | 4 May 2010 14:29
Picon
Picon

[PATCH v2 1/2] i2c: Multiplexed I2C bus core support

Add multiplexed bus core support. I2C multiplexer and switches
like pca954x instantiate new adapters per output.

Signed-off-by: Michael Lawnick <ml.lawnick@...>
---
Based on kernel 2.6.33 +
[PATCH] i2c-core: Use per-adapter userspace device lists
by Jean Delware <20100424201914.08b3f008@...>
<http://article.gmane.org/gmane.linux.drivers.i2c/5994/>

From 1d17617d8845f2268d4123ec0cf5310743303d45 Mon Sep 17 00:00:00 2001
From: Michael Lawnick <demx1175 <at> demmc3qc.(none)>
Date: Tue, 4 May 2010 13:34:52 +0200
Subject: [PATCH] mux_core_support

---
 drivers/i2c/Kconfig     |    8 ++
 drivers/i2c/Makefile    |    1 +
 drivers/i2c/i2c-core.c  |   93 ++++++++++++++++++++++--
 drivers/i2c/i2c-dev.c   |   46 ++++++++++++-
 drivers/i2c/i2c-mux.c   |  184
+++++++++++++++++++++++++++++++++++++++++++++++
 include/linux/i2c-mux.h |   46 ++++++++++++
 include/linux/i2c.h     |   11 +++
 7 files changed, 381 insertions(+), 8 deletions(-)
 create mode 100755 drivers/i2c/i2c-mux.c
 create mode 100755 include/linux/i2c-mux.h

diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig
index 8d8a00e..2cd6d78 100755
(Continue reading)

Rodolfo Giometti | 4 May 2010 14:33
Favicon

Re: [PATCH v2 1/2] i2c: Multiplexed I2C bus core support

On Tue, May 04, 2010 at 02:29:21PM +0200, Michael Lawnick wrote:
> Add multiplexed bus core support. I2C multiplexer and switches
> like pca954x instantiate new adapters per output.
> 
> Signed-off-by: Michael Lawnick <ml.lawnick@...>

Acked-by: Rodolfo Giometti <giometti@...>

--

-- 

GNU/Linux Solutions                  e-mail: giometti@...
Linux Device Driver                          giometti@...
Embedded Systems                     phone:  +39 349 2432127
UNIX programming                     skype:  rodolfo.giometti
Freelance ICT Italia - Consulente ICT Italia - www.consulenti-ict.it
Michael Lawnick | 4 May 2010 14:37
Picon
Picon

Re: [PATCH v2 1/2] i2c: Multiplexed I2C bus core support

Seems like Thunderbird isn't usable for sending patches :-(
Trying again with attachment.
Michael Lawnick | 4 May 2010 14:46
Picon
Picon

[PATCH v2 1/2] i2c: Multiplexed I2C bus core support

gmane.linux.drivers.i2c
Add multiplexed bus core support. I2C multiplexer and switches
like pca954x get instantiated as new adapters per output.

Signed-off-by: Michael Lawnick <ml.lawnick@...>

---
Based on kernel 2.6.33 +
[PATCH] i2c-core: Use per-adapter userspace device lists
by Jean Delware <20100424201914.08b3f008@...>
<http://article.gmane.org/gmane.linux.drivers.i2c/5994/>

 drivers/i2c/Kconfig     |    8 ++
 drivers/i2c/Makefile    |    1 +
 drivers/i2c/i2c-core.c  |   93 ++++++++++++++++++++++--
 drivers/i2c/i2c-dev.c   |   46 ++++++++++++-
 drivers/i2c/i2c-mux.c   |  184 +++++++++++++++++++++++++++++++++++++++++++++++
 include/linux/i2c-mux.h |   46 ++++++++++++
 include/linux/i2c.h     |   11 +++
 7 files changed, 381 insertions(+), 8 deletions(-)
 create mode 100755 drivers/i2c/i2c-mux.c
 create mode 100755 include/linux/i2c-mux.h

diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig
index 8d8a00e..2cd6d78 100755
--- a/drivers/i2c/Kconfig
+++ b/drivers/i2c/Kconfig
 <at>  <at>  -36,6 +36,14  <at>  <at>  config I2C_COMPAT
 	  other user-space package which expects i2c adapters to be class
(Continue reading)

Michael Lawnick | 4 May 2010 14:48
Picon
Picon

[PATCH v2 2/2] i2c: Multiplexed I2C bus multiplexer driver pca954x

gmane.linux.drivers.i2c
Add multiplexed bus core support. I2C driver for PCA954x
I2C multiplexer series.

Signed-off-by: Michael Lawnick <ml.lawnick@...>

---
Based on kernel 2.6.33 +
[PATCH] i2c-core: Use per-adapter userspace device lists
by Jean Delware <20100424201914.08b3f008@...>
<http://article.gmane.org/gmane.linux.drivers.i2c/5994/>

 drivers/i2c/Kconfig         |    2 +
 drivers/i2c/Makefile        |    2 +-
 drivers/i2c/muxes/Kconfig   |   17 +++
 drivers/i2c/muxes/Makefile  |    8 +
 drivers/i2c/muxes/pca954x.c |  302 +++++++++++++++++++++++++++++++++++++++++++
 include/linux/i2c/pca954x.h |   47 +++++++
 6 files changed, 377 insertions(+), 1 deletions(-)
 create mode 100755 drivers/i2c/muxes/Kconfig
 create mode 100755 drivers/i2c/muxes/Makefile
 create mode 100755 drivers/i2c/muxes/pca954x.c
 create mode 100755 include/linux/i2c/pca954x.h

diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig
index 2cd6d78..21b0ac0 100755
--- a/drivers/i2c/Kconfig
+++ b/drivers/i2c/Kconfig
 <at>  <at>  -44,6 +44,8  <at>  <at>  config I2C_MUX
(Continue reading)

Rodolfo Giometti | 4 May 2010 14:52
Favicon

Re: [PATCH v2 1/2] i2c: Multiplexed I2C bus core support

On Tue, May 04, 2010 at 02:46:57PM +0200, Michael Lawnick wrote:

> Add multiplexed bus core support. I2C multiplexer and switches
> like pca954x get instantiated as new adapters per output.
> 
> Signed-off-by: Michael Lawnick <ml.lawnick@...>

Acked-by: Rodolfo Giometti <giometti@...>

--

-- 

GNU/Linux Solutions                  e-mail: giometti@...
Linux Device Driver                          giometti@...
Embedded Systems                     phone:  +39 349 2432127
UNIX programming                     skype:  rodolfo.giometti
Freelance ICT Italia - Consulente ICT Italia - www.consulenti-ict.it
Rodolfo Giometti | 4 May 2010 14:52
Favicon

Re: [PATCH v2 2/2] i2c: Multiplexed I2C bus multiplexer driver pca954x

On Tue, May 04, 2010 at 02:48:21PM +0200, Michael Lawnick wrote:

> Add multiplexed bus core support. I2C driver for PCA954x
> I2C multiplexer series.
> 
> Signed-off-by: Michael Lawnick <ml.lawnick@...>

Acked-by: Rodolfo Giometti <giometti@...>

--

-- 

GNU/Linux Solutions                  e-mail: giometti@...
Linux Device Driver                          giometti@...
Embedded Systems                     phone:  +39 349 2432127
UNIX programming                     skype:  rodolfo.giometti
Freelance ICT Italia - Consulente ICT Italia - www.consulenti-ict.it
Yegor Yefremov | 4 May 2010 17:19

Re: [PATCH v2 1/2] i2c: Multiplexed I2C bus core support

On Tue, May 4, 2010 at 2:37 PM, Michael Lawnick <ml.lawnick@...> wrote:
> Seems like Thunderbird isn't usable for sending patches :-(
> Trying again with attachment.

Have you tried External Editor with VIM:
http://globs.org/articles.php?pg=2&lng=en

For me it is working like a charm.

Regards,
Yegor
Joonyoung Shim | 6 May 2010 07:06

[PATCH] i2c-s3c2410: Fixup debug print of IICCON register

This patch is for debug print of the last IICCON register value applied
by s3c24xx_i2c_clockrate function.

Signed-off-by: Joonyoung Shim <jy0922.shim@...>
---
 drivers/i2c/busses/i2c-s3c2410.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/i2c/busses/i2c-s3c2410.c b/drivers/i2c/busses/i2c-s3c2410.c
index d27072b..0445698 100644
--- a/drivers/i2c/busses/i2c-s3c2410.c
+++ b/drivers/i2c/busses/i2c-s3c2410.c
 <at>  <at>  -611,7 +611,7  <at>  <at>  static int s3c24xx_i2c_clockrate(struct s3c24xx_i2c *i2c, unsigned int *got)
 	unsigned long clkin = clk_get_rate(i2c->clk);
 	unsigned int divs, div1;
 	unsigned long target_frequency;
-	u32 iiccon;
+	unsigned long iiccon;
 	int freq;

 	i2c->clkrate = clkin;
 <at>  <at>  -641,6 +641,7  <at>  <at>  static int s3c24xx_i2c_clockrate(struct s3c24xx_i2c *i2c, unsigned int *got)
 	if (div1 == 512)
 		iiccon |= S3C2410_IICCON_TXDIV_512;

+	dev_dbg(i2c->dev, "IICCON=0x%02lx\n", iiccon);
 	writel(iiccon, i2c->regs + S3C2410_IICCON);

 	if (s3c24xx_i2c_is2440(i2c)) {
 <at>  <at>  -730,7 +731,7  <at>  <at>  static inline void s3c24xx_i2c_deregister_cpufreq(struct s3c24xx_i2c *i2c)
(Continue reading)


Gmane