mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1] can: sja1000: fix size of OCR_MODE_MASK define
@ 2022-11-23  7:16 Heiko Schocher
  2022-11-24 14:48 ` Marc Kleine-Budde
  0 siblings, 1 reply; 2+ messages in thread
From: Heiko Schocher @ 2022-11-23  7:16 UTC (permalink / raw)
  To: linux-can
  Cc: Heiko Schocher, Marc Kleine-Budde, Wolfgang Grandegger, linux-kernel

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

Signed-off-by: Heiko Schocher <hs@denx.de>
---

 include/linux/can/platform/sja1000.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/can/platform/sja1000.h b/include/linux/can/platform/sja1000.h
index 5755ae5a4712..6a869682c120 100644
--- a/include/linux/can/platform/sja1000.h
+++ b/include/linux/can/platform/sja1000.h
@@ -14,7 +14,7 @@
 #define OCR_MODE_TEST     0x01
 #define OCR_MODE_NORMAL   0x02
 #define OCR_MODE_CLOCK    0x03
-#define OCR_MODE_MASK     0x07
+#define OCR_MODE_MASK     0x03
 #define OCR_TX0_INVERT    0x04
 #define OCR_TX0_PULLDOWN  0x08
 #define OCR_TX0_PULLUP    0x10
-- 
2.37.3


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH v1] can: sja1000: fix size of OCR_MODE_MASK define
  2022-11-23  7:16 [PATCH v1] can: sja1000: fix size of OCR_MODE_MASK define Heiko Schocher
@ 2022-11-24 14:48 ` Marc Kleine-Budde
  0 siblings, 0 replies; 2+ messages in thread
From: Marc Kleine-Budde @ 2022-11-24 14:48 UTC (permalink / raw)
  To: Heiko Schocher; +Cc: linux-can, Wolfgang Grandegger, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 506 bytes --]

On 23.11.2022 08:16:36, Heiko Schocher wrote:
> bitfield mode in ocr register has only 2 bits not 3, so correct
> the OCR_MODE_MASK define.
> 
> Signed-off-by: Heiko Schocher <hs@denx.de>

Applied to linux-can.

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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-11-24 14:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-23  7:16 [PATCH v1] can: sja1000: fix size of OCR_MODE_MASK define Heiko Schocher
2022-11-24 14:48 ` Marc Kleine-Budde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®