Re: [PATCH] hwmon (pmbus): Add client driver for IR35221

2017-04-21 Thread Patrick Williams
terface for programming the target voltage we're going to have to unbind the device and manually do the i2c operations. Guenter, I mention 'inN_target' to match 'fanN_target'. Do you have any opposition to either formally adding that as an option for voltage readings or adding it to this specific driver? -- Patrick Williams signature.asc Description: Digital signature

[PATCH] hwmon: (pmbus) add VR12/VR13 mode support write paths

2019-10-01 Thread Patrick Williams
pmbus_core supported VR11/VR12/VR13 modes when reading VID-formatted registers, but the write path only supported VR11 translations. Add support for VR12 and VR13 to 'data2reg_vid' for translating these formats. This is the inverse of 'reg2data_vid'. Signed-off-by: Patrick Williams

Re: [PATCH] hwmon: (pmbus) add VR12/VR13 mode support write paths

2019-10-01 Thread Patrick Williams
On Tue, 01 Oct 2019 16:02:10 -0700 Guenter Roeck wrote > > -val = clamp_val(val, 500, 1600); > > +switch (data->info->vrm_version) { > > +case vr11: > > +val = clamp_val(val, 500, 1600); > > +return 2 + DIV_ROUND_CLOSEST((1600 - val) * 100, 625);