at91: link CAN set down problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I am using Linux 4.4 on SAMA5D3 MPU to run an application written in C.
Sometimes this application must switch off a MPU CAN controller.
It will be done by putting a "/sbin/ip link set CAN0 down" string in a pipe.
This cause a call of at91_close() function in at91_can.c driver.
If MPU is only one CAN node on the bus it retransmitts frame to send due
noACK error.
Sometimes after switch off CAN controler by at91_close() function
the CAN bus remains dominant.
It can be prevented by adding a delay before clk_disable_unprepare() call
in at91_close() function.

Waiting for AT91_MR_CANEN bit cleared don't help.

Does anyone have had such problem?

Best regards,
Efim






[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux