WORKAROUND: drm/vc4: hdmi: Remove warn for pm_runtime_status 34/270734/1
authorHoegeun Kwon <hoegeun.kwon@samsung.com>
Tue, 8 Feb 2022 05:52:06 +0000 (14:52 +0900)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Tue, 8 Feb 2022 05:52:06 +0000 (14:52 +0900)
Remove check warn for pm_runtime_status_suspended. Actually resume
state, but confirmed as suspend state. Resolved from firmwares
v5.10.47.

Change-Id: I1f1505588440cccc18acdd285a356bdf8da48f96
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
drivers/gpu/drm/vc4/vc4_hdmi_regs.h

index 0198de9..d360fe8 100644 (file)
@@ -423,7 +423,12 @@ static inline u32 vc4_hdmi_read(struct vc4_hdmi *hdmi,
        const struct vc4_hdmi_variant *variant = hdmi->variant;
        void __iomem *base;
 
-       WARN_ON(pm_runtime_status_suspended(&hdmi->pdev->dev));
+       /*
+        * WORKAROUND
+        * Actually resume state, but confirmed as suspend state.
+        * Resolved from firmwares v5.10.47.
+        */
+       // WARN_ON(pm_runtime_status_suspended(&hdmi->pdev->dev));
 
        if (reg >= variant->num_registers) {
                dev_warn(&hdmi->pdev->dev,
@@ -453,7 +458,12 @@ static inline void vc4_hdmi_write(struct vc4_hdmi *hdmi,
 
        lockdep_assert_held(&hdmi->hw_lock);
 
-       WARN_ON(pm_runtime_status_suspended(&hdmi->pdev->dev));
+       /*
+        * WORKAROUND
+        * Actually resume state, but confirmed as suspend state.
+        * Resolved from firmwares v5.10.47.
+        */
+       // WARN_ON(pm_runtime_status_suspended(&hdmi->pdev->dev));
 
        if (reg >= variant->num_registers) {
                dev_warn(&hdmi->pdev->dev,