From 71c6f3167cfde0cdef70948e1964a0fcfce1f81a Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Mon, 12 Jun 2023 15:36:43 -0700 Subject: [PATCH] modules/mqnic: Request I2C mux kernel module when necessary Signed-off-by: Alex Forencich --- modules/mqnic/mqnic_board.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/mqnic/mqnic_board.c b/modules/mqnic/mqnic_board.c index 5b111b473..9eec454c6 100644 --- a/modules/mqnic/mqnic_board.c +++ b/modules/mqnic/mqnic_board.c @@ -458,6 +458,7 @@ static int mqnic_generic_board_init(struct mqnic_dev *mqnic) break; case MQNIC_BOARD_ID_DK_DEV_1SMX_H_A: + request_module("i2c_mux_pca954x"); request_module("at24"); // I2C adapter @@ -507,6 +508,7 @@ static int mqnic_generic_board_init(struct mqnic_dev *mqnic) break; case MQNIC_BOARD_ID_DK_DEV_AGF014EA: + request_module("i2c_mux_pca954x"); request_module("at24"); // I2C adapter @@ -564,6 +566,7 @@ static int mqnic_generic_board_init(struct mqnic_dev *mqnic) // AT24C16C U51 0x54 // TMP431C U52 0x4C + request_module("i2c_mux_pca954x"); request_module("at24"); // I2C adapter @@ -603,6 +606,7 @@ static int mqnic_generic_board_init(struct mqnic_dev *mqnic) // CH7: QSFP_3 // EEPROM 0x57 + request_module("i2c_mux_pca954x"); request_module("at24"); // I2C adapter @@ -676,6 +680,7 @@ static int mqnic_generic_board_init(struct mqnic_dev *mqnic) case MQNIC_BOARD_ID_NEXUS_K3P_S: case MQNIC_BOARD_ID_ADM_PCIE_9V3: + request_module("i2c_mux_pca954x"); request_module("at24"); // I2C adapter