]> git.baikalelectronics.ru Git - kernel.git/commit
mei: add support for variable length mei headers.
authorTomas Winkler <tomas.winkler@intel.com>
Tue, 31 Jul 2018 06:35:33 +0000 (09:35 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Aug 2018 08:18:29 +0000 (10:18 +0200)
commit6b994f7394cc21cc79bc63ca1b4b980bc7ab6ea5
tree877e70ee1236f04a09ce277181542e66a8fcb51e
parentb1f4c353da86acc471260ab0994b44da59458b67
mei: add support for variable length mei headers.

Remove header size knowledge from me and txe hw layers,
this requires to change the write handler to accept
header and its length as well as data and its length.

HBM messages are fixed to use basic header, hence we add mei_hbm2slots()
that converts HBM message length and mei message header,
while mei_data2slots() converts data length directly to the slots.

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/client.c
drivers/misc/mei/hbm.c
drivers/misc/mei/hw-me.c
drivers/misc/mei/hw-txe.c
drivers/misc/mei/interrupt.c
drivers/misc/mei/mei_dev.h