Imported from https://www.codeaurora.org/cgit/quic/la/kernel/msm/tree/?h=msm-3.4