UPSTREAM: drm/i915: Check for downstream topology errors

HDCP compliant Repeaters can support max of 127 devices and max
depth of 7 for downstream topology.

If these max limits are exceeded, repeater will set the
topology error flags MAX_CASCADE_EXCEEDED and/or MAX_DEVS_EXCEEDED
in Bstatus followed by asserting READY/CP_IRQ for HDCP transmitter.

This patch check for these error flags as soon as READY bit is asserted.

Signed-off-by: Ramalingam C <[email protected]>
[seanpaul fixed checkpatch alignment issue]
Signed-off-by: Sean Paul <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
(cherry picked from commit 49d85d034268ab9d9156ff6f81cc07d4caad03f6)
Signed-off-by: Sean Paul <[email protected]>

Change-Id: I366ca1f946813854a06418e4923a922b2a8fe404
Reviewed-on: https://chromium-review.googlesource.com/877083
Commit-Ready: Sean Paul <[email protected]>
Tested-by: Sean Paul <[email protected]>
Reviewed-by: Kristian H. Kristensen <[email protected]>
Reviewed-on: https://chromium-review.googlesource.com/878779
Reviewed-by: Sean Paul <[email protected]>
Commit-Queue: Sean Paul <[email protected]>
2 files changed