linux-rpi icon indicating copy to clipboard operation
linux-rpi copied to clipboard

Can was broken without option CONFIG_DEBUG_FS

Open jencha opened this issue 5 years ago • 0 comments

Branches: 4.14-rpi...mcp25..fd-v.. I disabled option CONFIG_DEBUG_FS in my kernel config. Driver compiled successful. Then I tested with cangen/candump in FD mode. Candump doesn't get messages.

My notices:

  1. Please, add "{}" to the describing DEBUG macroses (file mcp25xxfd_can_debugfs.h)
  2. In the file mcp25xxfd_can.h variable submit_queue_count incremented through DEBUG macros. I think, it is bug's decision. static inline void mcp25xxfd_can_queue_frame(struct mcp25xxfd_can_priv *cpriv, s32 fifo, u16 ts, bool is_rx) { ... MCP25XXFD_DEBUGFS_INCR(cpriv->fifos.submit_queue_count); }

jencha avatar Nov 26 '20 14:11 jencha