Skip to content

RFC Add HDP .register_application method

Ravi kumar Veeramally linux-bluetooth 1 version In review

Get series with b4
b4 am 1395758081-22005-1-git-send-email-ravikumar.veeramally@linux.intel.com

Versions newest first

  1. v1 RFC Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3android/hal-ipc-api: Add extra command to Health HAL api documentandroid/hal-ipc-api.txt+21 -130 replies
2/3android/hal-msg: Add extra struct for mdep dataandroid/hal-msg.h+18 -190 replies
3/3android/hal-health: Add HDP .register_application methodandroid/hal-health.c+87 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/3] Add HDP .register_application method

Due to limited IPC_MTU and variable length of
fields from 'bthl_reg_param_t *', it is difficult to put them in single command and send though IPC. So we split this command to multiple calls. First command will be called with opcode of HAL_OP_HEALTH_REG_APP with 'struct hal_cmd_health_reg_app' data. Later command will be called with opcode of HAL_OP_HEALTH_MDEP with 'struct hal_cmd_health_mdep' data for number_of_mdeps times. Daemon (android/health) side it will process after it received all data and response will be sent along with last call of HAL_OP_HEALTH_MDEP.

This avoids increasing value of IPC_MTU and mainly because of optional parameters in 'bthl_reg_param_t'. Incase of unfilled optional parameters, fixed size arrays in hal commands will be empty.

Ravi kumar Veeramally (3):
android/hal-ipc-api: Add extra command to Health HAL api document android/hal-msg: Add extra struct for mdep data android/hal-health: Add HDP .register_application method

 android/hal-health.c    | 88 ++++++++++++++++++++++++++++++++++++++++++++++++-
 android/hal-ipc-api.txt | 34 +++++++++++--------
 android/hal-msg.h       | 37 ++++++++++-----------
 3 files changed, 126 insertions(+), 33 deletions(-)
Signature · 1 line
1.8.3.2