On 16.03.2021 00:15:10, Angelo Dureghello wrote: > For cases when flexcan is built-in, bitrate is still not set > at registering. So flexcan_chip_freeze() generates: > > [ 1.860000] *** ZERO DIVIDE *** FORMAT=4 > [ 1.860000] Current process id is 1 > [ 1.860000] BAD KERNEL TRAP: 00000000 > [ 1.860000] PC: [<402e70c8>] flexcan_chip_freeze+0x1a/0xa8 > > To allow chip freeze, using an hardcoded timeout when bitrate is still > not set. > > Signed-off-by: Angelo Dureghello <angelo@xxxxxxxxxxxxxxxx> Applied to linux-can/testing Thanks, Marc -- Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Attachment:
signature.asc
Description: PGP signature