Re: [PATCH] m_can.c: clear CCCR NISO bit before checking can.ctrlmode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/11/2018 03:36 PM, Roman Fietze wrote:
> Inside m_can_chip_config, when setting up the new value of the CCCR,
> the CCCR_NISO bit is not cleared like the others, CCCR_TEST, CCCR_MON,
> CCCR_BRSE and CCCR_FDOE, before checking the can.ctrlmode bits for
> CAN_CTRLMODE_FD_NON_ISO.
> 
> This way once the controller was configured for
> CAN_CTRLMODE_FD_NON_ISO, this mode could never be cleared again.
> 
> This fix is only relevant for controllers with version 3.1.x or 3.2.x.
> Older versions do not support NISO.
> 
> Signed-off-by: Roman Fietze <roman.fietze@xxxxxxxxxxxxx>

Applied to can. Added stable in Cc.

Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux