Re: [PATCH net-next-2.6 v2] can: Topcliff: PCH_CAN driver: Add Flow control,

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Wolfgang Grandegger
Date: Tuesday, November 16, 2010 - 3:16 am

Hi Tomoya,

On 11/16/2010 09:25 AM, Tomoya MORINAGA wrote:

OK, but...


... I doubt that it's updated automatically. At least I understand
chapter "13.4.2.2 CAN Status Register (CANSTAT)" and "Table 507. Last
Error Code (LEC) Details of Operation" differently. Please *check* the
real behavior by adding debugging code.


To inteprete the error messages, please have a look to
http://lxr.linux.no/#linux/include/linux/can/error.h

The id is "CAN_EFF_FLAG | CAN_ERR_ACK | CAN_ERR_CRTL" and data[1] is
"CAN_ERR_CRTL_TX_PASSIVE | CAN_ERR_CRTL_TX_WARNING".

Which is *not* 100% OK.


Yes, it will continue until you connect the cable, that's normal
behavior. But that's not the full sequence. Could you please repeat the
test as shown below:

  First start the following command in a *separate* session.
  # candump any,0:0,#FFFFFFFF"

  Then setup and start the CAN controller:
  # ip link set can0 up type can bitrate 125000
  # cansend can0 123#deadbeef

Wolfgang.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH net-next-2.6 v2] can: Topcliff: PCH_CAN driver: ..., Marc Kleine-Budde, (Mon Nov 15, 2:11 am)
Re: [PATCH net-next-2.6 v2] can: Topcliff: PCH_CAN driver: ..., Marc Kleine-Budde, (Mon Nov 15, 2:37 am)
Re: [PATCH net-next-2.6 v2] can: Topcliff: PCH_CAN driver: ..., Wolfgang Grandegger, (Mon Nov 15, 7:21 am)
Re: [PATCH net-next-2.6 v2] can: Topcliff: PCH_CAN driver: ..., Marc Kleine-Budde, (Tue Nov 16, 1:14 am)
Re: [PATCH net-next-2.6 v2] can: Topcliff: PCH_CAN driver: ..., Wolfgang Grandegger, (Tue Nov 16, 3:16 am)
Re: [PATCH net-next-2.6 v2] can: Topcliff: PCH_CAN driver: ..., Wolfgang Grandegger, (Fri Nov 19, 1:57 am)