[PATCH for drm-misc-fixes v3 0/2] Fix some bugs in the hibmc DP

Yongbang Shi posted 2 patches 4 hours ago
drivers/gpu/drm/hisilicon/hibmc/dp/dp_comm.h  |  1 -
drivers/gpu/drm/hisilicon/hibmc/dp/dp_hw.c    | 32 +++++++++++------
drivers/gpu/drm/hisilicon/hibmc/dp/dp_hw.h    |  5 +--
.../gpu/drm/hisilicon/hibmc/hibmc_drm_dp.c    | 34 +++++++++++--------
.../gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c   | 32 ++++++++++++++++-
.../gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h   |  2 ++
.../gpu/drm/hisilicon/hibmc/hibmc_drm_i2c.c   | 19 +++++++++--
.../gpu/drm/hisilicon/hibmc/hibmc_drm_regs.h  |  3 ++
8 files changed, 96 insertions(+), 32 deletions(-)
[PATCH for drm-misc-fixes v3 0/2] Fix some bugs in the hibmc DP
Posted by Yongbang Shi 4 hours ago
From: Lin He <helin52@huawei.com>

Fix some bugs in the hibmc DP driver.

---
ChangeLog:
v2 -> v3:
  - Delete irq_status and use hpd_status directly for hotplug
    detection. (sashiko-bot)
  - Add debug logs when hpd_status is not HPD_IN in detect and
    encoder_enable.
  - Move hibmc_set_enable_flag() before drm_dev_register() and
    hibmc_set_disable_flag() after drm_dev_unregister() to narrow the
    race window. (sashiko-bot)
  - Add spinlock_t gpio_lock to hibmc_drm_private to protect all
    operations on 0x0802A4. (sashiko-bot)
v1 -> v2:
  - More states in HIBMC_DP_HPD_STATUS are added to the
    'hibmc_dp_get_hpd_status'.
  - The call to `hibmc_set_enable_flag()` has been moved before
    `drm_client_setup()`, specifically before the connector detection
    triggers the I2C bit operation. (sashiko-bot)
  - A read-modify-write operation has been implemented instead of directly
    writing to prevent clearing the I2C mask bits. (sashiko-bot)
---

Lin He (2):
  drm/hisilicon/hibmc: Modify the method of obtaining the hpd_status
  drm/hisilicon/hibmc: Add a flag to indicate whether the OS-side driver
    has been loaded

 drivers/gpu/drm/hisilicon/hibmc/dp/dp_comm.h  |  1 -
 drivers/gpu/drm/hisilicon/hibmc/dp/dp_hw.c    | 32 +++++++++++------
 drivers/gpu/drm/hisilicon/hibmc/dp/dp_hw.h    |  5 +--
 .../gpu/drm/hisilicon/hibmc/hibmc_drm_dp.c    | 34 +++++++++++--------
 .../gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c   | 32 ++++++++++++++++-
 .../gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h   |  2 ++
 .../gpu/drm/hisilicon/hibmc/hibmc_drm_i2c.c   | 19 +++++++++--
 .../gpu/drm/hisilicon/hibmc/hibmc_drm_regs.h  |  3 ++
 8 files changed, 96 insertions(+), 32 deletions(-)

-- 
2.43.0