linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] i2c: thunderx: Enable HWMON class probing
@ 2017-04-21 14:43 Jan Glauber
  2017-04-21 16:05 ` Wolfram Sang
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Glauber @ 2017-04-21 14:43 UTC (permalink / raw)
  To: Wolfram Sang; +Cc: linux-i2c, David Daney, Vadim Lomovtsev, Jan Glauber

Set I2C_CLASS_HWMON to enable automatic probing of BMC devices
by the ipmi-ssif driver.

Signed-off-by: Jan Glauber <jglauber@cavium.com>
---
 drivers/i2c/busses/i2c-thunderx-pcidrv.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/i2c/busses/i2c-thunderx-pcidrv.c b/drivers/i2c/busses/i2c-thunderx-pcidrv.c
index 1d4c2be..e7deef4 100644
--- a/drivers/i2c/busses/i2c-thunderx-pcidrv.c
+++ b/drivers/i2c/busses/i2c-thunderx-pcidrv.c
@@ -205,6 +205,7 @@ static int thunder_i2c_probe_pci(struct pci_dev *pdev,
 
 	i2c->adap = thunderx_i2c_ops;
 	i2c->adap.retries = 5;
+	i2c->adap.class = I2C_CLASS_HWMON;
 	i2c->adap.bus_recovery_info = &octeon_i2c_recovery_info;
 	i2c->adap.dev.parent = dev;
 	i2c->adap.dev.of_node = pdev->dev.of_node;
-- 
2.9.0.rc0.21.g7777322

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

* Re: [PATCH] i2c: thunderx: Enable HWMON class probing
  2017-04-21 14:43 [PATCH] i2c: thunderx: Enable HWMON class probing Jan Glauber
@ 2017-04-21 16:05 ` Wolfram Sang
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfram Sang @ 2017-04-21 16:05 UTC (permalink / raw)
  To: Jan Glauber; +Cc: linux-i2c, David Daney, Vadim Lomovtsev

[-- Attachment #1: Type: text/plain, Size: 246 bytes --]

On Fri, Apr 21, 2017 at 04:43:55PM +0200, Jan Glauber wrote:
> Set I2C_CLASS_HWMON to enable automatic probing of BMC devices
> by the ipmi-ssif driver.
> 
> Signed-off-by: Jan Glauber <jglauber@cavium.com>

Applied to for-next, thanks!


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2017-04-21 18:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-21 14:43 [PATCH] i2c: thunderx: Enable HWMON class probing Jan Glauber
2017-04-21 16:05 ` Wolfram Sang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).