Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3e22edf1 authored by Vladimir Kondratiev's avatar Vladimir Kondratiev Committed by Ian Maund
Browse files

wil6210: some more debug for the WMI mechanism



Log worker thread start/stop; as well as every handler invocation

Change-Id: I004fd92df7962b33b65cb7df6899e48f1d637e78
Signed-off-by: default avatarVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
Git-commit: 028e1836d3f218619a6e7f04ff1540c398deb727
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-testing.git


Signed-off-by: default avatarHamad Kadmany <hkadmany@codeaurora.org>
parent bf3b2e7c
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -1128,6 +1128,9 @@ static void wmi_event_handle(struct wil6210_priv *wil,
		struct wil6210_mbox_hdr_wmi *wmi = (void *)(&hdr[1]);
		struct wil6210_mbox_hdr_wmi *wmi = (void *)(&hdr[1]);
		void *evt_data = (void *)(&wmi[1]);
		void *evt_data = (void *)(&wmi[1]);
		u16 id = le16_to_cpu(wmi->id);
		u16 id = le16_to_cpu(wmi->id);

		wil_dbg_wmi(wil, "Handle WMI 0x%04x (reply_id 0x%04x)\n",
			    id, wil->reply_id);
		/* check if someone waits for this event */
		/* check if someone waits for this event */
		if (wil->reply_id && wil->reply_id == id) {
		if (wil->reply_id && wil->reply_id == id) {
			if (wil->reply_buf) {
			if (wil->reply_buf) {
@@ -1184,9 +1187,11 @@ void wmi_event_worker(struct work_struct *work)
	struct pending_wmi_event *evt;
	struct pending_wmi_event *evt;
	struct list_head *lh;
	struct list_head *lh;


	wil_dbg_wmi(wil, "Start %s\n", __func__);
	while ((lh = next_wmi_ev(wil)) != NULL) {
	while ((lh = next_wmi_ev(wil)) != NULL) {
		evt = list_entry(lh, struct pending_wmi_event, list);
		evt = list_entry(lh, struct pending_wmi_event, list);
		wmi_event_handle(wil, &evt->event.hdr);
		wmi_event_handle(wil, &evt->event.hdr);
		kfree(evt);
		kfree(evt);
	}
	}
	wil_dbg_wmi(wil, "Finished %s\n", __func__);
}
}