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

Commit 9339f630 authored by Tingwei Zhang's avatar Tingwei Zhang Committed by Gerrit - the friendly Code Review server
Browse files

soc: qcom: Use usb_ch from notify caller



Use usb_ch from drvdata leads to one issue in racing condition.
Use the usb ch info from notify caller directly to fix this issue.

Change-Id: I6fcde58bcf6267f629da14645218b3cc525db079
Signed-off-by: default avatarTingwei Zhang <tingwei@codeaurora.org>
parent d5546ff2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2017, The Linux Foundation. All rights reserved.
/* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -245,7 +245,7 @@ static void usb_notifier(void *priv, unsigned int event,

	switch (event) {
	case USB_QDSS_CONNECT:
		usb_qdss_alloc_req(drvdata->usb_ch, poolsize, 0);
		usb_qdss_alloc_req(ch, poolsize, 0);
		mhi_queue_read(drvdata);
		break;