mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-12-28 01:05:36 +00:00
For easier debugging this patch adds dev coredump support to the driver. A dev coredump is generated in case the chip fails to start or an error in the interrupt handler is detected. The dev coredump consists of all chip registers and chip memory, as well as the driver's internal state of the TEF-, RX- and TX-FIFOs, it can be analyzed with the mcp251xfd-dump tool of the can-utils: https://github.com/linux-can/can-utils/tree/master/mcp251xfd Link: https://lore.kernel.org/r/20210304160328.2752293-2-mkl@pengutronix.de Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
19 lines
520 B
Plaintext
19 lines
520 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
config CAN_MCP251XFD
|
|
tristate "Microchip MCP251xFD SPI CAN controllers"
|
|
select REGMAP
|
|
select WANT_DEV_COREDUMP
|
|
help
|
|
Driver for the Microchip MCP251XFD SPI FD-CAN controller
|
|
family.
|
|
|
|
config CAN_MCP251XFD_SANITY
|
|
depends on CAN_MCP251XFD
|
|
bool "Additional Sanity Checks"
|
|
help
|
|
This option enables additional sanity checks in the driver,
|
|
that compares various internal counters with the in chip
|
|
variants. This comes with a runtime overhead.
|
|
Disable if unsure.
|