Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1398100rdb; Wed, 24 Jan 2024 14:11:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IHsWXr2NpezobbmapXzG7IKF7J53Mgl69u30jew5uBIQIZXLPaAPl18u//y45j3uH0IgY0K X-Received: by 2002:a05:6a00:8d97:b0:6da:c8b7:d9e3 with SMTP id im23-20020a056a008d9700b006dac8b7d9e3mr208786pfb.55.1706134299478; Wed, 24 Jan 2024 14:11:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706134299; cv=pass; d=google.com; s=arc-20160816; b=GdEdkmjGKitWwYzJ9nbGBpWSx98Kur+1U11o3waqisVVMZWUCC30o5FlB52YlJIJkH z7Y0L7/neZeyBOhx8oaFQmAyIPNbQ12tFvXe9K2uUvbphnb6hohD3NzMD2sddizE4BPp 89/Y6R7Do5feMjwHJdmVr8tddh3L9Bm7i8vSmI5rxEdvpY9Yk785V3qGiGXJtxQt3QG4 NoM80SMkld4X3fviKGVrw6efteR8XgKHq6mP5/T8fnmJXGf3f5NiDpeQIlUP+TikeKoz PBnDuQ3hTMzpqbU9y/vMpoLIqYbUiRFr3RcejMtYmrtAQKhaqfD1DA7pAlYnJV4OZ7uB bsbA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=snqluUj8YXe23n5Y2Bps+oBqaBBXlWni7cujNtHcNQk=; fh=oAwvvGnGyJC5EulMpipTvVq8zetXMQMzeQcM2qVLKlk=; b=Rvj1bOjRyW/SYJ8HszeZ9M/6Eit8cpJxJk5JNlMvSfqc3BQySRQFU6dA79pS8QbG7E BS4B39UM3XcbkdODDz5IZ6prf24mNEaH8duMgWuV9DxV2ViHdf0s99Gnoilrjewj4SR8 IbzxAvgW/zIFeyZszUkaR2xtgPwmIbKZ8QNGEhQApA6Lzj4C3dlpiTu9ql9YMvyBUoWb i4ukMuFL2d2agr1ebetRbbKK24GVgvoY6FXikd0JxrcE+DiAkmRjmep8XjamslHUJp9a Yq6MSIWV9p6KDdyz7e9dApOUW4PGK3nviVQZUE5sfMyKr9ystEXASGgic4hPgUEql7cI /+5g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=hVQ8yHbJ; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-37729-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37729-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id h12-20020a65404c000000b005cdec52cdddsi3304594pgp.837.2024.01.24.14.11.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 14:11:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-37729-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=@bootlin.com header.s=gm1 header.b=hVQ8yHbJ; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-37729-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37729-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 26FCB283672 for ; Wed, 24 Jan 2024 22:11:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EEF2A135A46; Wed, 24 Jan 2024 22:11:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="hVQ8yHbJ" Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) (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 DCA3F135A42 for ; Wed, 24 Jan 2024 22:11:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706134287; cv=none; b=VQV2ud1tgRt6xkg8jkHAZeJpS89VIQMIMSAS2lHVEWZ4SXXWqchc3V1lv4Nle63DLNizDhsfnpSUVORZVJq4OmtDuXXL73anyg9gw9eu/77m/CvzAjPJUm+z7oVXeWfWW4hHXjnDQzcSiF7YHb7KZ4b27de1hI3vLd878rmVLFw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706134287; c=relaxed/simple; bh=snqluUj8YXe23n5Y2Bps+oBqaBBXlWni7cujNtHcNQk=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=K53p2blvrxbyMLYq19L8aEmHVWfKgqwBiaI8xfFcaEVNQSz9/iipA0w62/KrWZwgD3qxg/Pgdx/fC8xqCjkdleR+BZi1Hg2djtFZeeVAA+KttuXeznFjqzRqftGpum1GrHTv5430/Bli9UuMb2smhz9N8Z4HM5RRnOAiy2UeJYY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=hVQ8yHbJ; arc=none smtp.client-ip=217.70.183.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 99E1B40002; Wed, 24 Jan 2024 22:11:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1706134283; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=snqluUj8YXe23n5Y2Bps+oBqaBBXlWni7cujNtHcNQk=; b=hVQ8yHbJQMOoWV/QXsWrhrKOpEp7VHXGeWww4Y4+q217L3mfMDc8Gp5FmdePqAwQ5HDwP4 zghkCy0qctP0EdVP48tXWDUizvlsb/aeRQ/bMSqRof5L0tyBaIirqUSLxAhkP/WinTH4XY KENWw1sHbjmgMSARqalQLDmjx1xCfvkeblb3WUbZAqNhbcINlnndIO7aaeEsVFDgna3i88 wYIjx0cdy7sLVpRPZ+oRnVCKG/f7SoMOOyhc8x7v8VIQheMJ0pm4FdlvAA0ptJ4T9LZeGz iz9RTBH/H8x+nQpM9klnFlPyGM77wL6JqJ3FtXrgz37Bx+JKIOQQx46IQexYFw== Date: Wed, 24 Jan 2024 23:11:20 +0100 From: Miquel Raynal To: "Arnd Bergmann" Cc: "Arnd Bergmann" , "Srinivas Kandagatla" , regressions@lists.linux.dev, =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= , "Chen-Yu Tsai" , "Greg Kroah-Hartman" , asahi@lists.linux.dev, "Sven Peter" , "Michael Walle" , linux-kernel@vger.kernel.org Subject: Re: [PATCH] nvmem: include bit index in cell sysfs file name Message-ID: <20240124231120.562f06f3@xps-13> In-Reply-To: <1d13250c-e48b-4e31-b449-5b54837a0d40@app.fastmail.com> References: <20240122153442.7250-1-arnd@kernel.org> <20240124182256.776c164b@xps-13> <1d13250c-e48b-4e31-b449-5b54837a0d40@app.fastmail.com> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) 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=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: miquel.raynal@bootlin.com Hi Arnd, arnd@arndb.de wrote on Wed, 24 Jan 2024 20:49:53 +0100: > On Wed, Jan 24, 2024, at 18:22, Miquel Raynal wrote: > > arnd@kernel.org wrote on Mon, 22 Jan 2024 16:34:10 +0100: > > =20 > >> From: Arnd Bergmann > >>=20 > >>=20 > >> As far as I can tell, this is a problem for any device with multiple c= ells on > >> different bits of the same address. Avoid the issue by changing the fi= le name > >> to include the first bit number. =20 > > > > There is only one bit number right? We are talking about byte offsets > > so this value can only range from 0 to 7? If we understand each other > > correctly then why not, I'm fine with the extra ",0" thing. =20 >=20 > On the Apple M1, the nvmem registers are 32 bit wide, so the > bit numbers can go up to 31. I can imagine some system using > 64-bit registers, but it's unlikely to be higher than that. In this case we will soon or later have a problem again. Can we include the full offset of the bit and not just the first digit? Thanks, Miqu=C3=A8l