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

Commit 84635359 authored by Pratham Pratap's avatar Pratham Pratap Committed by Gerrit - the friendly Code Review server
Browse files

usb: gadget: f_qdss: Enable SG mode for qdss SW path



Current qdss driver supports BAM path and SW path.
To increase the throughput in SW path SG mode can be used.
This change enables scatter-gather mode for qdss function driver.

Change-Id: I2a2534649f7a358b667eaeb8c47900cf55411692
Signed-off-by: default avatarPratham Pratap <prathampratap@codeaurora.org>
parent 0fe1d128
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -915,6 +915,9 @@ int usb_qdss_write(struct usb_qdss_ch *ch, struct qdss_request *d_req)
	req->buf = d_req->buf;
	req->length = d_req->length;
	req->context = d_req;
	req->sg = d_req->sg;
	req->num_sgs = d_req->num_sgs;
	req->num_mapped_sgs = d_req->num_mapped_sgs;
	if (usb_ep_queue(qdss->port.data, req, GFP_ATOMIC)) {
		spin_lock_irqsave(&qdss->lock, flags);
		list_add_tail(&req->list, &qdss->data_write_pool);
+4 −1
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (c) 2012-2013, 2017-2018 The Linux Foundation. All rights reserved.
 * Copyright (c) 2012-2013, 2017-2019 The Linux Foundation. All rights reserved.
 */

#ifndef __LINUX_USB_QDSS_H
@@ -17,6 +17,9 @@ struct qdss_request {
	int actual;
	int status;
	void *context;
	struct scatterlist *sg;
	unsigned int num_sgs;
	unsigned int num_mapped_sgs;
};

struct usb_qdss_ch {