Skip to content

Simplify ISHTP client interface

Even Xu chrome-platform linux-input 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4HID: Intel-ish-hid: Ishtp: Add helper functions for client connectiondrivers/hid/intel-ish-hid/ishtp/client.c include/linux/intel-ish-client-if.h+177 -110 replies
2/4HID: intel-ish-hid: ishtp-hid-client: use helper functions for connectiondrivers/hid/intel-ish-hid/ishtp-hid-client.c+13 -500 replies
3/4HID: intel-ish-hid: ishtp-fw-loader: use helper functions for connectiondrivers/hid/intel-ish-hid/ishtp-fw-loader.c+12 -480 replies
4/4platform: chrome: cros_ec_ishtp: use helper functions for connectiondrivers/platform/chrome/cros_ec_ishtp.c+15 -594 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchSrinivas PandruvadaTzung-Bi Shih
1/4A-b
2/4A-b
3/4A-b
4/4A-b A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] Simplify ISHTP client interface

There are three ISHTP clients, they have same ISHTP interface to connect, reset and disconnect. Also there are multiple steps for connect, reset and disconnect.

Simplify multiple steps by creating two helper functions. This will simplify code flow and also avoid code duplication. Also this removes memory allocation calls during reset, by using these helper functions.

No functional changes are expected with this series.

Even Xu (4):
HID: Intel-ish-hid: Ishtp: Add helper functions for client connection
HID: intel-ish-hid: ishtp-hid-client: use helper functions for
connection
HID: intel-ish-hid: ishtp-fw-loader: use helper functions for
connection
platform: chrome: cros_ec_ishtp: use helper functions for connection

 drivers/hid/intel-ish-hid/ishtp-fw-loader.c  |  60 ++-------
 drivers/hid/intel-ish-hid/ishtp-hid-client.c |  63 ++-------
 drivers/hid/intel-ish-hid/ishtp/client.c     | 185 +++++++++++++++++++++++++--
 drivers/platform/chrome/cros_ec_ishtp.c      |  74 +++--------
 include/linux/intel-ish-client-if.h          |   3 +
 5 files changed, 217 insertions(+), 168 deletions(-)
Signature · 1 line
2.7.4