]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: add locking to fixed panel edid probing
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 21 Mar 2014 22:22:35 +0000 (23:22 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 28 Mar 2014 17:25:18 +0000 (18:25 +0100)
commita4cd5b942a2c0104c7ead02572eabcc6091ea0d9
treece06da71c49d797fc5761fe066dc4a3b18200a5c
parent3654247cc97ffe38d80d1cb523031fcd92a047a6
drm/i915: add locking to fixed panel edid probing

With the recent addition of locking checks in

commit 31afb681d7fbf9e1296c54cb689ff3bedd21a225
Author:     Daniel Vetter <daniel.vetter@ffwll.ch>
AuthorDate: Thu Jan 23 22:18:47 2014 +0100

    drm/crtc-helper: remove LOCKING from kerneldoc

drm_add_edid_modes started to WARN about the mode_config.mutex not
being held in the lvds and dp initialization code.

Now since this is init code locking is fairly redudant if it wouldn't
be for the drm core registering sysfs files a bit early. And the
locking WARNINGs nicely enforce that indeed all access to the mode
lists are properly protected. And a full audit shows that only i915
and gma500 touch the modes lists at init time.

Hence I've opted to wrap up this entire mode detection sequence for
fixed panels with the mode_config mutex for both lvds and edp outputs.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_dp.c
drivers/gpu/drm/i915/intel_lvds.c