commit | 5592cd0390741e6fecfc7908baaeadb4682f3c48 | [log] [tgz] |
---|---|---|
author | Stephane Grosjean <s.grosjean@peak-system.com> | Thu Jun 21 15:23:30 2018 +0200 |
committer | Marc Kleine-Budde <mkl@pengutronix.de> | Fri Jul 27 10:40:18 2018 +0200 |
tree | 01536d73e949f792b35fbc5f55a015bad222e58e | |
parent | d31f8513f252e25be3d4e64fe99d1efd5da3c83a [diff] |
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>