svn commit: r259104 - head/sys/dev/drm2/radeon
Jean-Sebastien Pedron
dumbbell at FreeBSD.org
Sun Dec 8 18:48:07 UTC 2013
Author: dumbbell
Date: Sun Dec 8 18:48:07 2013
New Revision: 259104
URL: http://svnweb.freebsd.org/changeset/base/259104
Log:
drm/radeon: radeon_dp_i2c_aux_ch() must return 0 on FreeBSD
The code was unmodified compared to Linux and returned the amount of
received bytes from the i2c bus. This led to non-working i2c bus and
failure to eg. read monitor's EDID, if connected to DisplayPort.
MFC after: 3 days
Tested by: Mikaël Urankar <mikael.urankar at gmail.com>
Modified:
head/sys/dev/drm2/radeon/atombios_dp.c
Modified: head/sys/dev/drm2/radeon/atombios_dp.c
==============================================================================
--- head/sys/dev/drm2/radeon/atombios_dp.c Sun Dec 8 17:47:37 2013 (r259103)
+++ head/sys/dev/drm2/radeon/atombios_dp.c Sun Dec 8 18:48:07 2013 (r259104)
@@ -272,7 +272,7 @@ int radeon_dp_i2c_aux_ch(device_t dev, i
case AUX_I2C_REPLY_ACK:
if (mode == MODE_I2C_READ)
*read_byte = reply[0];
- return ret;
+ return (0); /* Return ret on Linux. */
case AUX_I2C_REPLY_NACK:
DRM_DEBUG_KMS("aux_i2c nack\n");
return -EREMOTEIO;
More information about the svn-src-head
mailing list