Commit 787b118b authored by Heiko Schocher's avatar Heiko Schocher Committed by sanglipeng
Browse files

can: sja1000: fix size of OCR_MODE_MASK define

stable inclusion
from stable-v5.10.160
commit 683837f2f69d5ebd5e770d5096e3f65c237db4f9
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7P7OH

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=683837f2f69d5ebd5e770d5096e3f65c237db4f9



--------------------------------

[ Upstream commit 26e8f6a7 ]

bitfield mode in ocr register has only 2 bits not 3, so correct
the OCR_MODE_MASK define.

Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
Link: https://lore.kernel.org/all/20221123071636.2407823-1-hs@denx.de


Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent e2f27bcd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment