i2c: smbus: add DDR support for SPD
authorCorentin Labbe <clabbe@baylibre.com>
Mon, 14 Nov 2022 11:56:06 +0000 (11:56 +0000)
committerWolfram Sang <wsa@kernel.org>
Thu, 1 Dec 2022 22:39:02 +0000 (23:39 +0100)
commit3d50b95b50db36de945bfc34d4d94b7e11ee8fd9
tree0927f81ad65d31a4da347c1c9c56f1517b31bcf3
parente0c7800a5530a598778f5b8c9fca570949817a9f
i2c: smbus: add DDR support for SPD

On my x05 laptop I got:
Memory type 0x12 not supported yet, not instantiating SPD

Adding the 0x12 case lead to a successful instantiated SPD AT24 EEPROM.
i801_smbus 0000:00:1f.3: SMBus using polling
i2c i2c-6: 2/2 memory slots populated (from DMI)
at24 6-0050: 256 byte spd EEPROM, read-only
i2c i2c-6: Successfully instantiated SPD at 0x50
at24 6-0051: 256 byte spd EEPROM, read-only

And then, I decoded it successfully via decode-dimms.

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/i2c-smbus.c