# Re: \[PATCH net 1/4\] can: m\_can: pci: fix incorrect reference clock rate

- From: Jarkko Nikula \<hidden\>
- Date: 2021-11-16 14:51:26 
- List: netdev
- Page: https://ratatoskr.run/netdev/2021/11/1576434
- Thread: https://ratatoskr.run/linux-can/2021/11/1571967/t.md

```text
On 11/16/21 9:15 AM, Marc Kleine-Budde wrote:
> On 16.11.2021 09:11:40, Jarkko Nikula wrote:
>>> ip link set can0 type can bitrate 1000000 dbitrate 2000000 fd on
>>
>> I got confirmation the clock to CAN controller is indeed changed from 100
>> MHz to 200 MHz in release HW & firmware.
>>
>> I haven't upgraded the FW in a while on our HW so that perhaps explain
>> why I was seeing expected rate :-)
>
> Can we query the FW version in the driver and set the clock rate
> accordingly?
>
Perhaps or check some clock register. I guess for now it can be considered fixed clock since I understood rate was changed before released to customers. I.e. customers shouldn't have firmware with different rates. At least I hope so :-)

Jarkko
```
