On 14.03.18 10:11, Wolfgang Grandegger wrote:
+ÂÂÂ /* handle error frames */
+ÂÂÂ canid = le32_to_cpu(m->msg.can_msg.id);
+ÂÂÂ if (canid & CAN_ERR_FLAG) {
+ÂÂÂÂÂÂÂ ucan_handle_error_frame(up, m, canid);
+ÂÂÂÂÂÂÂ /* drop frame if berr-reporting is off */
+ÂÂÂÂÂÂÂ if (!(up->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING))
+ÂÂÂÂÂÂÂÂÂÂÂ return;
+ÂÂÂ }
You still do not generate error messages for state changes, IIUC.
The hardware generates error frames on state changes - is that what you mean?
In our testing, the state shows up (and updates) correctly in
ÂÂÂÂip -details -statistics link show can0