drm: samsung: dont power off if register access on-going

dp_work_hpd function is called when USB is unplugged, then the function
votes to runtime PM accordingly, which can possibly lead to phy power
being turned off.

On the other hand, dpcd register read/write (triggered separatedly from
HDCP thread) can be on-going at the same time while power is being turned off,
which can lead to various pmu related ramdumps/itmon, etc.

This commit aligns the race using hpd_lock to make sure that while
register is being accessed, the vote to power remains untouched, and
that if the power is being turned off, then the register won't be
accessed.

Bug: 298562846
Change-Id: Ib068894d025a2bb6af096c8731b75ff4b3fd5eb1
Signed-off-by: Ji Soo Shin <jisshin@google.com>
1 file changed
tree: 08fe280dd65c3248ff1e44d121e1a00b089de6b8
  1. common/
  2. samsung/
  3. .checkpatch.conf
  4. .clang-format
  5. PREUPLOAD.cfg