Skip to content

common: ina238: fix config read and update conversion handling#2744

Open
S-J-Tang wants to merge 1 commit into
facebook:mainfrom
S-J-Tang:common-ina238-20260709
Open

common: ina238: fix config read and update conversion handling#2744
S-J-Tang wants to merge 1 commit into
facebook:mainfrom
S-J-Tang:common-ina238-20260709

Conversation

@S-J-Tang

@S-J-Tang S-J-Tang commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Summary:

  • Fix INA238 config register read flow before parsing config value
  • Update VBUS conversion factor from 0.000003125 to 0.003125
  • Remove two's complement conversion from INA238 power calculation
  • Use raw power register value with cur_lsb for power reading

Test Plan:

  • Build code: Pass

Summary:
- Fix INA238 config register read flow before parsing config value
- Update VBUS conversion factor from `0.000003125` to `0.003125`
- Remove two's complement conversion from INA238 power calculation
- Use raw power register value with `cur_lsb` for power reading

Test Plan:
- Build code: Pass
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 9, 2026
@meta-codesync

meta-codesync Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

This pull request has been imported. If you are a Meta employee, you can view this in D111200560. (Because this pull request was imported automatically, there will not be any future comments.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant