Query regarding i2c-scmi not creating the right adapter
Dear Linux Kernel mailing list,
I have been trying to compile and load the i2c-scmi and i2c_piix4 in my system.
I am using a yocto kirkstone linux distribution. The overall project is to be able to read some voltages and temperature from the nuvoton chip nct7802.
I have set to build as modules the following driver in my yocto distribution.
CONFIG_I2C_PIIX4=m => enable i2c_piix4 module CONFIG_I2C_SCMI=m => enable i2c_scmi module CONFIG_SENSORS_NCT7802=m => enable the nuvoton chip driver nct7802
When I run my system with the new modules loaded and I scan all i2c busses (i2cdetect -l)
I do not see the SMBUS CMI adapter loaded in any of the i2c devices. This means the i2c_scmi driver failed to bring up the adapter.
Instead when I run on the same product an ubuntu distribution and I scan all the i2c bus with the same command I can see the following output on the i2c0
i2c-0 unknown SMBUS CMI adapter cmi N/A
.....
I have tried to add some printk messages on the i2c_scmi probe function but I do not see the printk messages on the dmesg output.
the smbus adapter is physically connected to the pci bus in my system as I can see it when I run the lspci command
Quoted 1 line
lspci -v -t
-[0000:00]-+-00.0 Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Root Complex
+-01.0 Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge +-01.1-[01]----00.0 Xilinx Corporation Device b03f +-01.3-[02]----00.0 Sandisk Corp Device 501a +-01.6-[03]----00.0 Intel Corporation I210 Gigabit Network Connection +-01.7-[04]----00.0 Intel Corporation I211 Gigabit Network Connection +-08.0 Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge +-08.1-[05]--+-00.0 Advanced Micro Devices, Inc. [AMD/ATI] Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series] | +-00.1 Advanced Micro Devices, Inc. [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP Audio Controller | +-00.2 Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor | +-00.3 Advanced Micro Devices, Inc. [AMD] Raven USB 3.1 | +-00.4 Advanced Micro Devices, Inc. [AMD] Raven USB 3.1 | +-00.5 Advanced Micro Devices, Inc. [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor | +-00.6 Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller | \-00.7 Advanced Micro Devices, Inc. [AMD] Raven/Raven2/Renoir Non-Sensor Fusion Hub KMDF driver +-08.2-[06]----00.0 Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode]
* +-14.0 Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller ->This is the SMBUS Controller adapter *
....
Do you have some suggestion to nail down where it can be the problem?
Many Thanks
Andrea