[Intel-gfx] [PATCH 4/7] drm/i915/dp: try to read receiver capabilities 3 times when detecting

Keith Packard keithp at keithp.com
Thu Jul 7 22:13:23 CEST 2011


On Thu,  7 Jul 2011 11:11:00 -0700, Jesse Barnes <jbarnes at virtuousgeek.org> wrote:

> +	for (i = 0; i < 3; i++) {
> +		ret = intel_dp_aux_native_read(intel_dp,
> +					       0x000, intel_dp->dpcd,
> +					       sizeof (intel_dp->dpcd));
> +		if (ret == sizeof(intel_dp->dpcd) &&
> +		    intel_dp->dpcd[DP_DPCD_REV] != 0) {
>  			status = connector_status_connected;
> +			break;
> +		}
> +		msleep(1);
>  	}

Should this use the intel_dp_aux_native_read_retry function from the
later patch?

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20110707/80f66de9/attachment.sig>


More information about the Intel-gfx mailing list