drm/nouveau/dp: fix bad comparison in dp_link_train_commit()
authorXi Wang <xi.wang@gmail.com>
Fri, 3 Feb 2012 16:13:55 +0000 (11:13 -0500)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 13 Mar 2012 07:14:58 +0000 (17:14 +1000)
commit44ab8cc56c45ca781371a4a77f35da19cf5db028
treea790d3d28f6921808d0dd329a64067b1eca21044
parent84ddfda6d4765e410981edeef81c9b5a5a1ce87b
drm/nouveau/dp: fix bad comparison in dp_link_train_commit()

The comparison (lpre == DP_TRAIN_PRE_EMPHASIS_9_5) is always false:
lpre is initialized as (lane & 0x0c) >> 2, which is at most 3, while
DP_TRAIN_PRE_EMPHASIS_9_5 is defined as (3 << 3).

Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_dp.c