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

Commit 48fd5ed8 authored by rbandi's avatar rbandi
Browse files

HID: qvr: wake up after acknowledgment from viewer



wake up wait_event_interruptible_timeout after receiving
acknowledgment from viewer.

Change-Id: I8d80b72ccfcfcb97a59185a35bb2824fe105198c
Signed-off-by: default avatarrbandi <rohitbandi@codeaurora.org>
parent 41539720
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -609,8 +609,10 @@ static int qvr_external_sensor_raw_event(struct hid_device *hid,
		else if (data[0] == 2 && data[1] == 1) { /*calibration data*/
			sensor->calib_data_pkt = data;
			sensor->calib_data_recv = 1;
		} else if (data[0] == 2 && data[1] == 4) /*calibration ack*/
		} else if (data[0] == 2 && data[1] == 4) { /*calibration ack*/
			sensor->ext_ack = 1;
			wake_up(&wq);
		}

	}
	return ret;