-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
base: development
Are you sure you want to change the base?
hw reset errors handling #13254
Conversation
return; // happens when no error occurs | ||
|
||
auto hwm_ans = *reinterpret_cast<hwmon_response*>(res.data()); | ||
if (hwm_ans == hwmon_response::hwm_Success) |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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?
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just return?
Tracked by: RSDEV-2335