drm/dp/mst: Handle invalid link bandwidth from DPCD gracefully
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 12 Nov 2014 10:13:37 +0000 (10:13 +0000)
committerDave Airlie <airlied@redhat.com>
Fri, 14 Nov 2014 23:31:34 +0000 (09:31 +1000)
commitb853fdb3c0e7122193ea548aba42d1d63b6d4783
tree583fe4c024718b7097699649b26abce469a6bad9
parentdb88362884b6c78f920c5ad03860295b9a224433
drm/dp/mst: Handle invalid link bandwidth from DPCD gracefully

Don't BUG out if the link reports an invalid (or plain unknown)
bandwidth value, but report the failure and fail gracefully.

Fixes a trivial compiler warning in case the BUG is ever compiled away.

Link: http://lkml.kernel.org/p/1415785566-12758-1-git-send-email-geert@linux-m68k.org
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Dave Airlie <airlied@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_dp_mst_topology.c