-
Notifications
You must be signed in to change notification settings - Fork 18
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-mgmt: scripts: Fix creation and removal of psuN_i2c_bus files #1554
base: V.7.0040.3000_BR
Are you sure you want to change the base?
Conversation
These files are created when PSU cables are plugged in and removed when PSU cable are plugged out. Instead, they should be created and removed when PSUs are plugged in and plugged out respectively. Otherwise there is no way to distingush between dummy PSU and real PSU that was disconnected from power. Bug: 4176785 Signed-off-by: Felix Radensky <[email protected]>
fi | ||
find_i2c_bus | ||
i2c_comex_mon_bus_default=$(< $i2c_comex_mon_bus_default_file) | ||
comex_bus=$((i2c_comex_mon_bus_default+i2c_bus_offset)) |
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.
I just wonder if we can receive such event with comex_i2c_bus.
Maybe this check is not required.
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.
This code was copied from hw-management-thermal-events.sh It was added by Vadim in this commit: be275d9. There are many places where comex_i2c_bus is checked
RERUN |
RERUN |
98efcc7
to
4f9e9cf
Compare
RERUN |
RERUN |
These files are created when PSU cables are plugged in and removed when PSU cable are plugged out. Instead, they should be created and removed when PSUs are plugged in and plugged out respectively. Otherwise there is no way to distingush between dummy PSU and real PSU that was disconnected from power.
Bug: 4176785