On Wed, Feb 12, 2020 at 4:19 PM CK Hu <ck.hu@xxxxxxxxxxxx> wrote: > I think hdmi_conn_detect() and mtk_hdmi_audio_hook_plugged_cb() would be > called in different thread. So it's necessary to use a mutex to protect > this. Thanks for the reminder. I feel using mutex here is overkill. Please see https://patchwork.kernel.org/patch/11378413/ for my proposed solution. _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/dri-devel