Skip to content

Commit

Permalink
Fix i2c order
Browse files Browse the repository at this point in the history
  • Loading branch information
Jostar Yang committed Dec 15, 2021
1 parent 357f939 commit 50b1904
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions device/accton/x86_64-accton_as7712_32x-r0/installer.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CONSOLE_PORT=0x2f8
CONSOLE_DEV=1
CONSOLE_SPEED=115200
ONIE_PLATFORM_EXTRA_CMDLINE_LINUX="modprobe.blacklist=i2c-ismt,i2c_ismt,i2c-i801,i2c_i801"
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Tlv(eeprom_tlvinfo.TlvInfoDecoder):
EEPROM_DECODE_HEADLINES = 6

def __init__(self):
self._eeprom_path = "/sys/bus/i2c/devices/0-0057/eeprom"
self._eeprom_path = "/sys/bus/i2c/devices/1-0057/eeprom"
super(Tlv, self).__init__(self._eeprom_path, 0, '', True)
self._eeprom = self._load_eeprom()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def manage_fans(self):

# Determine the current fan duty cycle from a working fan
if not cur_duty_cycle:
cur_duty_cycle = platform_chassis.get_fan(x).get_duty_cycle_percentage()
cur_duty_cycle = platform_chassis.get_fan(x).get_speed()

fan_dir = platform_chassis.get_fan(0).get_direction()
if fan_dir == '1':
Expand Down

0 comments on commit 50b1904

Please sign in to comment.