summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kvm
diff options
context:
space:
mode:
authorVadim Pasternak <vadimp@mellanox.com>2019-03-12 08:40:41 +0000
committerDavid S. Miller <davem@davemloft.net>2019-03-12 14:55:16 -0700
commit6bab45b4de0d70f56ac163fd0b105c0c76451515 (patch)
tree0bf310e1a2a44858b4ebbaf5210c2aae0b232633 /arch/powerpc/kvm
parent4ec850e5dfec092b26cf3b7d5a6c9e444ea4babd (diff)
downloadlinux-6bab45b4de0d70f56ac163fd0b105c0c76451515.tar.bz2
mlxsw: core: Prevent duplication during QSFP module initialization
Verify during thermal initialization if QSFP module's entry is already configured in order to prevent duplication. Such scenario could happen in case two switch drivers (PCI and I2C based) coexist and if after boot, splitting configuration is applied for some ports and then I2C based driver is re-probed. In such case after reboot same QSFP module, associated with split will be discovered by I2C based driver few times, and it will cause a crash. It could happen for example on system equipped with BMC (Baseboard Management Controller), running I2C based driver, when the next steps are performed: - System boot - Host side configures port spilt. - BMC side is rebooted. Fixes: 6a79507cfe94 ("mlxsw: core: Extend thermal module with per QSFP module thermal zones") Signed-off-by: Vadim Pasternak <vadimp@mellanox.com> Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/powerpc/kvm')
0 files changed, 0 insertions, 0 deletions