Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Bluetooth: 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>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

authored by

Sakari Ailus and committed by
Luiz Augusto von Dentz
b8414ba5 73d2d709

+1 -11
-1
drivers/bluetooth/btmtksdio.c
··· 615 615 616 616 sdio_release_host(bdev->func); 617 617 618 - pm_runtime_mark_last_busy(bdev->dev); 619 618 pm_runtime_put_autosuspend(bdev->dev); 620 619 } 621 620
+1 -5
drivers/bluetooth/hci_bcm.c
··· 326 326 bt_dev_dbg(bdev, "Host wake IRQ"); 327 327 328 328 pm_runtime_get(bdev->dev); 329 - pm_runtime_mark_last_busy(bdev->dev); 330 329 pm_runtime_put_autosuspend(bdev->dev); 331 330 332 331 return IRQ_HANDLED; ··· 709 710 mutex_lock(&bcm_device_lock); 710 711 if (bcm->dev && bcm_device_exists(bcm->dev)) { 711 712 pm_runtime_get(bcm->dev->dev); 712 - pm_runtime_mark_last_busy(bcm->dev->dev); 713 713 pm_runtime_put_autosuspend(bcm->dev->dev); 714 714 } 715 715 mutex_unlock(&bcm_device_lock); ··· 746 748 747 749 skb = skb_dequeue(&bcm->txq); 748 750 749 - if (bdev) { 750 - pm_runtime_mark_last_busy(bdev->dev); 751 + if (bdev) 751 752 pm_runtime_put_autosuspend(bdev->dev); 752 - } 753 753 754 754 mutex_unlock(&bcm_device_lock); 755 755
-2
drivers/bluetooth/hci_h5.c
··· 616 616 617 617 if (hu->serdev) { 618 618 pm_runtime_get(&hu->serdev->dev); 619 - pm_runtime_mark_last_busy(&hu->serdev->dev); 620 619 pm_runtime_put_autosuspend(&hu->serdev->dev); 621 620 } 622 621 ··· 657 658 658 659 if (hu->serdev) { 659 660 pm_runtime_get_sync(&hu->serdev->dev); 660 - pm_runtime_mark_last_busy(&hu->serdev->dev); 661 661 pm_runtime_put_autosuspend(&hu->serdev->dev); 662 662 } 663 663
-3
drivers/bluetooth/hci_intel.c
··· 280 280 281 281 /* Host/Controller are now LPM resumed, trigger a new delayed suspend */ 282 282 pm_runtime_get(&idev->pdev->dev); 283 - pm_runtime_mark_last_busy(&idev->pdev->dev); 284 283 pm_runtime_put_autosuspend(&idev->pdev->dev); 285 284 286 285 return IRQ_HANDLED; ··· 370 371 list_for_each_entry(idev, &intel_device_list, list) { 371 372 if (intel->hu->tty->dev->parent == idev->pdev->dev.parent) { 372 373 pm_runtime_get(&idev->pdev->dev); 373 - pm_runtime_mark_last_busy(&idev->pdev->dev); 374 374 pm_runtime_put_autosuspend(&idev->pdev->dev); 375 375 break; 376 376 } ··· 1001 1003 list_for_each_entry(idev, &intel_device_list, list) { 1002 1004 if (hu->tty->dev->parent == idev->pdev->dev.parent) { 1003 1005 pm_runtime_get_sync(&idev->pdev->dev); 1004 - pm_runtime_mark_last_busy(&idev->pdev->dev); 1005 1006 pm_runtime_put_autosuspend(&idev->pdev->dev); 1006 1007 break; 1007 1008 }