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

Commit 0b6495cb authored by Pavankumar Kondeti's avatar Pavankumar Kondeti
Browse files

USB: gadget: u_bam: ratelimit the IN ep queue failure messages



If USB is disconnected during peek downlink throughput test, the
target is crashed due to the storm of IN endpoint queue failure
print messages.

Change-Id: Ic3eae4e42d4b087aee72e46c0f1a20717d5d1a26
Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
parent 15a5a1db
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -430,7 +430,8 @@ static void gbam_write_data_tohost(struct gbam_port *port)
		ret = usb_ep_queue(ep, req, GFP_ATOMIC);
		spin_lock(&port->port_lock_dl);
		if (ret) {
			pr_err("%s: usb epIn failed with %d\n", __func__, ret);
			pr_err_ratelimited("%s: usb epIn failed with %d\n",
					__func__, ret);
			list_add(&req->list, &d->tx_idle);
			dev_kfree_skb_any(skb);
			break;