Add FLEXCAN HW Filter in CAN driver

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Add FLEXCAN HW Filter in CAN driver

1,550 Views
yogeshbsa89
Contributor II

Hi,

I want to implement CAN HW filter in CAN driver.

As current can driver implementation is Network driver so can be accessed via socket.

So in this implementation CAN filter can be set at kernel level by using socket options.

I would like to use can Hw filter to reduce the load on CAN receive interrupt.

Since CAN is running at 1mbps. If load on CAN bus increases which increases the CAN interrupt rate in turn raise CPU load.

Please suggest which registers i need to change. if any patch is available for reference kindly share.   

 

Regards,

Yogesh 

Labels (2)
Tags (1)
0 Kudos
Reply
8 Replies

1,322 Views
Jean-Philippe
Contributor I

Hi Igor,

I have the same request for iMX6ULL. I really need to enable hardware filtering to avoid to many irq and kernel filtering.

Could you send me the patch ?

Thank you !

Jean-Philippe

0 Kudos
Reply

769 Views
sudarkb
Contributor II

Hi @Jean-Philippe ,

Will it be possible to share the FLEXCAN HW Filter patch.

Regards,
Sudar

0 Kudos
Reply

1,535 Views
igorpadykov
NXP Employee
NXP Employee

Hi Yogesh

 

patch was sent you via mail.

 

Best regards
igor

0 Kudos
Reply

187 Views
joefonseca
Contributor I

Hi Igor. 

I am in the same situation. Could you email me the patch?

Thanks,
José

0 Kudos
Reply

638 Views
jmeyerfluid
Contributor I

Hello, I am running into a similar problem with too many CAN IRQ's on the IMX6, could you please send me the patch to enable FlexCAN hardware filtering, it should solve my problem as I only need to filter in a couple of messages on a very busy bus. Thanks!

0 Kudos
Reply

176 Views
joefonseca
Contributor I

Hi, jmeyerfluid.

Has the patch been emailed to you before? If so, could you share it with me?

Thank you!

0 Kudos
Reply

792 Views
sudarkb
Contributor II

Hi @igorpadykov ,

We would like to add the FLEXCAN HW Filter in CAN driver. Kindly share the patch for the same.

Regards,
Sudar

0 Kudos
Reply

1,492 Views
thomas_mohnl
Contributor I

Hi Igor,

I have the same topic: need HW filter in flexcan driver.

Please provide me also with the patch.

Thanks,

Thomas

0 Kudos
Reply