diff mbox series

hwmon: (pmbus/isl68137) remove READ_TEMPERATURE_3 for RAA228228

Message ID 20210514211954.GA24646@raspberrypi (mailing list archive)
State Accepted
Headers show
Series hwmon: (pmbus/isl68137) remove READ_TEMPERATURE_3 for RAA228228 | expand

Commit Message

Grant Peltier May 14, 2021, 9:19 p.m. UTC
The initial version of the RAA228228 datasheet claimed that the device
supported READ_TEMPERATURE_3 but not READ_TEMPERATURE_1. It has since been
discovered that the datasheet was incorrect. The RAA228228 does support
READ_TEMPERATURE_1 but does not support READ_TEMPERATURE_3.

This change fixes an error introduced in commit:
51fb91ed5a6fa855a74731610cd5435d83d6e17f

Signed-off-by: Grant Peltier <grantpeltier93@gmail.com>
---
 drivers/hwmon/pmbus/isl68137.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Guenter Roeck May 14, 2021, 9:43 p.m. UTC | #1
On 5/14/21 2:19 PM, Grant Peltier wrote:
> The initial version of the RAA228228 datasheet claimed that the device
> supported READ_TEMPERATURE_3 but not READ_TEMPERATURE_1. It has since been
> discovered that the datasheet was incorrect. The RAA228228 does support
> READ_TEMPERATURE_1 but does not support READ_TEMPERATURE_3.
> 

Sorry that I have to ask, but do you have some kind of reference for that ?
Due to recent events I can unfortunately no longer trust such submissions
without some kind of confirmation (for example resend from your Renesas
e-mail address if that is possible, or ask someone from a Renesas e-mail
address to send a Reviewed-by: / Acked-by:).

> This change fixes an error introduced in commit:
> 51fb91ed5a6fa855a74731610cd5435d83d6e17f
> 

That should be

Fixes: 51fb91ed5a6fa ("hwmon: (pmbus/isl68137) remove READ_TEMPERATURE_1 telemetry for RAA228228")

Thanks,
Guenter

> Signed-off-by: Grant Peltier <grantpeltier93@gmail.com>
> ---
>   drivers/hwmon/pmbus/isl68137.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/hwmon/pmbus/isl68137.c b/drivers/hwmon/pmbus/isl68137.c
> index 40597a9e799f..1a8caff1ac5f 100644
> --- a/drivers/hwmon/pmbus/isl68137.c
> +++ b/drivers/hwmon/pmbus/isl68137.c
> @@ -244,8 +244,8 @@ static int isl68137_probe(struct i2c_client *client)
>   		info->read_word_data = raa_dmpvr2_read_word_data;
>   		break;
>   	case raa_dmpvr2_2rail_nontc:
> -		info->func[0] &= ~PMBUS_HAVE_TEMP;
> -		info->func[1] &= ~PMBUS_HAVE_TEMP;
> +		info->func[0] &= ~PMBUS_HAVE_TEMP3;
> +		info->func[1] &= ~PMBUS_HAVE_TEMP3;
>   		fallthrough;
>   	case raa_dmpvr2_2rail:
>   		info->pages = 2;
>
Guenter Roeck May 14, 2021, 10:23 p.m. UTC | #2
On 5/14/21 3:11 PM, Adam Vaughn wrote:
> Hi, Guenter,
> 
> Attached is the datasheet behind this change. See section 11 for the revision history.
> 

Great, thanks. I'll apply the patch.

Sorry for the trouble, I wish things were easier :-(.

Guenter

> Regards,
> 
> Adam Vaughn
> Staff Product Marketing Manager
> Core Power Solutions
> Mobility Infrastructre & IoT Power Business Division
> Renesas Electronics America
> 
> -----Original Message-----
> From: Guenter Roeck <groeck7@gmail.com> On Behalf Of Guenter Roeck
> Sent: Friday, May 14, 2021 4:43 PM
> To: Grant Peltier <grantpeltier93@gmail.com>
> Cc: linux-hwmon@vger.kernel.org; Grant Peltier <grant.peltier.jg@renesas.com>; Adam Vaughn <adam.vaughn.xh@renesas.com>
> Subject: Re: [PATCH] hwmon: (pmbus/isl68137) remove READ_TEMPERATURE_3 for RAA228228
> 
> On 5/14/21 2:19 PM, Grant Peltier wrote:
>> The initial version of the RAA228228 datasheet claimed that the device
>> supported READ_TEMPERATURE_3 but not READ_TEMPERATURE_1. It has since
>> been discovered that the datasheet was incorrect. The RAA228228 does
>> support
>> READ_TEMPERATURE_1 but does not support READ_TEMPERATURE_3.
>>
> 
> Sorry that I have to ask, but do you have some kind of reference for that ?
> Due to recent events I can unfortunately no longer trust such submissions without some kind of confirmation (for example resend from your Renesas e-mail address if that is possible, or ask someone from a Renesas e-mail address to send a Reviewed-by: / Acked-by:).
> 
>> This change fixes an error introduced in commit:
>> 51fb91ed5a6fa855a74731610cd5435d83d6e17f
>>
> 
> That should be
> 
> Fixes: 51fb91ed5a6fa ("hwmon: (pmbus/isl68137) remove READ_TEMPERATURE_1 telemetry for RAA228228")
> 
> Thanks,
> Guenter
> 
>> Signed-off-by: Grant Peltier <grantpeltier93@gmail.com>
>> ---
>>    drivers/hwmon/pmbus/isl68137.c | 4 ++--
>>    1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/hwmon/pmbus/isl68137.c
>> b/drivers/hwmon/pmbus/isl68137.c index 40597a9e799f..1a8caff1ac5f
>> 100644
>> --- a/drivers/hwmon/pmbus/isl68137.c
>> +++ b/drivers/hwmon/pmbus/isl68137.c
>> @@ -244,8 +244,8 @@ static int isl68137_probe(struct i2c_client *client)
>>    		info->read_word_data = raa_dmpvr2_read_word_data;
>>    		break;
>>    	case raa_dmpvr2_2rail_nontc:
>> -		info->func[0] &= ~PMBUS_HAVE_TEMP;
>> -		info->func[1] &= ~PMBUS_HAVE_TEMP;
>> +		info->func[0] &= ~PMBUS_HAVE_TEMP3;
>> +		info->func[1] &= ~PMBUS_HAVE_TEMP3;
>>    		fallthrough;
>>    	case raa_dmpvr2_2rail:
>>    		info->pages = 2;
>>
>
diff mbox series

Patch

diff --git a/drivers/hwmon/pmbus/isl68137.c b/drivers/hwmon/pmbus/isl68137.c
index 40597a9e799f..1a8caff1ac5f 100644
--- a/drivers/hwmon/pmbus/isl68137.c
+++ b/drivers/hwmon/pmbus/isl68137.c
@@ -244,8 +244,8 @@  static int isl68137_probe(struct i2c_client *client)
 		info->read_word_data = raa_dmpvr2_read_word_data;
 		break;
 	case raa_dmpvr2_2rail_nontc:
-		info->func[0] &= ~PMBUS_HAVE_TEMP;
-		info->func[1] &= ~PMBUS_HAVE_TEMP;
+		info->func[0] &= ~PMBUS_HAVE_TEMP3;
+		info->func[1] &= ~PMBUS_HAVE_TEMP3;
 		fallthrough;
 	case raa_dmpvr2_2rail:
 		info->pages = 2;