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

This commit is contained in:
qctecmdr 2020-09-11 17:31:02 -07:00 • committed by Gerrit - the friendly Code Review server
commit d2418b6330
3 changed files with 8 additions and 2 deletions

View file

@ -1,6 +1,6 @@
// 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)
{

View file

@ -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);

View file

@ -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;