Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1337537rdb; Wed, 24 Jan 2024 11:50:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IGel71u23ByFErvUbGSyPdYyqo2jv8Qzp5b5Y1c+TQJouw/dZ/BD6AMz1ICto0BuuSxAI4W X-Received: by 2002:a17:90b:1105:b0:290:ce4e:143c with SMTP id gi5-20020a17090b110500b00290ce4e143cmr49933pjb.78.1706125822730; Wed, 24 Jan 2024 11:50:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706125822; cv=pass; d=google.com; s=arc-20160816; b=Ucm3VANoSOdySqrPEBzHzfBznihF3fJ2EF/IfuflDjcWVZ+wRUL6+w+5DqsDcE1U6D K0TJBUmhzRxyVExBmJxYQoZ1kywX3WaiTT+37GESe7t2gxrL86Qnxn+mK+bxWr7WNBqC z0ZMXLIITOwmWgt3eoUxFh5Oz6aeHujsWP+G3YB/Bl21XgabIOkQ0YI4vdavY6I0OCkP rEm/TUigFzn8TZBt4AbNXZpSyjhtFF4Xxsm+7LDsSyGvM354z5ScUQITKFD9KFYQR/4x dswpXwlEdYfxxdbNsCNmtzD7YqE7s/jricrf+KCP42cPgQjSxvhaNa3wDwmHEfqeF+2x VMjA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:cc:to:from:date:references:in-reply-to:message-id :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:feedback-id:dkim-signature:dkim-signature; bh=t8KZ2K9xpyMdqQzXZl3cy8YA1hW8Qqq39th4gk28VV4=; fh=BHFWF1PnqCGZt9808FETkhDcCkFyH8Lc95X9KNzfWmQ=; b=ZnkFjNj4oTuJbeWI/DAiZGAilf4YN0YgQPXOt9xpk7tkhaoL4EW62CAxZycy2VH1lJ y6Gfj/hpCh/1h92GYNqh3RqV3sZgj2hQwuT16Z7/wG/+29qpxEt1ofXLUnw9km2G2hiv Lyu+f4KGADcwAy2/kuJ8tezU0IRB4LeqzKBcBS1IAg7oN0J9n4MKLQ0usSNhLN4klr8g IAYi5PGlID1lVQnoZgnEZ/lJezpp8iUSK4srh/xHuhcxq26lxb6ptvB8IhN1mf7V0U60 9vdamAHyqptBm1r+p1yN3v0ShdmgB2WkmVcBoj0NbX84XLzAUWD2vjnny39rasyCGRvg aw4w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=SNWO6MUI; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=bDmgc05Y; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-37610-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37610-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.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 lj2-20020a17090b344200b0029092ac17e1si33088pjb.145.2024.01.24.11.50.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 11:50:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-37610-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=@arndb.de header.s=fm2 header.b=SNWO6MUI; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=bDmgc05Y; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-37610-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37610-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.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 61359287475 for ; Wed, 24 Jan 2024 19:50:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8F0C3133411; Wed, 24 Jan 2024 19:50:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="SNWO6MUI"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="bDmgc05Y" Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) (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 E4301133402 for ; Wed, 24 Jan 2024 19:50:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706125817; cv=none; b=M3gQH2WK8SfpY1Sznh0nGXiQ/mhRN+3sb8VQuRlLKfddwGZq3SeJ37RI3YZregYGNIuBVs1TOD1+t19kZ7rD4b4ie45gkxzWZWNmgEubppRBkVGrDnKswFBz54Cra0zYpn5sW6VHKhhCKqH9pbt3FB3JEaTBjPMoDaA+El6lNjA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706125817; c=relaxed/simple; bh=CbtLl/Wg+eaH8tLoD2vQmgrib77A8xHj01iKkwH6gac=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=dpxbsdhB0ezyIiPYTxeb/FFsSX7FZ2yHPLe8BT7AV5kkRb+z5G/Xngt/C3YJ2aQNumGumioTCEYmRK+cDlFFH2OJr2yppcUO65GOLIrKzXE9IV60OCxEhk/Rnrb1e81CXf2xZYDQJA4l2W4e3AcED2zUSxZ/t0ch3nbWMKY0DRY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=SNWO6MUI; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=bDmgc05Y; arc=none smtp.client-ip=64.147.123.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 3AF7F3200B19; Wed, 24 Jan 2024 14:50:14 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Wed, 24 Jan 2024 14:50:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1706125813; x=1706212213; bh=t8KZ2K9xpy MdqQzXZl3cy8YA1hW8Qqq39th4gk28VV4=; b=SNWO6MUIhch111VGvlDZIkl0zj lPLNm6cm4te26M4IzgCLii6fYgW1aH1/15RASbewdhti7mOaviezW04gkvJ7oKE1 jmmOCzCULYf/IJkTUTuEzIPmWCSS7+WQG6y/fe5a/J1T7N47llwvmlloJJRMd10f rgVFQtqjPz+crGhjUBBDi1Otqn01FcsW0lN6RIliiknWEvYKJs6NjScr29D7yCyl GTVKSwaEE7SXZqIqLrV2n8Xip/lPsdqUj5tMIlTwmmzTz6kH/jpPRZ4+EmJ1+vO/ cnBqVLoedEGXE6FvOfp9RWeW+SleIy/qUx23/w1IKX+jdV1GYYhfRSCMQRkQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1706125813; x=1706212213; bh=t8KZ2K9xpyMdqQzXZl3cy8YA1hW8 Qqq39th4gk28VV4=; b=bDmgc05Yy/8VyShT11736bEQ+Pk3eQqA2Aw0mAkNzKhk 2oROdZ/REnJvF3tP7M0/3ub5PJ/8x6mc/Ny3+JsZHbpPa23z91H1kb5UDT0jrSSY oWVgy1yhLih3JY+qSTtJokTyabHKqIrdt1Tq5rUnlGV2C4fDI7n8bqgtF5gkeLOY 5b7sR4fUY07AS52nEII+kMnoEEBWINR9Vw7K2NI34HY9TGBrS8AlVpVPo+kODvfq l7img+kQumncM5oteN84EDpmYM6zpivEcNBivvqa79iNs1NdsRpC2lkawskkKa+K hPDlHS4jqtP8sESMqP6ujhxA930Ei1c+rGgPYXpbOQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdeluddguddvjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeffheeugeetiefhgeethfejgfdtuefggeejleehjeeutefhfeeggefhkedt keetffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 3CD28B6008F; Wed, 24 Jan 2024 14:50:13 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-119-ga8b98d1bd8-fm-20240108.001-ga8b98d1b Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <1d13250c-e48b-4e31-b449-5b54837a0d40@app.fastmail.com> In-Reply-To: <20240124182256.776c164b@xps-13> References: <20240122153442.7250-1-arnd@kernel.org> <20240124182256.776c164b@xps-13> Date: Wed, 24 Jan 2024 20:49:53 +0100 From: "Arnd Bergmann" To: "Miquel Raynal" , "Arnd Bergmann" Cc: "Srinivas Kandagatla" , regressions@lists.linux.dev, =?UTF-8?Q?Rafa=C5=82_Mi=C5=82ecki?= , "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 Content-Type: text/plain On Wed, Jan 24, 2024, at 18:22, Miquel Raynal wrote: > arnd@kernel.org wrote on Mon, 22 Jan 2024 16:34:10 +0100: > >> From: Arnd Bergmann >> >> >> As far as I can tell, this is a problem for any device with multiple cells on >> different bits of the same address. Avoid the issue by changing the file name >> to include the first bit number. > > 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. 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. Arnd