mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
Merge "tmc-etr: Correct condition for SW USB mode when setup sysfs buf"
This commit is contained in:
commit
be77d9f54e
1 changed files with 2 additions and 1 deletions
|
|
@ -1085,7 +1085,8 @@ ssize_t tmc_etr_get_sysfs_trace(struct tmc_drvdata *drvdata,
|
|||
static struct etr_buf *
|
||||
tmc_etr_setup_sysfs_buf(struct tmc_drvdata *drvdata)
|
||||
{
|
||||
if (drvdata->byte_cntr->sw_usb)
|
||||
if (drvdata->out_mode == TMC_ETR_OUT_MODE_USB
|
||||
&& drvdata->byte_cntr->sw_usb)
|
||||
return tmc_alloc_etr_buf(drvdata, TMC_ETR_SW_USB_BUF_SIZE,
|
||||
0, cpu_to_node(0), NULL);
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue