Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp864015lqh; Fri, 31 May 2024 22:42:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVCElq7raPWR7C9DTV7VtnsWxMLQH+ieJd6BVhcsQNMCVHA4Ch28I0kZP+1XzvdGx9XCTe7cOlCY0KwUBhdHkFAPBEQknQ7Q6EF7Deiow== X-Google-Smtp-Source: AGHT+IEfPIcVb8WSe5a/YGN5vY3PzKOstyBBCoX2UWczCjDl74W98VK3GiaZJFnGt58qnp3I3XnW X-Received: by 2002:a05:6808:198a:b0:3c9:6ee4:1f10 with SMTP id 5614622812f47-3d1e35bd43fmr4504041b6e.41.1717220558367; Fri, 31 May 2024 22:42:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717220558; cv=pass; d=google.com; s=arc-20160816; b=0f26SQtzHPXm7qa1RcuciCHkLKO1op9OfOEYAkYucI4yfpCXlu0FIKZ6pgRmRPDT9K LVYm0RbuzJt8WnYy+AHPAbZe7Ya9YDGihrLQ2Zsw9/xhr2pcFq/V27HSK84x/OAGMsX8 M3daIXH7ko9+2ykCex1iPFmmjB/aG6qMOwJ8AmxeQMgnRkyMSBKxTvIVjjXZ6zUKTkBk fEZ81EW5O+WeiWqXKixUdp+YF0DhvIewFy+cHyQUBKyDWkHCESosnOeZ78+Gp82j44bX liQkP7Df9ByMJg0HUpGXsQVUvMZTf6J/IK9Kx09Qi3rOhYxTjHMJtZMMDgydtE/nKoA4 dRIg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :sender:dkim-signature; bh=jrraCNuXD26zSLabfLklSY8vxDEbWSHlAupYO0xbewI=; fh=ygdvNNiMaOaGxNsx1Uwlul0eNCgf6BDU8PRkXSAnaFk=; b=cFMoOZOH9S1TyWaHANftbI+M0AeS5WiboAVTwmQl9XWrQunFnvGuXk8GJ4H5MAk3YK DyH70/TV5JZNxdNNim6JQ82jgIzd/JzTwvkGvGDZLw0T6aZ2DpG+MGH46tcEnyZfMRmF /iJV/c+3QvrjwBELlYrmwWLTB/LPkStrUzFkpFo/IWx3Vte4Kcni7iOP87ndSM4bjCqK GdUQIJZ1erh6fd4ouKc3PftGgTbV8oAl5/BxGAKcnxeQkb5c+Yr/35JViWZcfsVdE6Mw I3QNUeeSQ9hgeoLa350VGt8BI2ODf+DQVxQGbbHpZvrVfqj2k1vYQXJZb794DQ3LCp4O Hosg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="H2k/0D/d"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-197694-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197694-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6ae4b415132si36721476d6.362.2024.05.31.22.42.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 22:42:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197694-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="H2k/0D/d"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-197694-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197694-linux.lists.archive=gmail.com@vger.kernel.org" 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 087AA1C21D9C for ; Sat, 1 Jun 2024 05:42:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B3E7210A22; Sat, 1 Jun 2024 05:42:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="H2k/0D/d" Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4B2A0AD58; Sat, 1 Jun 2024 05:42:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717220549; cv=none; b=c83qaojhdJ3yloSy7+x5zbdK1IdMc3eKvOi+Kv1P8jxaknFQuCdR2IqE0nqOLvyWSfkXWIdk6BYTCMfRucjwYF7+ruyJ1CihdCa3ouBV1ubZzLDnMkoQRSCLBhYIDbqEt48PlfjOFXde/QN2aLBLZ1BBcj5dYD3APL2K1WtYJfQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717220549; c=relaxed/simple; bh=yjuDfddDC7JTFnetf1bGE6P7K3C2gfUsS56QzBWctok=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=VLsIVL4Tisf5Nz/r8tYgUb2p6kC7UOwtaQO8BRtyOKhoQFUVbY1Ky0IkmavmTDH1kjSnzxvG1WO57RUZWPrIdRIpwPQLQCvMyAeyXhP9wHMsO5ze5pIKCzQgDUSNwWejFJhBqDgJ1V5XMrAx0p3wXnvRz65HkUk3DACpuHUSYMw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=H2k/0D/d; arc=none smtp.client-ip=209.85.215.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-f176.google.com with SMTP id 41be03b00d2f7-6c4f3e0e3d2so905323a12.1; Fri, 31 May 2024 22:42:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717220547; x=1717825347; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:sender:from:to:cc:subject:date:message-id:reply-to; bh=jrraCNuXD26zSLabfLklSY8vxDEbWSHlAupYO0xbewI=; b=H2k/0D/dbBW8i6xP2aYY9Vbm5G3BGdbDjZxlYnv9dmvPy/a+MS+qMPVjcE380vcay0 SDhE4qK+KOep4g74NVp2c8lHDF4mjrEcMW1sZjvdAlWcobuYSf7fJji+EPzjUyO88ZxG jSzSrAo1KXBjSHIhjti/olANzWK6iO/KGV4fQSe9QZlTo7PZqnQJISATG/1q3ioQUNMk NVPf90v/ANmB2m7HVlobsJ+eBZyUcBKs90IA7aRC/QxzONSUW6F9Qhma1sxcuaFNZy3/ 3XmiiHlMphR0GUWMWcIrXlipjTMbDG+Pmj2ZNEzGhwRxAjljUIX97SIKq1GQEZ1eM4Ui wDqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717220547; x=1717825347; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=jrraCNuXD26zSLabfLklSY8vxDEbWSHlAupYO0xbewI=; b=bbQ9dcu+A0JPgH5xmqma1Hc5pIXz7j91ZgBFQFaNP7Lhl4u3ZdTxi3C63LRJUwCOF1 Obmi9cnmR3jZXcAPNdtMUH0Fsk68aZxSJ96jt4r8kbAsgNT7BIAnV7LJsh6vj1x4Lrq3 LbKOWZRUo/oBXpGeF4Khr6rDAp2T3Q/0IrhET7HkNvsQ+Sp4UTtEi03yd6i3Ls5KuW1J BALrIjrIFlXxLk93FVCCQGS3ykpyZ9vkeIR7++4aj6pNO/jKjj8FkTzRDR3LXm/dl9/s ySzQEHX5ywu3mXjIToEv81Mh3EBTFYQy/VNvWdeSI6dOgiwTupuSrHPDAE2w/JSNFyuo hQrQ== X-Forwarded-Encrypted: i=1; AJvYcCUQGzHc1TbOy8Zj/B0cYDe5IOxYVy36IHXU6sTlLwDQRxeat3FfOHeVvLTmxXwTkO/m+WVqlyp4v7bdTOJXatwqWda4z67pejLJVML4 X-Gm-Message-State: AOJu0YwVe5gxc75sHUFdJT1a0Wy8jAquNwNsvfU37IlYvaAwtxwPgSVM Qh2rf57FTi8YNn5QW+Nw9NpaSKQyVv5OJvB3ie2BQrl3kzFaIVHT6dOgOA== X-Received: by 2002:a05:6a21:9984:b0:1af:d228:ca5b with SMTP id adf61e73a8af0-1b26f117b47mr4869671637.21.1717220546992; Fri, 31 May 2024 22:42:26 -0700 (PDT) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2c1a77bb500sm4425340a91.49.2024.05.31.22.42.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 31 May 2024 22:42:26 -0700 (PDT) Sender: Guenter Roeck Message-ID: <4cc979c3-3ce0-4f31-b5d0-508e1af5fdf4@roeck-us.net> Date: Fri, 31 May 2024 22:42:24 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFT v3 4/4] hwmon: (spd5118) Add support for reading SPD data To: linux-hwmon@vger.kernel.org Cc: devicetree@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-kernel@vger.kernel.org, Armin Wolf , =?UTF-8?Q?Thomas_Wei=C3=9Fschuh?= , =?UTF-8?Q?Ren=C3=A9_Rebe?= , Wolfram Sang References: <20240531230556.1409532-1-linux@roeck-us.net> <20240531230556.1409532-5-linux@roeck-us.net> Content-Language: en-US From: Guenter Roeck Autocrypt: addr=linux@roeck-us.net; keydata= xsFNBE6H1WcBEACu6jIcw5kZ5dGeJ7E7B2uweQR/4FGxH10/H1O1+ApmcQ9i87XdZQiB9cpN RYHA7RCEK2dh6dDccykQk3bC90xXMPg+O3R+C/SkwcnUak1UZaeK/SwQbq/t0tkMzYDRxfJ7 nyFiKxUehbNF3r9qlJgPqONwX5vJy4/GvDHdddSCxV41P/ejsZ8PykxyJs98UWhF54tGRWFl 7i1xvaDB9lN5WTLRKSO7wICuLiSz5WZHXMkyF4d+/O5ll7yz/o/JxK5vO/sduYDIlFTvBZDh gzaEtNf5tQjsjG4io8E0Yq0ViobLkS2RTNZT8ICq/Jmvl0SpbHRvYwa2DhNsK0YjHFQBB0FX IdhdUEzNefcNcYvqigJpdICoP2e4yJSyflHFO4dr0OrdnGLe1Zi/8Xo/2+M1dSSEt196rXaC kwu2KgIgmkRBb3cp2vIBBIIowU8W3qC1+w+RdMUrZxKGWJ3juwcgveJlzMpMZNyM1jobSXZ0 VHGMNJ3MwXlrEFPXaYJgibcg6brM6wGfX/LBvc/haWw4yO24lT5eitm4UBdIy9pKkKmHHh7s jfZJkB5fWKVdoCv/omy6UyH6ykL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rj trjv82EZtrhLuLjHRCaG50OOm0hwPSk1J64R8O3HjSLdertmw7eyAYOo4RuWJguYMg5DRnBk WkRwrSuCn7UG+qVWZeKEsFKFOkynOs3pVbcbq1pxbhk3TRWCGRU5JolI4ohy/7JV1TVbjiDI HP/aVnm6NC8of26P40Pg8EdAhajZnHHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= In-Reply-To: <20240531230556.1409532-5-linux@roeck-us.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 5/31/24 16:05, Guenter Roeck wrote: > Add support for reading SPD NVRAM data from SPD5118 (Jedec JESD300) > compliant memory modules. NVRAM write operation is not supported. > > Signed-off-by: Guenter Roeck > --- > v3: New patch > > RFT: I'd like to get some more test coverage before moving forward > with this patch. decode-dimms doesn't recognize the 'spd5118' > driver. > Looking for feedback: [ ... ] > + > + nvmem = devm_nvmem_register(dev, &nvmem_config); This returns ERR_PTR(-EOPNOTSUPP) if CONFIG_NVRAM=n. We have two options: - Ignore -EOPNOTSUPP and continue registering the hwmon device or - Add select NVRAM select NVRAM_SYSFS to the driver's Kconfig entry. Any preferences ? Thanks, Guenter