]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
HID: intel-thc-hid: Remove redundant pm_runtime_mark_last_busy() calls
authorSakari Ailus <sakari.ailus@linux.intel.com>
Mon, 27 Oct 2025 12:01:23 +0000 (14:01 +0200)
committerJiri Kosina <jkosina@suse.com>
Thu, 30 Oct 2025 10:27:17 +0000 (11:27 +0100)
pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(),
pm_runtime_autosuspend() and pm_request_autosuspend() now include a call
to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to
pm_runtime_mark_last_busy().

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Even Xu <even.xu@intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c
drivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-hid.c
drivers/hid/intel-thc-hid/intel-quickspi/pci-quickspi.c
drivers/hid/intel-thc-hid/intel-quickspi/quickspi-hid.c

index 0156ab3917789e3a0d8be1631608895239dff4b2..cfda66ee4895fc1a3b72947a177073c841a2da9c 100644 (file)
@@ -344,7 +344,6 @@ exit:
                if (try_recover(qcdev))
                        qcdev->state = QUICKI2C_DISABLED;
 
-       pm_runtime_mark_last_busy(qcdev->dev);
        pm_runtime_put_autosuspend(qcdev->dev);
 
        return IRQ_HANDLED;
@@ -735,7 +734,6 @@ static int quicki2c_probe(struct pci_dev *pdev, const struct pci_device_id *id)
        /* Enable runtime power management */
        pm_runtime_use_autosuspend(qcdev->dev);
        pm_runtime_set_autosuspend_delay(qcdev->dev, DEFAULT_AUTO_SUSPEND_DELAY_MS);
-       pm_runtime_mark_last_busy(qcdev->dev);
        pm_runtime_put_noidle(qcdev->dev);
        pm_runtime_put_autosuspend(qcdev->dev);
 
index 5c3ec95bb3fdd29f58097e26f387944b9b563ebb..834a537b6780326e2a7191366dfd56c2eded5846 100644 (file)
@@ -72,7 +72,6 @@ static int quicki2c_hid_raw_request(struct hid_device *hid,
                break;
        }
 
-       pm_runtime_mark_last_busy(qcdev->dev);
        pm_runtime_put_autosuspend(qcdev->dev);
 
        return ret;
index 14cabd5dc6ddbf91c9d12229a4799fb1598b01f4..ad6bd59963b28874058e6d9ad94d39642824fb6b 100644 (file)
@@ -339,7 +339,6 @@ end:
                if (try_recover(qsdev))
                        qsdev->state = QUICKSPI_DISABLED;
 
-       pm_runtime_mark_last_busy(qsdev->dev);
        pm_runtime_put_autosuspend(qsdev->dev);
 
        return IRQ_HANDLED;
@@ -674,7 +673,6 @@ static int quickspi_probe(struct pci_dev *pdev,
        /* Enable runtime power management */
        pm_runtime_use_autosuspend(qsdev->dev);
        pm_runtime_set_autosuspend_delay(qsdev->dev, DEFAULT_AUTO_SUSPEND_DELAY_MS);
-       pm_runtime_mark_last_busy(qsdev->dev);
        pm_runtime_put_noidle(qsdev->dev);
        pm_runtime_put_autosuspend(qsdev->dev);
 
index ad52e402c28ac69f80f7e26ef78c3b94b3b32f8f..82c72bfa2795ea8a7b7d42844bec6a69d47ee04f 100644 (file)
@@ -71,7 +71,6 @@ static int quickspi_hid_raw_request(struct hid_device *hid,
                break;
        }
 
-       pm_runtime_mark_last_busy(qsdev->dev);
        pm_runtime_put_autosuspend(qsdev->dev);
 
        return ret;