Skip to content

platform/x86: Vexia EDU ATLA 10 pwrsrc and battery support

Hans de Goede platform-driver-x86 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 1 replyIn review
  2. v22 patches 9 repliesSuperseded
  3. v12 patches 5 repliesSuperseded

Changes in v3 from the cover letter

- Use I2C_SMBUS_BLOCK_MAX instead of hardcoding 32 bytes as bufsize
- Add UPDATE_INTERVAL_JIFFIES define

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2platform/x86/intel: bytcrc_pwrsrc: Optionally register a power_supply devdrivers/platform/x86/intel/bytcrc_pwrsrc.c+77 -20 replies
2/2platform/x86: x86-android-tablets: Add Vexia EDU ATLA 10 EC battery driverdrivers/platform/x86/x86-android-tablets/Makefile drivers/platform/x86/x86-android-tablets/vexia_atla10_ec.c+262 -10 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchAndy Shevchenko
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] platform/x86: Vexia EDU ATLA 10 pwrsrc and battery support

Hi All,

Here is v3 of my series to add support for having the bytcrc_pwrsrc driver register a power_supply class device and adding a new driver for battery monitoring using the Vexia EDU ATLA 10 EC.

Changes in v3:
- Use I2C_SMBUS_BLOCK_MAX instead of hardcoding 32 bytes as bufsize
- Add UPDATE_INTERVAL_JIFFIES define

Changes in v2:
- Makefile tweaks
- postfix variable/define names with units (e.g. _mV / _mAh)
- Replace i2c_smbus_read_i2c_block_data() with i2c_smbus_read_block_data() which takes care of the length byte prefixing the buffer for us
- Address other small review remarks

Regards,

Hans

Hans de Goede (2):
platform/x86/intel: bytcrc_pwrsrc: Optionally register a power_supply
dev
platform/x86: x86-android-tablets: Add Vexia EDU ATLA 10 EC battery
driver

 drivers/platform/x86/intel/bytcrc_pwrsrc.c    |  79 +++++-
 .../platform/x86/x86-android-tablets/Makefile |   2 +-
 .../x86/x86-android-tablets/vexia_atla10_ec.c | 261 ++++++++++++++++++
 3 files changed, 339 insertions(+), 3 deletions(-)
 create mode 100644 drivers/platform/x86/x86-android-tablets/vexia_atla10_ec.c
Signature · 1 line
2.47.0