drm/i915/sdvo: Handle unsupported GET_SUPPORTED_ENHANCEMENTS gracefully
In the event that the external chipset doesn't implement the GET_SUPPORTED_ENHANCEMENTS commands, gracefully treat it as having no enhancments rather than bailing. Reported-and-tested-by: Woody Suwalski <terraluna977@gmail.com> Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=18342 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
123d5c0197
commit
cf9a2f3afc
1 changed files with 4 additions and 5 deletions
|
@ -2520,11 +2520,10 @@ static bool intel_sdvo_create_enhance_property(struct intel_sdvo *intel_sdvo,
|
||||||
uint16_t response;
|
uint16_t response;
|
||||||
} enhancements;
|
} enhancements;
|
||||||
|
|
||||||
if (!intel_sdvo_get_value(intel_sdvo,
|
enhancements.response = 0;
|
||||||
SDVO_CMD_GET_SUPPORTED_ENHANCEMENTS,
|
intel_sdvo_get_value(intel_sdvo,
|
||||||
&enhancements, sizeof(enhancements)))
|
SDVO_CMD_GET_SUPPORTED_ENHANCEMENTS,
|
||||||
return false;
|
&enhancements, sizeof(enhancements));
|
||||||
|
|
||||||
if (enhancements.response == 0) {
|
if (enhancements.response == 0) {
|
||||||
DRM_DEBUG_KMS("No enhancement is supported\n");
|
DRM_DEBUG_KMS("No enhancement is supported\n");
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue