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

Commit d2418b63 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: dwc3: dwc3-msm: Export msm_data_fifo_config() for QDSS"

parents d855fd06 b0b5ab39
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2011-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2011-2020, The Linux Foundation. All rights reserved.
 */

#include <linux/kernel.h>
@@ -445,6 +445,7 @@ int usb_bam_alloc_fifos(enum usb_ctrl cur_bam, u8 idx)
	}
	return 0;
}
EXPORT_SYMBOL(usb_bam_alloc_fifos);

int usb_bam_free_fifos(enum usb_ctrl cur_bam, u8 idx)
{
@@ -521,6 +522,7 @@ int usb_bam_free_fifos(enum usb_ctrl cur_bam, u8 idx)

	return 0;
}
EXPORT_SYMBOL(usb_bam_free_fifos);

static int connect_pipe(enum usb_ctrl cur_bam, u8 idx, u32 *usb_pipe_idx,
							unsigned long iova)
@@ -635,6 +637,7 @@ int get_qdss_bam_info(enum usb_ctrl cur_bam, u8 idx,

	return 0;
}
EXPORT_SYMBOL(get_qdss_bam_info);

int usb_bam_connect(enum usb_ctrl cur_bam, int idx, u32 *bam_pipe_idx,
						unsigned long iova)
@@ -691,6 +694,7 @@ int usb_bam_connect(enum usb_ctrl cur_bam, int idx, u32 *bam_pipe_idx,

	return 0;
}
EXPORT_SYMBOL(usb_bam_connect);

int usb_bam_get_pipe_type(enum usb_ctrl bam_type, u8 idx,
			  enum usb_bam_pipe_type *type)
@@ -945,6 +949,7 @@ int usb_bam_disconnect_pipe(enum usb_ctrl bam_type, u8 idx)

	return 0;
}
EXPORT_SYMBOL(usb_bam_disconnect_pipe);

static void usb_bam_sps_events(enum sps_callback_case sps_cb_case, void *user)
{
+1 −0
Original line number Diff line number Diff line
@@ -779,6 +779,7 @@ int msm_data_fifo_config(struct usb_ep *ep, unsigned long addr,

	return 0;
}
EXPORT_SYMBOL(msm_data_fifo_config);

static int dbm_ep_unconfig(struct dwc3_msm *mdwc, u8 usb_ep);

+1 −1
Original line number Diff line number Diff line
@@ -1013,7 +1013,7 @@ static ssize_t qdss_enable_debug_inface_store(struct config_item *item,
		return len;
	}

	if (kstrtou8(page, 0, &stats) != 0 && (stats != 0 || stats != 1)) {
	if (kstrtou8(page, 0, &stats) != 0 && !(stats == 0 || stats == 1)) {
		pr_err("(%u)Wrong value. enter 0 to disable or 1 to enable.\n",
			stats);
		return len;