drm/dp_helper: don't return EPROTO for defers (v2)
authorDave Airlie <airlied@redhat.com>
Fri, 4 Apr 2014 01:34:37 +0000 (11:34 +1000)
committerDave Airlie <airlied@redhat.com>
Sat, 5 Apr 2014 06:06:34 +0000 (16:06 +1000)
commitaa17edff0afa893b5ab1dd60d842cc6f42e847b4
treeef4b30653b21ee5ff17a5c4ca67b23f3b7fe39b4
parentf4d1b02129d3045c20ebadda8865db2cc7ce2cb5
drm/dp_helper: don't return EPROTO for defers (v2)

If we get a msg.reply of REPLY_DEFER, we also get an err of 0
so we fail reads with 0 < size and return -EPROTO instead of trying
again.

v2: same fix in i2c code.

Found writing MST support.

Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_dp_helper.c