Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

radeonfb: Let hwmon driver probe the "monid" I2C bus

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.

We exclude PPC for the time being, as Benjamin doesn't want us to
mess up with them without explicit testing, and there is no evidence
that this change is needed for them either.

Reported-by: Alexander Goomenyuk <emerg.reanimator@gmail.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>

authored by

Jean Delvare and committed by
Paul Mundt
49bb0943 beee1f20

+3
+3
drivers/video/aty/radeon_i2c.c
··· 100 100 { 101 101 rinfo->i2c[0].rinfo = rinfo; 102 102 rinfo->i2c[0].ddc_reg = GPIO_MONID; 103 + #ifndef CONFIG_PPC 104 + rinfo->i2c[0].adapter.class = I2C_CLASS_HWMON; 105 + #endif 103 106 radeon_setup_i2c_bus(&rinfo->i2c[0], "monid"); 104 107 105 108 rinfo->i2c[1].rinfo = rinfo;