]> git.baikalelectronics.ru Git - kernel.git/commit
drm/gma500: add locking to fixed panel edid probing
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 21 Mar 2014 22:22:36 +0000 (23:22 +0100)
committerDave Airlie <airlied@redhat.com>
Sun, 23 Mar 2014 21:54:30 +0000 (07:54 +1000)
commit6654e5597821ddac76c16fe5bf5647ea7ab85cd0
tree02664b58a67c323e06a7fb71d765622e6518e448
parent7fb7ac6055e6dfac6e85f7fdb4fcba81edee85c6
drm/gma500: add locking to fixed panel edid probing

With the recent addition of locking checks in

commit 943bb8782193eaf8248943d3c0d08707ef4bb527
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.

Cc: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/gma500/cdv_intel_lvds.c
drivers/gpu/drm/gma500/oaktrail_lvds.c
drivers/gpu/drm/gma500/psb_intel_lvds.c