public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Potential issue with smb word operations for tmp461 device in tmp401 driver
@ 2021-10-15 17:43 Wilson, David T. (GSFC-5870)
  2021-10-15 22:27 ` Guenter Roeck
  2021-10-19  4:56 ` Guenter Roeck
  0 siblings, 2 replies; 12+ messages in thread
From: Wilson, David T. (GSFC-5870) @ 2021-10-15 17:43 UTC (permalink / raw)
  To: linux@roeck-us.net
  Cc: linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org

Hi,

I am reporting what I believe is a potential issue in the tmp401 driver for the tmp461 device specifically. I am new to reporting issues, so I apologize in advance if I've provided insufficient information for an issue report.

The problem I'm encountering is that when I use the tmp401 linux driver to read temperature values from the tmp461, all of the read temperature values end with 996 (e.g. 33996, 38996, etc...).

Looking further into the tmp401 commit messages, I see that the driver was changed to use smb word operations instead of separate byte operations. Although the other supported devices (i.e. tmp432, etc...) are noted to support 16-bit read operations in their respective datasheets, I see no indications of 16-bit read support in the tmp461 datasheet, which is supported by my inquiry in the TI forums (https://e2e.ti.com/support/sensors-group/sensors/f/sensors-forum/1044935/tmp461-linux-driver-support-and-16-bit-temperature-register-reads).

Reverting the driver to the commit before the smb word change, I am then able to read temperature values that do not end only with 996. As a result, I believe that the tmp461 support may be partially broken by the switch to smb word operations.

Thanks,
David Wilson

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

end of thread, other threads:[~2021-10-28 16:20 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-15 17:43 Potential issue with smb word operations for tmp461 device in tmp401 driver Wilson, David T. (GSFC-5870)
2021-10-15 22:27 ` Guenter Roeck
2021-10-16  2:33   ` [EXTERNAL] " Wilson, David T. (GSFC-5870)
2021-10-16  3:31     ` Guenter Roeck
2021-10-19  4:56 ` Guenter Roeck
2021-10-19  5:42   ` [EXTERNAL] " Wilson, David T. (GSFC-5870)
2021-10-19 14:18     ` Guenter Roeck
2021-10-21  5:37       ` Wilson, David T. (GSFC-5870)
2021-10-21  7:07         ` Guenter Roeck
2021-10-28  1:54           ` Wilson, David T. (GSFC-5870)
2021-10-28  4:03             ` Guenter Roeck
2021-10-28 16:20             ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox