aboutsummaryrefslogtreecommitdiffstats
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorMarc Kleine-Budde <[email protected]>2020-11-19 10:09:14 +0000
committerMarc Kleine-Budde <[email protected]>2020-11-20 11:06:46 +0000
commit49dea0443918da38f1cce94e74e17d2972c03016 (patch)
treec344e8e903cadbbd677cedf168adc7f3017880d9 /net/lapb/lapb_iface.c
parentcan: flexcan: factor out enabling and disabling of interrupts into separate f... (diff)
downloadkernel-49dea0443918da38f1cce94e74e17d2972c03016.tar.gz
kernel-49dea0443918da38f1cce94e74e17d2972c03016.zip
can: flexcan: move enabling/disabling of interrupts from flexcan_chip_{start,stop}() to callers
The function flexcan_chip_start() first configures the CAN controller and then enables the interrupt, flexcan_chip_stop() does the opposite. In an upcoming patch the order of operations in flexcan_open() and flexcan_close() are changed. This requires flexcan_chip_start()/flexcan_chip_stop_disable_on_error() and flexcan_chip_interrupts_{enable,disable}() to be independent of each other. This patch moves the enabling of the interrupts from flexcan_chip_start() to its callers flexcan_open() and flexcan_resume(). Likewise the disabling of the interrupts is moved from __flexcan_chip_stop() to its indirect callers flexcan_close() and flexcan_suspend(). Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions