Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hw reset errors handling #13254

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

remibettan
Copy link
Contributor

Tracked by: RSDEV-2335

return; // happens when no error occurs

auto hwm_ans = *reinterpret_cast<hwmon_response*>(res.data());
if (hwm_ans == hwmon_response::hwm_Success)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So some D500 devices will return 0 data and some success opcode?
We need to ask FW team to align this behavior
both should return success IMO

int retries = 0;
bool success = false;
const int ERR_SWNotReady = -21;
const int ERR_Operation_Timeout = -18;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do we do with this error?

@Nir-Az
Copy link
Collaborator

Nir-Az commented Aug 29, 2024

Any update here?

@remibettan
Copy link
Contributor Author

Any update here?

Yes - please see info in the ticket :-)


auto hwm_ans = *reinterpret_cast<hwmon_response*>(res.data());
if (hwm_ans == hwmon_response::hwm_Success)
success = true;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just return?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants