diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2013-03-20 05:14:35 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2013-03-20 05:14:35 +0000 |
commit | 562947cd76ae988d56079c1914d48775904e8ee2 (patch) | |
tree | d020ae607295329030bcdd1bd79147db61703e56 /sys/dev/pci/drm/drm_dp_helper.c | |
parent | 8f9e5108b3ba642ac5da0325a02f21cfb40d196d (diff) |
fix the return value of i2c_algo_dp_aux_exec, with this getting the
edid on displayport now works
Diffstat (limited to 'sys/dev/pci/drm/drm_dp_helper.c')
-rw-r--r-- | sys/dev/pci/drm/drm_dp_helper.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/drm_dp_helper.c b/sys/dev/pci/drm/drm_dp_helper.c index feaaaf3e74d..31c10018591 100644 --- a/sys/dev/pci/drm/drm_dp_helper.c +++ b/sys/dev/pci/drm/drm_dp_helper.c @@ -1,4 +1,4 @@ -/* $OpenBSD: drm_dp_helper.c,v 1.1 2013/03/18 12:36:51 jsg Exp $ */ +/* $OpenBSD: drm_dp_helper.c,v 1.2 2013/03/20 05:14:34 jsg Exp $ */ /* * Copyright © 2009 Keith Packard * @@ -172,8 +172,11 @@ i2c_algo_dp_aux_exec(void *cookie, i2c_op_t op, i2c_addr_t addr, } out: + if (ret > 0) + ret = 0; + i2c_algo_dp_aux_stop(adapter, reading); - DRM_DEBUG_KMS("dp_aux_xfer return %d\n", ret); + DRM_DEBUG_KMS("dp_aux_exec return %d\n", ret); return ret; } |