Skip to content

Commit 6ec7a9c

Browse files
Alex Elderdavem330
authored andcommitted
net: ipa: extend the INDICATION_REGISTER request
The specified format of the INDICATION_REGISTER QMI request message has been extended to support two more optional fields: endpoint_desc_ind: sender wishes to receive endpoint descriptor information via an IPA ENDP_DESC indication QMI message bw_change_ind: sender wishes to receive bandwidth change information via an IPA BW_CHANGE indication QMI message Add definitions that permit these fields to be formatted and parsed by the QMI library code. Signed-off-by: Alex Elder <elder@linaro.org> Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 7ac629e commit 6ec7a9c

2 files changed

Lines changed: 45 additions & 1 deletion

File tree

‎drivers/net/ipa/ipa_qmi_msg.c‎

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,46 @@ struct qmi_elem_info ipa_indication_register_req_ei[] = {
7070
.offset = offsetof(struct ipa_indication_register_req,
7171
ipa_mhi_ready_ind),
7272
},
73+
{
74+
.data_type = QMI_OPT_FLAG,
75+
.elem_len = 1,
76+
.elem_size =
77+
sizeof_field(struct ipa_indication_register_req,
78+
endpoint_desc_ind_valid),
79+
.tlv_type = 0x13,
80+
.offset = offsetof(struct ipa_indication_register_req,
81+
endpoint_desc_ind_valid),
82+
},
83+
{
84+
.data_type = QMI_UNSIGNED_1_BYTE,
85+
.elem_len = 1,
86+
.elem_size =
87+
sizeof_field(struct ipa_indication_register_req,
88+
endpoint_desc_ind),
89+
.tlv_type = 0x13,
90+
.offset = offsetof(struct ipa_indication_register_req,
91+
endpoint_desc_ind),
92+
},
93+
{
94+
.data_type = QMI_OPT_FLAG,
95+
.elem_len = 1,
96+
.elem_size =
97+
sizeof_field(struct ipa_indication_register_req,
98+
bw_change_ind_valid),
99+
.tlv_type = 0x14,
100+
.offset = offsetof(struct ipa_indication_register_req,
101+
bw_change_ind_valid),
102+
},
103+
{
104+
.data_type = QMI_UNSIGNED_1_BYTE,
105+
.elem_len = 1,
106+
.elem_size =
107+
sizeof_field(struct ipa_indication_register_req,
108+
bw_change_ind),
109+
.tlv_type = 0x14,
110+
.offset = offsetof(struct ipa_indication_register_req,
111+
bw_change_ind),
112+
},
73113
{
74114
.data_type = QMI_EOTI,
75115
},

‎drivers/net/ipa/ipa_qmi_msg.h‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* information for each field. The qmi_send_*() interfaces require
2525
* the message size to be provided.
2626
*/
27-
#define IPA_QMI_INDICATION_REGISTER_REQ_SZ 12 /* -> server handle */
27+
#define IPA_QMI_INDICATION_REGISTER_REQ_SZ 20 /* -> server handle */
2828
#define IPA_QMI_INDICATION_REGISTER_RSP_SZ 7 /* <- server handle */
2929
#define IPA_QMI_INIT_DRIVER_REQ_SZ 162 /* client handle -> */
3030
#define IPA_QMI_INIT_DRIVER_RSP_SZ 25 /* client handle <- */
@@ -44,6 +44,10 @@ struct ipa_indication_register_req {
4444
u8 data_usage_quota_reached;
4545
u8 ipa_mhi_ready_ind_valid;
4646
u8 ipa_mhi_ready_ind;
47+
u8 endpoint_desc_ind_valid;
48+
u8 endpoint_desc_ind;
49+
u8 bw_change_ind_valid;
50+
u8 bw_change_ind;
4751
};
4852

4953
/* The response to a IPA_QMI_INDICATION_REGISTER request consists only of

0 commit comments

Comments
 (0)