Xilinx / Xilinx/embeddedsw

Possible unnecessary XCanFd_ReadReg() in XCanFd_Send()

Open
#51 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
1.2k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

https://github.com/Xilinx/embeddedsw/blob/b2f54f649486ec1435f2f6b6e524d9c9c84f2efc/XilinxProcessorIPLib/drivers/canfd/src/xcanfd.c#L462

The return value of XCanFd_ReadReg() is unused, Is that line necessary?

According to CAN FD v1.0 LogiCORE IP Product Guide Table 2-18 It doesn't state host reading of TX Buffer Ready Request Register affects anything.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in XilinxProcessorIPLib/drivers/canfd/src/xcanfd.c at line 462 within XCanFd_Send(), then consult CAN FD v1.0 LogiCORE IP Product Guide Table 2-18. Trace whether the XCanFd_ReadReg() return value or read side effect is used elsewhere. Done means the necessity of the read is established and the issue's proposed cleanup is resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
embedded-iot
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.