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

HSI: omap_ssi_port: 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>
Link: https://lore.kernel.org/r/20250704075413.3218357-1-sakari.ailus@linux.intel.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>

authored by

Sakari Ailus and committed by
Sebastian Reichel
ca50b295 8f5ae30d

-11
-11
drivers/hsi/controllers/omap_ssi_port.c
··· 362 362 spin_unlock_bh(&omap_port->lock); 363 363 } 364 364 out: 365 - pm_runtime_mark_last_busy(omap_port->pdev); 366 365 pm_runtime_put_autosuspend(omap_port->pdev); 367 366 368 367 return err; ··· 400 401 msg->status = HSI_STATUS_ERROR; 401 402 } 402 403 spin_unlock_bh(&omap_port->lock); 403 - pm_runtime_mark_last_busy(omap_port->pdev); 404 404 pm_runtime_put_autosuspend(omap_port->pdev); 405 405 dev_dbg(&port->device, "msg status %d ttype %d ch %d\n", 406 406 msg->status, msg->ttype, msg->channel); ··· 502 504 omap_port->ssr.mode = cl->rx_cfg.mode; 503 505 out: 504 506 spin_unlock_bh(&omap_port->lock); 505 - pm_runtime_mark_last_busy(omap_port->pdev); 506 507 pm_runtime_put_autosuspend(omap_port->pdev); 507 508 508 509 return err; ··· 567 570 pinctrl_pm_select_default_state(omap_port->pdev); 568 571 569 572 spin_unlock_bh(&omap_port->lock); 570 - pm_runtime_mark_last_busy(omap_port->pdev); 571 573 pm_runtime_put_autosuspend(omap_port->pdev); 572 574 573 575 return 0; ··· 621 625 writel(SSI_WAKE(0), omap_ssi->sys + SSI_CLEAR_WAKE_REG(port->num)); 622 626 spin_unlock_bh(&omap_port->wk_lock); 623 627 624 - pm_runtime_mark_last_busy(omap_port->pdev); 625 628 pm_runtime_put_autosuspend(omap_port->pdev); /* Release clocks */ 626 629 627 630 ··· 648 653 } 649 654 } 650 655 spin_unlock_bh(&omap_port->lock); 651 - pm_runtime_mark_last_busy(omap_port->pdev); 652 656 pm_runtime_put_autosuspend(omap_port->pdev); 653 657 } 654 658 ··· 677 683 txbufstate |= (1 << i); 678 684 status |= SSI_DATAACCEPT(i); 679 685 /* Release the clocks writes, also GDD ones */ 680 - pm_runtime_mark_last_busy(omap_port->pdev); 681 686 pm_runtime_put_autosuspend(omap_port->pdev); 682 687 } 683 688 ssi_flush_queue(&omap_port->txqueue[i], cl); ··· 732 739 * ssi_cleanup_queues 733 740 */ 734 741 if (msg->ttype == HSI_MSG_READ) { 735 - pm_runtime_mark_last_busy(omap_port->pdev); 736 742 pm_runtime_put_autosuspend(omap_port->pdev); 737 743 } 738 744 omap_ssi->gdd_trn[i].msg = NULL; ··· 928 936 reg = readl(omap_ssi->sys + SSI_MPU_ENABLE_REG(port->num, 0)); 929 937 if (msg->ttype == HSI_MSG_WRITE) { 930 938 /* Release clocks for write transfer */ 931 - pm_runtime_mark_last_busy(omap_port->pdev); 932 939 pm_runtime_put_autosuspend(omap_port->pdev); 933 940 } 934 941 reg &= ~val; ··· 972 981 /* TODO: sleep if we retry? */ 973 982 } while (status_reg); 974 983 975 - pm_runtime_mark_last_busy(omap_port->pdev); 976 984 pm_runtime_put_autosuspend(omap_port->pdev); 977 985 978 986 return IRQ_HANDLED; ··· 1008 1018 } 1009 1019 hsi_event(port, HSI_EVENT_STOP_RX); 1010 1020 if (test_and_clear_bit(SSI_WAKE_EN, &omap_port->flags)) { 1011 - pm_runtime_mark_last_busy(omap_port->pdev); 1012 1021 pm_runtime_put_autosuspend(omap_port->pdev); 1013 1022 } 1014 1023 }