All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] radeonfb: Let hwmon driver probe the "monid" I2C bus
@ 2011-01-11 15:23 Jean Delvare
  2011-01-13  4:11 ` Paul Mundt
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: Jean Delvare @ 2011-01-11 15:23 UTC (permalink / raw)
  To: linux-fbdev

Some Radeon cards have an I2C-based thermal sensor chip connected to
the "monid" I2C bus. Set the I2C probing class of this bus properly so
that hwmon drivers can detect devices on it and bind to them.

This closes kernel.org bug #26172.

Reported-by: Alexander Goomenyuk <emerg.reanimator@gmail.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
---
Ben, please let me know if you have any objection, and if you don't,
please let me know if you want to pick this patch or if you prefer that
I push it through my hwmon tree.

 drivers/video/aty/radeon_i2c.c |    1 +
 1 file changed, 1 insertion(+)

--- linux-2.6.38-rc0.orig/drivers/video/aty/radeon_i2c.c	2011-01-05 21:24:24.000000000 +0100
+++ linux-2.6.38-rc0/drivers/video/aty/radeon_i2c.c	2011-01-11 13:51:34.000000000 +0100
@@ -100,6 +100,7 @@ void radeon_create_i2c_busses(struct rad
 {
 	rinfo->i2c[0].rinfo	= rinfo;
 	rinfo->i2c[0].ddc_reg	= GPIO_MONID;
+	rinfo->i2c[0].adapter.class = I2C_CLASS_HWMON;
 	radeon_setup_i2c_bus(&rinfo->i2c[0], "monid");
 
 	rinfo->i2c[1].rinfo	= rinfo;


-- 
Jean Delvare

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2011-02-03  8:04 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-11 15:23 [PATCH] radeonfb: Let hwmon driver probe the "monid" I2C bus Jean Delvare
2011-01-13  4:11 ` Paul Mundt
2011-01-13  4:44 ` Dave Airlie
2011-01-13  4:50 ` Benjamin Herrenschmidt
2011-01-13  8:22 ` Jean Delvare
2011-01-13  8:56 ` Jean Delvare
2011-02-02  5:50 ` Alexander Goomenyuk
2011-02-02  8:11 ` Jean Delvare
2011-02-02  8:12 ` Jean Delvare
2011-02-02  9:51 ` Benjamin Herrenschmidt
2011-02-02 10:00 ` Michel Dänzer
2011-02-03  5:41 ` Alexander Goomenyuk
2011-02-03  8:04 ` Jean Delvare

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.