Linux Framebuffer Layer development
 help / color / mirror / Atom feed
From: Jean Delvare <khali@linux-fr.org>
To: linux-fbdev@vger.kernel.org
Subject: [PATCH v2] radeonfb: Let hwmon driver probe the "monid" I2C bus
Date: Thu, 03 Feb 2011 08:23:10 +0000	[thread overview]
Message-ID: <20110203092310.74f3c690@endymion.delvare> (raw)

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>
---
Changes since v1:
* Excluded CONFIG_PPC as requested by Benjamin H.

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

--- linux-2.6.38-rc3.orig/drivers/video/aty/radeon_i2c.c	2011-02-03 08:42:36.000000000 +0100
+++ linux-2.6.38-rc3/drivers/video/aty/radeon_i2c.c	2011-02-03 09:13:41.000000000 +0100
@@ -100,6 +100,9 @@ void radeon_create_i2c_busses(struct rad
 {
 	rinfo->i2c[0].rinfo	= rinfo;
 	rinfo->i2c[0].ddc_reg	= GPIO_MONID;
+#ifndef CONFIG_PPC
+	rinfo->i2c[0].adapter.class = I2C_CLASS_HWMON;
+#endif
 	radeon_setup_i2c_bus(&rinfo->i2c[0], "monid");
 
 	rinfo->i2c[1].rinfo	= rinfo;


-- 
Jean Delvare

                 reply	other threads:[~2011-02-03  8:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20110203092310.74f3c690@endymion.delvare \
    --to=khali@linux-fr.org \
    --cc=linux-fbdev@vger.kernel.org \
    /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: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox