Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp995525rbb; Sun, 25 Feb 2024 14:13:10 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW3TnDy8JYDcrhaz1YJ24+eVVbPjO+eE2PjfegH+XJ9hmn8Q6hraBk8otoHZUXr89jsZmGGoFe2s9wb88g/3kLem0Hsz9x3SGsiRxtviQ== X-Google-Smtp-Source: AGHT+IGFYDx29jPXpiIu/IFymfaJxCaW7NnZW7CFlJPT3WEXnYqw2fDjMGovwKlAqtnkeJ7h1S6L X-Received: by 2002:a9d:7490:0:b0:6e4:7bbb:f3ae with SMTP id t16-20020a9d7490000000b006e47bbbf3aemr5642726otk.4.1708899190485; Sun, 25 Feb 2024 14:13:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708899190; cv=pass; d=google.com; s=arc-20160816; b=wd8PZYAKHApMbcv+FUMOeBt4B5d4FfNg77a9F9Zo7hiaZo6/Sby0ds/z5nm1mHniKt d6HT+Ngg61jDhIKesoUZFt4xKKEwfvAor16x3OucyRgfiVemXmqoIQnSuCmkST+Qzkbz yzljMTpYe45pTPUGJaDv/B5XZxGkD9WaHXZEfYbVnjhg7CdUaZ9Sd6FZt8SdBornRWlJ cPs71VcRLLh91Y8UwVelMdbm7QT8eo2C1v6sBF0WDJ/Lul6AL+paNFJs5XmGMUaq9747 kmdyiLkJBsUDWoZg5BtzOzId7ixrsEAuVTLuuYGYP5TmJCJj+d8p1+kW5OCBpfAwy4j7 Gm0w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=thread-index:thread-topic:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject :references:in-reply-to:message-id:cc:to:from:date; bh=R3PowNmV6z7V5+4rKOYfRZaysNd/F1B+PjegZMDewpo=; fh=ZaieLCCGTUL4HiSFcfjh41FOPu18335KQVeZCtlGV6g=; b=E1tjOJ80XcNlSUWTcNp7NCzWVKx5/ud27L5VdOuw1g2xjolqj08CBb/JdqDc+ghv4m yCF1LLVt28hbGOAbGdJfOwaJB2uPKqwft1gB57IOWM10M81WOLHtuqz16NG4to+cTpwH YmOVrN1x3yxQ5jC5Lo39I1lkbzTWVxOFZtbgx+mVQEWnp+AhnqI1SBp5CJ0/4PUQy6YV eb+qFGmaDN0EBzj3/27ID4SV9BLtddgQsF2gvx8oTKanuQ8n1XxE6BwcxK5zrYbnEaiD J7/mOtnGUMAWiA2MY/HZfeQO+rh8s3VuEZGUhfFVxbkx2sgUr/HBGjP9DaDAlvoLWvEM iAuQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-80319-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80319-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c4-20020ac86604000000b0042e5ce97b2esi3594136qtp.793.2024.02.25.14.13.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 14:13:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-80319-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-80319-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80319-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 3CC501C20A13 for ; Sun, 25 Feb 2024 22:13:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BC1F11BC35; Sun, 25 Feb 2024 22:13:01 +0000 (UTC) Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) (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 0C44D1B959; Sun, 25 Feb 2024 22:12:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.201.40.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708899181; cv=none; b=ZtkDHX+KVC4Gknr9sD5+V6nnk96c4/cmKtBXMZIynd8zBdVWdG0A9SLBgFINumBKK9JRiOHK/9v9y3+nVAyQkf/2IcRWhAB5/lW3448MNBGSMuvKb7NKgl2NPncgRCfDk2TCyGhhvzIXe52MeQhYGf+h/QPrKuHJZ3gNzBLOnwU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708899181; c=relaxed/simple; bh=R3PowNmV6z7V5+4rKOYfRZaysNd/F1B+PjegZMDewpo=; h=Date:From:To:Cc:Message-ID:In-Reply-To:References:Subject: MIME-Version:Content-Type; b=tRGSyCM0JSzhMpXG+o5D8ZAM0jbg5cXhmCH0mRCZErJAqLRGHf7rJLHSdfjhQTWB/+d9XvxqsECw9c9U1Wr7eDS7Ar0Wqbr0DL1WZDHIsN/kYyYVf2DgxJHdZYts2SW/MwAXZKjFk3++m2Ef3UQT0SsuEFcucrUoGIF6jGoTm+E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nod.at; spf=fail smtp.mailfrom=nod.at; arc=none smtp.client-ip=195.201.40.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nod.at Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nod.at Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 7FFD36342D4C; Sun, 25 Feb 2024 23:12:55 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id ZLfvZ-sQLlLK; Sun, 25 Feb 2024 23:12:54 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id A73D46340E18; Sun, 25 Feb 2024 23:12:54 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id DkOwGdRYt7b1; Sun, 25 Feb 2024 23:12:54 +0100 (CET) Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lithops.sigma-star.at (Postfix) with ESMTP id 7DB686343B4B; Sun, 25 Feb 2024 23:12:54 +0100 (CET) Date: Sun, 25 Feb 2024 23:12:54 +0100 (CET) From: Richard Weinberger To: Miquel Raynal , Daniel Golle Cc: Vignesh Raghavendra , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-mtd , devicetree , linux-kernel Message-ID: <1209094181.98490.1708899174329.JavaMail.zimbra@nod.at> In-Reply-To: <20240219120156.383a1427@xps-13> References: <82ceb13954f7e701bf47c112333e7b15a57fc360.1702952891.git.daniel@makrotopia.org> <20240219120156.383a1427@xps-13> Subject: Re: [PATCH v7 7/7] mtd: ubi: provide NVMEM layer over UBI volumes 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-Mailer: Zimbra 8.8.12_GA_3807 (ZimbraWebClient - FF97 (Linux)/8.8.12_GA_3809) Thread-Topic: provide NVMEM layer over UBI volumes Thread-Index: LhVCT6G++U013VIiCZmvxnpZEu2GqQ== ----- Urspr=C3=BCngliche Mail ----- > Von: "Miquel Raynal" > An: "Daniel Golle" > CC: "richard" , "Vignesh Raghavendra" , = "Rob Herring" , "Krzysztof > Kozlowski" , "Conor Dooley" , "linux-mtd" > , "devicetree" , "linux-kernel" > > Gesendet: Montag, 19. Februar 2024 12:01:56 > Betreff: Re: [PATCH v7 7/7] mtd: ubi: provide NVMEM layer over UBI volume= s > Hi Daniel, >=20 > daniel@makrotopia.org wrote on Tue, 19 Dec 2023 02:33:48 +0000: >=20 >> In an ideal world we would like UBI to be used where ever possible on a >> NAND chip. And with UBI support in ARM Trusted Firmware and U-Boot it >> is possible to achieve an (almost-)all-UBI flash layout. Hence the need >> for a way to also use UBI volumes to store board-level constants, such >> as MAC addresses and calibration data of wireless interfaces. >>=20 >> Add UBI volume NVMEM driver module exposing UBI volumes as NVMEM >> providers. Allow UBI devices to have a "volumes" firmware subnode with >> volumes which may be compatible with "nvmem-cells". >> Access to UBI volumes via the NVMEM interface at this point is >> read-only, and it is slow, opening and closing the UBI volume for each >> access due to limitations of the NVMEM provider API. >=20 > I don't feel qualified enough to review the other patches, however this > one looks good to me. Finally(!), I had enough time to look. Thanks for addressing all my comments form the previous series. Patches applied. I have only one tiny request, can you share the lockdep spalt you encountered in ubi_notify_add() regarding mtd_table_mutex and ubi_devices_mutex? The solutions looks okay to me, but if you have more details that would be great. Thanks, //richard