mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
caif: Add debug connection type for CAIF.
Added new CAIF protocol type CAIFPROTO_DEBUG for accessing CAIF debug on the ST Ericsson modems. There are two debug servers on the modem, one for radio related debug (CAIF_RADIO_DEBUG_SERVICE) and the other for communication/application related debug (CAIF_COM_DEBUG_SERVICE). The debug connection can contain trace debug printouts or interactive debug used for debugging and test. Debug connections can be of type STREAM or SEQPACKET. Signed-off-by: Sjur Braendeland <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
2aa40aef9d
commit
69ad78208e
2 changed files with 39 additions and 0 deletions
|
|
@ -79,6 +79,11 @@ int connect_req_to_link_param(struct cfcnfg *cnfg,
|
|||
memcpy(l->u.utility.params, s->param.data,
|
||||
l->u.utility.paramlen);
|
||||
|
||||
break;
|
||||
case CAIFPROTO_DEBUG:
|
||||
l->linktype = CFCTRL_SRV_DBG;
|
||||
l->endpoint = s->sockaddr.u.dbg.service;
|
||||
l->chtype = s->sockaddr.u.dbg.type;
|
||||
break;
|
||||
default:
|
||||
return -EINVAL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue