]> git.baikalelectronics.ru Git - kernel.git/commit
drm/mgag200: Acquire I/O lock while reading EDID
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 16 May 2022 13:43:37 +0000 (15:43 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 17 May 2022 18:23:19 +0000 (20:23 +0200)
commitea09093305b25faf484a4e1a90c3b227997cdbc3
treeea3024b603638befe2c26add0b3099bae47a5bd6
parent86ba8b09797dcb8c4cf785db34ba0f4c8fbbed44
drm/mgag200: Acquire I/O lock while reading EDID

DDC operation conflicts with concurrent mode setting. Acquire the
driver's I/O lock in get_modes to prevent this. This change should
have been part of commit 946965594140 ("drm/mgag200: Protect
concurrent access to I/O registers with lock"), but apparently got
lost somewhere.

v3:
* fix commit message to say 'drm/mgag200' (Jocelyn)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Fixes: 946965594140 ("drm/mgag200: Protect concurrent access to I/O registers with lock")
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Tested-by: Jocelyn Falempe <jfalempe@redhat.com>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Jocelyn Falempe <jfalempe@redhat.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Dave Airlie <airlied@redhat.com>
Cc: dri-devel@lists.freedesktop.org
Link: https://patchwork.freedesktop.org/patch/msgid/20220516134343.6085-2-tzimmermann@suse.de
drivers/gpu/drm/mgag200/mgag200_mode.c