]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
mfd: cros_ec: Fail early if we cannot identify the EC
authorVincent Palatin <vpalatin@chromium.org>
Wed, 18 Apr 2018 10:23:58 +0000 (12:23 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 1 Mar 2019 13:20:35 +0000 (14:20 +0100)
commit1559c638d925a3f785052a13d05546a4d59b3b9b
tree4635ea16723475d9d56d956f1001b6b3ca8ef3e8
parenta7501ef0761afeb62bbc741793944965beb3cd12
mfd: cros_ec: Fail early if we cannot identify the EC

BugLink: http://bugs.launchpad.net/bugs/1815234
[ Upstream commit 0dbbf25561b29ffab5ba6277429760abdf49ceff ]

If we cannot communicate with the EC chip to detect the protocol version
and its features, it's very likely useless to continue. Else we will
commit all kind of uninformed mistakes (using the wrong protocol, the
wrong buffer size, mixing the EC with other chips).

Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
Acked-by: Benson Leung <bleung@chromium.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/mfd/cros_ec.c