Skip to content

Commit

Permalink
Remove old TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
sgherbst committed Feb 7, 2024
1 parent 580ea8e commit e5acf87
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions switchboard/cpp/switchboard_pcie.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ class SB_pcie {
int reset_retry = 0;
uint32_t r;

// TODO Validate the ID and version regs.
r = dev_read32(REG_ID);
D(printf("SB pcie ID=%x\n", r));
if (r >> 16 != REG_ID_FPGA) {
Expand All @@ -90,7 +89,6 @@ class SB_pcie {

// Reset the device.
dev_write32(qoffset + REG_RESET, 0x1);
// TODO: timeout/yield?
D(printf("Read reset state\n"));
while (dev_read32(qoffset + REG_STATUS) != 0x1) {
if (reset_retry++ >= MAX_RETRY) {
Expand Down

0 comments on commit e5acf87

Please sign in to comment.