File tree Expand file tree Collapse file tree 2 files changed +0
-44
lines changed Expand file tree Collapse file tree 2 files changed +0
-44
lines changed Original file line number Diff line number Diff line change @@ -269,21 +269,6 @@ static bool intel_crt_detect_hotplug(struct drm_connector *connector)
269269 return ret ;
270270}
271271
272- static bool intel_crt_ddc_probe (struct drm_i915_private * dev_priv , int ddc_bus )
273- {
274- u8 buf ;
275- struct i2c_msg msgs [] = {
276- {
277- .addr = 0xA0 ,
278- .flags = 0 ,
279- .len = 1 ,
280- .buf = & buf ,
281- },
282- };
283- /* DDC monitor detect: Does it ACK a write to 0xA0? */
284- return i2c_transfer (& dev_priv -> gmbus [ddc_bus ].adapter , msgs , 1 ) == 1 ;
285- }
286-
287272static bool intel_crt_detect_ddc (struct drm_connector * connector )
288273{
289274 struct intel_crt * crt = intel_attached_crt (connector );
@@ -293,11 +278,6 @@ static bool intel_crt_detect_ddc(struct drm_connector *connector)
293278 if (crt -> base .type != INTEL_OUTPUT_ANALOG )
294279 return false;
295280
296- if (intel_crt_ddc_probe (dev_priv , dev_priv -> crt_ddc_pin )) {
297- DRM_DEBUG_KMS ("CRT detected via DDC:0xa0\n" );
298- return true;
299- }
300-
301281 if (intel_ddc_probe (& crt -> base , dev_priv -> crt_ddc_pin )) {
302282 struct edid * edid ;
303283 bool is_digital = false;
Original file line number Diff line number Diff line change @@ -829,25 +829,6 @@ static bool lvds_is_present_in_vbt(struct drm_device *dev,
829829 return false;
830830}
831831
832- static bool intel_lvds_ddc_probe (struct drm_device * dev , u8 pin )
833- {
834- struct drm_i915_private * dev_priv = dev -> dev_private ;
835- u8 buf = 0 ;
836- struct i2c_msg msgs [] = {
837- {
838- .addr = 0xA0 ,
839- .flags = 0 ,
840- .len = 1 ,
841- .buf = & buf ,
842- },
843- };
844- struct i2c_adapter * i2c = & dev_priv -> gmbus [pin ].adapter ;
845- /* XXX this only appears to work when using GMBUS */
846- if (intel_gmbus_is_forced_bit (i2c ))
847- return true;
848- return i2c_transfer (i2c , msgs , 1 ) == 1 ;
849- }
850-
851832/**
852833 * intel_lvds_init - setup LVDS connectors on this device
853834 * @dev: drm device
@@ -888,11 +869,6 @@ bool intel_lvds_init(struct drm_device *dev)
888869 }
889870 }
890871
891- if (!intel_lvds_ddc_probe (dev , pin )) {
892- DRM_DEBUG_KMS ("LVDS did not respond to DDC probe\n" );
893- return false;
894- }
895-
896872 intel_lvds = kzalloc (sizeof (struct intel_lvds ), GFP_KERNEL );
897873 if (!intel_lvds ) {
898874 return false;
You can’t perform that action at this time.
0 commit comments