Re: [PATCH v4 1/5] usb: host: export symbols for xhci-exynos to use xhci hooks
From: Greg Kroah-Hartman
Date: Tue Apr 26 2022 - 06:22:51 EST
On Tue, Apr 26, 2022 at 06:18:44PM +0900, Daehwan Jung wrote:
> Export symbols for xhci hooks usage:
> - Allow xhci hook to get ep_ctx from the xhci_container_ctx for
> getting the ep_ctx information to know which ep is offloading and
> comparing the context in remote subsystem memory if needed.
> - Allow xhci hook to allocate vendor specific ring. Vendors could
> alloc additional event ring.
> - Used to retrieve the DMA address of vendor specific ring. Vendors
> could get dequeue address of event ring.
> - Allow xhci hook to handle vendor specific segment. Vendors could
> directly free or link segments of vendor specific ring.
> - Allow xhci hook to initialize vendor specific ring.
> - Allow xhci hook to Check TRB math for validation. Vendors could
> check trb when allocating vendor specific ring.
> - Allow override to give configuration info to Co-processor.
> - Allow override of suspend and resume for power scenario.
> - Allow to xhci hook to remove stream mapping. Vendors need to do it
> when free-ing vendor specific ring if it's stream type.
For the static functions that you are now exporting, they need to have
their functions declared in a .h file. If not, you now get warnings
when you run sparse after applying this commit, right?