Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp326312lqh; Fri, 31 May 2024 02:32:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUL8ChRZ+8ov9QLUBYtVKx6fAVQb0tU4b5wO5ykTW3G+tCVVNNCZttjytMHo9fYEJOT/U8nzHYSNf1+WfgMswETbtTLcWtYXMIbb8UkVA== X-Google-Smtp-Source: AGHT+IEXJhzYm2hbodys54nIQW0cRt7z9DTY9yz4hd+DdTwVoPp7MhNfvGA0WIe5oymPVKjKhI+J X-Received: by 2002:a17:902:d4cd:b0:1f3:450c:6a23 with SMTP id d9443c01a7336-1f637018a9dmr15259905ad.17.1717147925295; Fri, 31 May 2024 02:32:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717147925; cv=pass; d=google.com; s=arc-20160816; b=s/yHf/YOvym0CiVyES9QGFZPTYlLAG01te2uV0w6pxgPD6teApmGOuwMsmOYzlZgrl eddL9XpOfd4IcRYBM5MMcSytvMa00Y/aEawwQ9vac4rnYXqULxJZFia42xaKBnUjtj6j 0SDX+P5ZO4thhoVii4vxAjzbGIjbhyGQj5w27ZG1AsFqvYUyvux6QBThSA5n+8/E8szU GNLYgTF4MrE67ufwAiBZYxZRpB2iBgrqB3W8yJnD93ZYtAfBif85axP3TapGUtg6+ulV d02Z1aX5LSUsS2O5A7Suc7y8598QwfXGo9jRg+0sOUBWsWLrYWb9sVCoucWqIGPlaPdG GWPw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=2PNksbt2OackXWbhUbTpgBZ408eTAh1ikJ4ZesocWuA=; fh=9qFKlQHnevDYoWhe53H9RyyL76BSeUyH5C9Z519y6Ig=; b=jpGPuomhzD9zb4DjpqCUUeMJHkaHFTn1GIsSJqPcfEfclUHhxfQRy8IFP3RhrmU7YG sZO8i1CCst1eymjXy+axZgCb6hJlSw9XiZSp80HvFbgnnJKEqX9FZnOYA1ts8VS0AJlC q1xz4CH6XPKO5VWN22UUnkf3XArqeleh6h9yU8WzgJm0AYebI+uuV16eVfjsAcmXk/if IR6F7/IvsMiyUqfENPgwnlWUQNhmrW3bQhODBxoWTwKF+33sF8PPYjhbXREPXlGk6P8U uWUHAePGjtRtX8LtpCBtX/pOtmo6Crp9x3YB5yGyLOcTlPHGRyg+wYgha5H2LYn55/0U MYfA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@t-8ch.de header.s=mail header.b=MvOptH8Y; arc=pass (i=1 spf=pass spfdomain=t-8ch.de dkim=pass dkdomain=t-8ch.de dmarc=pass fromdomain=t-8ch.de); spf=pass (google.com: domain of linux-kernel+bounces-195874-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195874-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=t-8ch.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f6324173e2si12774635ad.583.2024.05.31.02.32.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 02:32:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195874-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@t-8ch.de header.s=mail header.b=MvOptH8Y; arc=pass (i=1 spf=pass spfdomain=t-8ch.de dkim=pass dkdomain=t-8ch.de dmarc=pass fromdomain=t-8ch.de); spf=pass (google.com: domain of linux-kernel+bounces-195874-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195874-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=t-8ch.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C195828465E for ; Thu, 30 May 2024 20:23:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6850F158A26; Thu, 30 May 2024 20:20:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=t-8ch.de header.i=@t-8ch.de header.b="MvOptH8Y" Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 498EC142E8C; Thu, 30 May 2024 20:20:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717100442; cv=none; b=kBIPHTFWY9J0Jh3/AZwIffrWoEYmOabN7jwS8McEIrygmADZjaE94iFnFLwfozheXQETD+w7EvG9RkGuWUMnTOyt5k+XWAszSB9JrXqmeUjej++Xl9MTUExlyksa7BXBZ0hU0LAqamGpYP5Hf/7+1uAW+wi2bX4ObK9a0q22iRM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717100442; c=relaxed/simple; bh=y6fti8cQCakDlZoQdI4Hnd2ga5rtZg6++Y1ecr+x4PU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=q9fzLU2pAv/1PtfnYgDCqcD3bR1zhyAhy+NFfa4bJ8R+id/TbHdmMQ4jGSc+Mh2oSqi3eAyel+Ght4+E3ceb38jBgY5u0Em/+FCU/LS/lE1xxQ3cPUKoPOtZqRaOgD61HCvhRt+mtf8zBGS8KCInzLMg9wCS034be1a1JYX/EUQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=t-8ch.de; spf=pass smtp.mailfrom=t-8ch.de; dkim=pass (1024-bit key) header.d=t-8ch.de header.i=@t-8ch.de header.b=MvOptH8Y; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=t-8ch.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=t-8ch.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=t-8ch.de; s=mail; t=1717100438; bh=y6fti8cQCakDlZoQdI4Hnd2ga5rtZg6++Y1ecr+x4PU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MvOptH8Yqs4v/aeQheehKOxAxA07XHqfhsvNCkHuG/vo86HD8kurE7pOCG9q3d1Cz GdVUoduzH6sbBi1ZnZnONzBCCqM4U3FoYVc7Q4NQtZ5eyTPqeguNSYwZWUDFhnOtiC aIshfFYXvxO9FjyJnWzQiK75owXNNCIr6LrbzxeE= Date: Thu, 30 May 2024 22:20:37 +0200 From: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= To: Guenter Roeck Cc: linux-hwmon@vger.kernel.org, Hristo Venev , =?utf-8?B?UmVuw6k=?= Rebe , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Radu Sabau Subject: Re: [PATCH 2/3] hwmon: Add support for SPD5118 compliant temperature sensors Message-ID: <34a4292e-c4db-4b40-822e-b892e1444045@t-8ch.de> References: <20240529205204.81208-1-linux@roeck-us.net> <20240529205204.81208-3-linux@roeck-us.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240529205204.81208-3-linux@roeck-us.net> On 2024-05-29 13:52:03+0000, Guenter Roeck wrote: > Add support for SPD5118 (Jedec JESD300-5B.01) compliant temperature > sensors. Such sensors are typically found on DDR5 memory modules. I can get the module to automatically probe with this change: diff --git a/drivers/i2c/i2c-smbus.c b/drivers/i2c/i2c-smbus.c index 97f338b123b1..8d9218f755d7 100644 --- a/drivers/i2c/i2c-smbus.c +++ b/drivers/i2c/i2c-smbus.c @@ -382,6 +386,10 @@ void i2c_register_spd(struct i2c_adapter *adap) case 0x1E: /* LPDDR4 */ name = "ee1004"; break; + case 0x22: /* DDR5 */ + case 0x23: /* LPDDR5 */ + name = "spd5118"; + break; default: dev_info(&adap->dev, "Memory type 0x%02x not supported yet, not instantiating SPD\n", (Credits go to Paul Menzel [0]) Maybe you can add that to your series. To also work with my PIIX4 I2C bus, I also need: diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig index fe6e8a1bb607..ff66e883b348 100644 --- a/drivers/i2c/busses/Kconfig +++ b/drivers/i2c/busses/Kconfig @@ -195,6 +195,7 @@ config I2C_ISMT config I2C_PIIX4 tristate "Intel PIIX4 and compatible (ATI/AMD/Serverworks/Broadcom/SMSC)" depends on PCI && HAS_IOPORT + select I2C_SMBUS help If you say yes to this option, support will be included for the Intel PIIX4 family of mainboard I2C interfaces. Specifically, the following diff --git a/drivers/i2c/busses/i2c-piix4.c b/drivers/i2c/busses/i2c-piix4.c index 6a0392172b2f..f8d81f8c0cb3 100644 --- a/drivers/i2c/busses/i2c-piix4.c +++ b/drivers/i2c/busses/i2c-piix4.c @@ -29,6 +29,7 @@ #include #include #include +#include #include #include #include @@ -982,6 +983,8 @@ static int piix4_add_adapter(struct pci_dev *dev, unsigned short smba, return retval; } + i2c_register_spd(adap); + *padap = adap; return 0; } Though I guess it's not the right place to call i2c_register_sdp(), I'll look at it some more and then submit it. [0] https://lore.kernel.org/lkml/20240530183444.9312-2-pmenzel@molgen.mpg.de/