int qmi_service_release_client_id(struct qmi_dev *qmi, QmiService svc)
{
int idx = qmi_get_service_idx(svc);
- qmi->service_keep_cid &= ~(1 << idx);
+ qmi->service_release_cid |= 1 << idx;
return 0;
}
uint32_t connected = qmi->service_connected;
int idx;
+ qmi->service_keep_cid &= ~qmi->service_release_cid;
for (idx = 0; connected; idx++, connected >>= 1) {
if (!(connected & 1))
continue;
uint32_t service_connected;
uint32_t service_keep_cid;
+ uint32_t service_release_cid;
uint8_t ctl_tid;
};