firmware: qcom: tzbsp_diag info not required for qsee_log

In case of Qsee_log we are not using the tzbsp_diag_buf
so there is no need to copy that.

Change-Id: Iabffd1708507e16ef8d75102637fd45bb7182549
Signed-off-by: Monika Singh <monising@codeaurora.org>
This commit is contained in:
Monika Singh 2020-12-07 09:15:17 +05:30
parent 33569a19db
commit 3ba06afa44

View File

@ -1089,8 +1089,7 @@ static ssize_t tzdbgfs_read_unencrypted(struct file *file, char __user *buf,
if (tz_id == TZDBG_BOOT || tz_id == TZDBG_RESET ||
tz_id == TZDBG_INTERRUPT || tz_id == TZDBG_GENERAL ||
tz_id == TZDBG_VMID || tz_id == TZDBG_LOG ||
tz_id == TZDBG_QSEE_LOG)
tz_id == TZDBG_VMID || tz_id == TZDBG_LOG)
memcpy_fromio((void *)tzdbg.diag_buf, tzdbg.virt_iobase,
debug_rw_buf_size);