]> asedeno.scripts.mit.edu Git - linux.git/commit
can: peak_canfd: rearrange the way resources are released
authorStephane Grosjean <s.grosjean@peak-system.com>
Thu, 21 Jun 2018 13:23:30 +0000 (15:23 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 27 Jul 2018 08:40:18 +0000 (10:40 +0200)
commit5592cd0390741e6fecfc7908baaeadb4682f3c48
tree01536d73e949f792b35fbc5f55a015bad222e58e
parentd31f8513f252e25be3d4e64fe99d1efd5da3c83a
can: peak_canfd: rearrange the way resources are released

This patch improves the sequence the resources are released by, first,

- disabling the IRQ in the controller, then by
- resetting the DMA logic, and finally, by
- adding a read cycle to ensure that the above commands have been received

before freeing the system interrupt.

Signed-off-by: Stephane Grosjean <s.grosjean@peak-system.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/peak_canfd/peak_pciefd_main.c