drm/i915: lock around link status and link training.
authorDave Airlie <airlied@redhat.com>
Tue, 5 Aug 2014 00:40:20 +0000 (10:40 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 6 Aug 2014 00:11:53 +0000 (10:11 +1000)
commit5b215bcff50d549d73e43c09bcccf8eebcc95bac
tree7f81ae58779e5d402ed6539dbc5eb4d25dba2af9
parentf7257a224ebbc897b21d0020cb2fedc43536068f
drm/i915: lock around link status and link training.

We need to take the connection mutex around the link status
check for non-MST case, but also around the MST link training
on short HPDs.

I suspect we actually should have a dpcd lock in the future as
well, that just lock the local copies of dpcd and flags stored
from that.

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/i915/intel_dp.c