drm/dp/mst: update the link_address_sent before sending the link address (v3)
authorDave Airlie <airlied@gmail.com>
Sun, 6 Sep 2015 08:53:00 +0000 (18:53 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 2 Oct 2015 05:34:41 +0000 (15:34 +1000)
commit68d8c9fc91a0f63a2a10ccf7adf56f69125c11c1
tree800a523c72e47843484f4d91a088562b0713da21
parentdf4839fdc9b3c922586b945f062f38cbbda022bb
drm/dp/mst: update the link_address_sent before sending the link address (v3)

Update the state before sending the msg to close it.

v2: reset value if return indicates we haven't send the msg.
v3: just clean the code up.
Pointed out by Adam J Richter on

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91481

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