]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Cleanup test data during long/short hotplug
authorShubhangi Shrivastava <shubhangi.shrivastava@intel.com>
Wed, 28 Oct 2015 10:00:36 +0000 (15:30 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 17 Nov 2015 15:09:24 +0000 (16:09 +0100)
commit59da25c6a2d752a669cd808f9354d74e9cc3de26
treee99075bbe699fc1d707bbff447f493952e82c129
parent73262024a4705a0b6dc356089c2d51df805b1afc
drm/i915: Cleanup test data during long/short hotplug

Automated test data that is updated when a test is requested is not cleared
till next automated test request is recevied which can cause various
problems. This patch fixes this by clearing this during the next
short pulse and on hot unplug.

For example, when TEST_LINK_TRAINING is requested it is updated
to appropriate variable inside intel_dp_handle_test_request
but is also cleared only inside the same function. if the next
short pulse does not have the AUTOMATED_TEST_REQUEST bits set
the variable will not be cleared resulting in carrying incorrect
test status in local variables.

v2: Added comments and moved nack and defer variables before set_edid
(Sonika)

Signed-off-by: Sivakumar Thulasimani <sivakumar.thulasimani@intel.com>
Signed-off-by: Shubhangi Shrivastava <shubhangi.shrivastava@intel.com>
Reviewed-by: Sonika Jindal <sonika.jindal@intel.com
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_dp.c