[PATCH v2 0/2] mfd: platform/chrome: Catch EC feature read errors during probe

Andrei Kuchynski <[email protected]>
Newsgroups dev.linux.lists.chrome-platform,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.