dwc3-msm: Map IPA GSI channel doorbell register for different UDC core
Currently GSI endpoint usb_request pointer is allocated only once during boot time and it used by dwc3 driver for mapping doorbell register address with USB endpoint request only once. During composition switch or connect/disconnect scenarios same USB endpoint is being re-enabled and does not create mapping again. On some platforms multiple UDC cores can work in device mode. In case of binding the UDC with primary controller first and then disconnect the primary and bind UDC to secondary controller. Driver does not re-mapping the doorbell address with current UDC core and USB GSI wrapper is trying to access previously mapped GSI DBL address with previous core resulting into smmu fault. Fix this issue by adding re-mapping of doorbell using dwc->sysdev node to map the doorbell register with correct UDC. Change-Id: I327126148c2311884aee2aa99bb59b7add06e302 Signed-off-by:Chandana Kishori Chiluveru <cchiluve@codeaurora.org> Signed-off-by:
Mayank Rana <mrana@codeaurora.org>
Loading
Please register or sign in to comment