kernel-fxtec-pro1x/drivers/bus/mhi
Vivek Pernamitta 020b270ba1 mhi: core: Avoid race condition mhi channel prepare and M0 event
There is one race condition where mhi_prepare_channel is called
in which read pointer and write pointer is set to base address
and in parallel there could be an MHI M0 transaction which
checks any pending event rings on all channels (tre_ring)
with RP != WP and rings channel DB which causes Null pointer
access. Check for MHI channel is enabled before ringing channel
doorbell. Reset mhi channel chan_ctxt, tre_ring and buf_ring
wp and rp to NULL in mhi_deinit_chan_ctxt.

Change-Id: If30908fc7fcc26f6987bd0da886bb75468a29b9e
Signed-off-by: Vivek Pernamitta <vpernami@codeaurora.org>
2021-09-02 18:07:28 +05:30
..
controllers mhi: cntrl: Update device MMIO region length for MHI core 2020-05-20 15:27:53 +05:30
core mhi: core: Avoid race condition mhi channel prepare and M0 event 2021-09-02 18:07:28 +05:30
devices mhi: dev: netdev: Set the mac header to 0 for skbs 2021-03-29 22:10:46 +05:30
Makefile spdx: Modify spdx tag from GPL-2.0 to GPL-2.0-only 2018-12-10 11:09:45 -08:00