]> git.baikalelectronics.ru Git - kernel.git/commit
can: flexcan: rename struct flexcan_priv::reg_imask{1,2}_default to rx_mask{1,2}
authorMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 1 Mar 2019 08:18:54 +0000 (09:18 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 11 Nov 2019 20:58:11 +0000 (21:58 +0100)
commitb50157eb7cd9c3deec85848e8e09257b2316555b
tree30f6cf6400344c7fed0208289c042356e07e894d
parent90b9bac9adeeb5f69ac5355d17c3e0e12aab4fc9
can: flexcan: rename struct flexcan_priv::reg_imask{1,2}_default to rx_mask{1,2}

The flexcan IP core has up to 64 mailboxes, each one has a corresponding
interrupt bit in the iflag1 or iflag2 registers and a mask bit in the
imask1 or imask2 registers.

In the timestamp (i.e. non FIFO) mode the driver needs to mask out all
non RX interrupt sources and uses the precomputed values
reg_imask1_default and reg_imask2_default of struct flexcan_priv for
this.

However in the current driver the reg_imask{1,2}_default cannot be used
directly to get the pending RX interrupts. The TX interrupt is part of
these variables, so it needs to be masked out, too.

This is a preparation patch to clean up calculation of the pending RX
interrupts, it only renames the variables from

    reg_imask{1,2}_default

to

    rx_mask{1,2}

To better reflect their meaning after the complete conversion. This
change is done with the following sed command:

    sed -i -e "s/reg_imask\(1\|2\)_default/rx_mask\1/" drivers/net/can/flexcan.c

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/flexcan.c