Skip to content

Commit

Permalink
fix hw_reset low polarity (reverse values)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarashinvd committed Dec 26, 2023
1 parent 80f2f6b commit 6e02273
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -450,8 +450,9 @@ def power_on_module(self, port, module_sm_obj, dynamic=False):
utils.write_file(module_fd_indep_path_po, "1")
if os.path.isfile(module_fd_indep_path_r):
logger.log_info("powerOnModule resetting via {} for port {}".format(module_fd_indep_path_r, port))
# echo 0 > /sys/module/sx_core/$asic/$module/hw_reset
utils.write_file(module_fd_indep_path_r, "0")
# de-assert hw_reset - low polarity. 1 for de-assert 0 for assert
# echo 1 > /sys/module/sx_core/$asic/$module/hw_reset
utils.write_file(module_fd_indep_path_r, "1")
self.add_port_to_wait_reset(module_sm_obj)
except Exception as e:
logger.log_info("exception in powerOnModule {} for port {}".format(e, port))
Expand Down

0 comments on commit 6e02273

Please sign in to comment.