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

Commit 0ab4f07d authored by Mayank Rana's avatar Mayank Rana
Browse files

usb: gadget: qti: Move pr_err to pr_err_ratelimiated with EP_LOOKUP



QTI application uses EP_LOOKUP ioctl to query IPA producer and consumer
pipe index. In some case like IPA is not initialized, this results into
error logs seen until QTI application times out querying this. Hence move
this error message as ratelimited instead of using pr_err() as default
error log level.

Change-Id: I5a5fb1455fbb93230aad3b9775d1086a96e5c9cb
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent 77813844
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -565,13 +565,13 @@ static long qti_ctrl_ioctl(struct file *fp, unsigned cmd, unsigned long arg)
							port->gtype);
		val = atomic_read(&port->connected);
		if (!val) {
			pr_err("EP_LOOKUP failed - not connected");
			pr_err_ratelimited("EP_LOOKUP failed: not connected\n");
			ret = -EAGAIN;
			break;
		}

		if (port->ipa_prod_idx == -1 && port->ipa_cons_idx == -1) {
			pr_err("EP_LOOKUP failed - ipa pipes were not updated\n");
			pr_err_ratelimited("EP_LOOKUP ipa pipes not updated\n");
			ret = -EAGAIN;
			break;
		}