[PATCH v2 0/2] mfd: platform/chrome: Catch EC feature read errors during probe
From: Andrei Kuchynski
Date: Mon Jun 08 2026 - 17:15:29 EST
This series fixes a sysfs duplicate name collision that occurs when the
Fingerprint device fails to respond during probe, causing it to
incorrectly fall back to the generic 'cros_ec' name.
Changes in v2:
- Split into a 2-patch series.
- Carried over Acked-by from Tzung-Bi Shih for Patch 1.
- Fixed an ec->class_dev resource leak by utilizing 'goto failed;'.
- Moved class_dev initialization to prevent a missing release()
callback warning on the error path.
Andrei Kuchynski (2):
platform/chrome: cros_ec_proto: Introduce cros_ec_read_features helper
mfd: cros_ec: Read EC features during probe to catch transfer error
drivers/mfd/cros_ec_dev.c | 18 ++++++++-----
drivers/platform/chrome/cros_ec_proto.c | 30 +++++++++++++++------
include/linux/platform_data/cros_ec_proto.h | 2 ++
3 files changed, 35 insertions(+), 15 deletions(-)
--
2.54.0.1032.g2f8565e1d1-goog