Skip to content

Commit c430f56

Browse files
Sakari AilusJiri Kosina
authored andcommitted
HID: intel-thc-hid: Remove redundant pm_runtime_mark_last_busy() calls
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>
1 parent 2953fb6 commit c430f56

4 files changed

Lines changed: 0 additions & 6 deletions

File tree

drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,6 @@ static irqreturn_t quicki2c_irq_thread_handler(int irq, void *dev_id)
344344
if (try_recover(qcdev))
345345
qcdev->state = QUICKI2C_DISABLED;
346346

347-
pm_runtime_mark_last_busy(qcdev->dev);
348347
pm_runtime_put_autosuspend(qcdev->dev);
349348

350349
return IRQ_HANDLED;
@@ -735,7 +734,6 @@ static int quicki2c_probe(struct pci_dev *pdev, const struct pci_device_id *id)
735734
/* Enable runtime power management */
736735
pm_runtime_use_autosuspend(qcdev->dev);
737736
pm_runtime_set_autosuspend_delay(qcdev->dev, DEFAULT_AUTO_SUSPEND_DELAY_MS);
738-
pm_runtime_mark_last_busy(qcdev->dev);
739737
pm_runtime_put_noidle(qcdev->dev);
740738
pm_runtime_put_autosuspend(qcdev->dev);
741739

drivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-hid.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ static int quicki2c_hid_raw_request(struct hid_device *hid,
7272
break;
7373
}
7474

75-
pm_runtime_mark_last_busy(qcdev->dev);
7675
pm_runtime_put_autosuspend(qcdev->dev);
7776

7877
return ret;

drivers/hid/intel-thc-hid/intel-quickspi/pci-quickspi.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,6 @@ static irqreturn_t quickspi_irq_thread_handler(int irq, void *dev_id)
339339
if (try_recover(qsdev))
340340
qsdev->state = QUICKSPI_DISABLED;
341341

342-
pm_runtime_mark_last_busy(qsdev->dev);
343342
pm_runtime_put_autosuspend(qsdev->dev);
344343

345344
return IRQ_HANDLED;
@@ -674,7 +673,6 @@ static int quickspi_probe(struct pci_dev *pdev,
674673
/* Enable runtime power management */
675674
pm_runtime_use_autosuspend(qsdev->dev);
676675
pm_runtime_set_autosuspend_delay(qsdev->dev, DEFAULT_AUTO_SUSPEND_DELAY_MS);
677-
pm_runtime_mark_last_busy(qsdev->dev);
678676
pm_runtime_put_noidle(qsdev->dev);
679677
pm_runtime_put_autosuspend(qsdev->dev);
680678

drivers/hid/intel-thc-hid/intel-quickspi/quickspi-hid.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ static int quickspi_hid_raw_request(struct hid_device *hid,
7171
break;
7272
}
7373

74-
pm_runtime_mark_last_busy(qsdev->dev);
7574
pm_runtime_put_autosuspend(qsdev->dev);
7675

7776
return ret;

0 commit comments

Comments
 (0)