Skip to content

Commit

Permalink
can: m_can: pci: fix incorrect reference clock rate
Browse files Browse the repository at this point in the history
When testing the CAN controller on our Ekhart Lake hardware, we
determined that all communication was running with twice the configured
bitrate. Changing the reference clock rate from 100MHz to 200MHz fixed
this. Intel's support has confirmed to us that 200MHz is indeed the
correct clock rate.

Fixes: cab7ffc ("can: m_can: add PCI glue driver for Intel Elkhart Lake")
Link: https://lore.kernel.org/all/c9cf3995f45c363e432b3ae8eb1275e54f009fc8.1636967198.git.matthias.schiffer@ew.tq-group.com
Cc: [email protected]
Signed-off-by: Matthias Schiffer <[email protected]>
Acked-by: Jarkko Nikula <[email protected]>
Reviewed-by: Jarkko Nikula <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
  • Loading branch information
tq-schifferm authored and marckleinebudde committed Dec 7, 2021
1 parent d737de2 commit 8c03b8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/can/m_can/m_can_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#define M_CAN_PCI_MMIO_BAR 0

#define M_CAN_CLOCK_FREQ_EHL 100000000
#define M_CAN_CLOCK_FREQ_EHL 200000000
#define CTL_CSR_INT_CTL_OFFSET 0x508

struct m_can_pci_priv {
Expand Down

0 comments on commit 8c03b8b

Please sign in to comment.