lkml.org 
[lkml]   [2019]   [Nov]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 4/4 v2] i2c: i801: Instantiate SPD EEPROMs automatically
Call the function to instantiate SPD EEPROMs automatically on the
main SMBus controller.

Multiplexed SMBus systems are excluded for now as they are more
complex to handle.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
---
Changes since v1:
* Fixed build error reported by kbuild test robot

drivers/i2c/busses/i2c-i801.c | 6 ++++++
1 file changed, 6 insertions(+)

--- linux-5.4-rc7.orig/drivers/i2c/busses/i2c-i801.c 2019-11-18 10:21:39.688372006 +0100
+++ linux-5.4-rc7/drivers/i2c/busses/i2c-i801.c 2019-11-18 10:21:41.928402933 +0100
@@ -1320,6 +1320,12 @@ static void i801_probe_optional_slaves(s

if (is_dell_system_with_lis3lv02d())
register_dell_lis3lv02d_i2c_device(priv);
+
+ /* Instantiate SPD EEPROMs unless the SMBus is multiplexed */
+#if IS_ENABLED(CONFIG_I2C_MUX_GPIO)
+ if (!priv->mux_drvdata)
+#endif
+ i2c_register_spd(&priv->adapter);
}
#else
static void __init input_apanel_init(void) {}
--
Jean Delvare
SUSE L3 Support

\
 
 \ /
  Last update: 2019-11-18 10:28    [W:0.035 / U:0.860 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site