Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1566763

[PATCH 1/3] cros_ec: Don't return error when checking command version

From Thierry Escande <thierry.escande@collabora.com>
Newsgroups linux.kernel
Subject [PATCH 1/3] cros_ec: Don't return error when checking command version
Date 2017-01-25 18:10 +0100
Message-ID <t3zf4-4ws-27@gated-at.bofh.it> (permalink)
References <t3zf4-4ws-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


With this patch, cros_ec_query_all() does not return an error if it
fails to check for MKBP events support. Instead, the EC device structure
indicates that it does not support MKBP events (mkbp_event_supported
field) and cros_ec_query_all() returns 0.

Signed-off-by: Thierry Escande <thierry.escande@collabora.com>
---
 drivers/platform/chrome/cros_ec_proto.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/platform/chrome/cros_ec_proto.c b/drivers/platform/chrome/cros_ec_proto.c
index 04053fe..403649a 100644
--- a/drivers/platform/chrome/cros_ec_proto.c
+++ b/drivers/platform/chrome/cros_ec_proto.c
@@ -371,6 +371,8 @@ int cros_ec_query_all(struct cros_ec_device *ec_dev)
 	else
 		ec_dev->mkbp_event_supported = 1;
 
+	ret = 0;
+
 exit:
 	kfree(proto_msg);
 	return ret;
-- 
2.7.4

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/3] mfd: cros_ec: non-wake host events support Thierry Escande <thierry.escande@collabora.com> - 2017-01-25 18:10 +0100
  [PATCH 1/3] cros_ec: Don't return error when checking command version Thierry Escande <thierry.escande@collabora.com> - 2017-01-25 18:10 +0100
  [PATCH 2/3] cros_ec: Fix deadlock when EC is not responsive at probe Thierry Escande <thierry.escande@collabora.com> - 2017-01-25 18:10 +0100
  [PATCH 3/3] cros_ec: Don't signal wake event for non-wake host events Thierry Escande <thierry.escande@collabora.com> - 2017-01-25 18:10 +0100

csiph-web