android_kernel_oneplus_msm8998/drivers/platform/chrome
Shawn Nematbakhsh df9d1861a0 platform/chrome: Use proper protocol transfer function
[ Upstream commit d48b8c58c57f6edbe2965f0a5f62c5cf9593ca96 ]

pkt_xfer should be used for protocol v3, and cmd_xfer otherwise. We had
one instance of these functions correct, but not the second, fall-back
case. We use the fall-back only when the first command returns an
IN_PROGRESS status, which is only used on some EC firmwares where we
don't want to constantly poll the bus, but instead back off and
sleep/retry for a little while.

Fixes: 2c7589af3c ("mfd: cros_ec: add proto v3 skeleton")
Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Signed-off-by: Brian Norris <briannorris@chromium.org>
Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Benson Leung <bleung@chromium.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-03-24 10:58:47 +01:00
..
chromeos_laptop.c platform/chrome: Fix i2c-designware adapter name 2015-11-09 19:43:33 -08:00
chromeos_pstore.c platform/chrome: pstore: fix dmi table to match all chrome systems 2014-07-10 10:38:41 -07:00
cros_ec_dev.c platform/chrome: cros_ec_dev - double fetch bug in ioctl 2016-08-10 11:49:28 +02:00
cros_ec_dev.h mfd: cros_ec: Support multiple EC in a system 2015-06-15 13:18:23 +01:00
cros_ec_lightbar.c platform/chrome: cros_ec: Fix possible leak in led_rgb_store() 2015-10-07 14:34:26 -07:00
cros_ec_lpc.c platform/chrome: cros_ec_lpc - Add support for Google Pixel 2 2015-10-07 14:34:26 -07:00
cros_ec_proto.c platform/chrome: Use proper protocol transfer function 2018-03-24 10:58:47 +01:00
cros_ec_sysfs.c cros_ec: fix nul-termination for firmware build info 2018-03-24 10:58:47 +01:00
cros_ec_vbc.c platform/chrome: Support reading/writing the vboot context 2015-10-07 15:05:53 -07:00
Kconfig platform/chrome: Enable Chrome platforms on 64-bit ARM 2015-10-07 14:34:26 -07:00
Makefile platform/chrome: Support reading/writing the vboot context 2015-10-07 15:05:53 -07:00