Skip to content

platform/chrome: Only register PCHG if present

Stephen Boyd chrome-platform linux-patches lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3platform/chrome: cros_ec_proto: Add peripheral charger count APIdrivers/platform/chrome/cros_ec_proto.c include/linux/platform_data/cros_ec_proto.h+32 -08 replies
2/3mfd: cros_ec_dev: Only register PCHG device if presentdrivers/mfd/cros_ec_dev.c+16 -01 reply
3/3power: supply: PCHG: Use cros_ec_pchg_port_count()drivers/power/supply/cros_peripheral_charger.c+1 -281 reply

Reviews trailers per patch

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

PatchTzung-Bi Shih
1/3R-b
2/3R-b
3/3R-b

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

Read the v1 thread

Cover letter [PATCH 0/3] platform/chrome: Only register PCHG if present

I see a printk when booting on chromebooks that don't have the PCHG device. This series extracts the count function from the PCHG driver and uses it in the mfd driver to skip registration of the PCHG device if there aren't any charger ports. This gets rid of the message at boot and removes one struct device from my system.

Stephen Boyd (3):
platform/chrome: cros_ec_proto: Add peripheral charger count API
mfd: cros_ec_dev: Only register PCHG device if present
power: supply: PCHG: Use cros_ec_pchg_port_count()

 drivers/mfd/cros_ec_dev.c                     | 16 ++++++++++
 drivers/platform/chrome/cros_ec_proto.c       | 31 +++++++++++++++++++
 .../power/supply/cros_peripheral_charger.c    | 29 +----------------
 include/linux/platform_data/cros_ec_proto.h   |  1 +
 4 files changed, 49 insertions(+), 28 deletions(-)
Cc Lee Jones <[email protected]>
Cc Daisuke Nojiri <[email protected]>
Cc Benson Leung <[email protected]>
Cc Guenter Roeck <[email protected]>

base-commit: 3123109284176b1532874591f7c81f3837bbdc17

Signature · 1 line
https://chromeos.dev