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

Commit c42b6d72 authored by Sujeet Kumar's avatar Sujeet Kumar Committed by ChandanaKishori Chiluveru
Browse files

USB: ci13xxx: Add extra allocation size to use APF feature for IN eps



APF feature requires the software to allocate additional 256
bytes for TX/IN buffers. This is required because optimized
pre-fetching makes hardware to read outside the allocated buffer.

To protect out of boundary access, SW needs to allocate an
extra 128 bytes or more to make sure the neighbouring region
is not protected by TZ or MSA. Introduce an extra_alloc_buf
in usb gadget which can indicate this extra allocation. Enable
this only if APF is enabled.

Change-Id: Ifff3c0c41b5cd4a326d721e8bacc66262d1985a5
Signed-off-by: default avatarSujeet Kumar <ksujeet@codeaurora.org>
parent 0597b5d5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment