[PATCH][SRU Zesty] i2c: thunderx: Enable HWMON class probing

Colin Ian King colin.king at canonical.com
Tue May 9 23:43:26 UTC 2017


On 08/05/17 15:08, dann frazier wrote:
> From: Jan Glauber <jglauber at cavium.com>
> 
> BugLink: http://bugs.launchpad.net/bugs/1688132
> 
> Set I2C_CLASS_HWMON to enable automatic probing of BMC devices
> by the ipmi-ssif driver.
> 
> Signed-off-by: Jan Glauber <jglauber at cavium.com>
> Signed-off-by: Wolfram Sang <wsa at the-dreams.de>
> (cherry picked from commit 889ef45cd4b64cc4fd6dbebecddb8ea4df8cc1e7)
> Signed-off-by: dann frazier <dann.frazier at canonical.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 bba5b429f69c..9e3365f99e90 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;
> 

Good test, limited regression potential, upstream commit, looks sane to
me. Thanks Dann

Acked-by: Colin Ian King <colin.king at canonical.com>




More information about the kernel-team mailing list