Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp69509lql; Sun, 10 Mar 2024 14:26:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUXXSjGNLF3g6Let5s9g2LJUxwpI0Pcmi0De0WzCO9xd27ym+fsE2HmoE6+MoN8/QGr1J01a05105codLsLEZrgKe1gTFJuaFhchzgEMg== X-Google-Smtp-Source: AGHT+IEyCS6/t/F8UaY4mI7wcaCEaphPpjcNEJthevSFcvrV3NN7V5w6ofFsUa1lWmmnjydsVkKN X-Received: by 2002:a50:d4cb:0:b0:566:ab45:e6c5 with SMTP id e11-20020a50d4cb000000b00566ab45e6c5mr3496112edj.28.1710106012491; Sun, 10 Mar 2024 14:26:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710106012; cv=pass; d=google.com; s=arc-20160816; b=DKXStn0NNsEx4RppHWdNM4wcXTQK3usLLYRSapPx9tRYGfm1mh1kHHICv3k2lgIsXF TkCk9ds3ayel9Q7SaDhjVzd/ga5/ozcEyei7GdZabNw328HZWvSfnQCZhKJtjlwSC2qb 8DT204nQk6m4/M5jF9QZl4SnNAnhThUL0troDfShHg1zKwdS2NFTswJQlS7WFuXmNh2q zmrkkMVC7U0GMPn8lXY+KnJ2G0Xzy7cvt6PEMWhxA6P4leiAL+2YfG78Ma8sqGGHaRm6 +iKUkOwSdUtdCWBqieTApnMat+KKA+0x8Z9ev7re61pEPI6rdo4i156tdxROJbh4iGZ/ Rquw== 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=jh0Bg9u2cEU/kuFQ89GZ8ssWpyF6wQ3Yl8hM4/OfJ3Q=; fh=ljv6yr5mqhC4Xo54p/sWsBhQ4XtXDAxq6y4cwfbL5oQ=; b=rB2vf7NJg9chqUZX5HO5pwuKKViIKji7DNJGfKtNn49iwwLRyGTDuk5/VX3X6KzZGl 05Ayk8KdCFPmP2MrQ2R5XcqlLmBhW6l+nsbsZ9V2tncHocYBh9tbXX+dR7bixfA32K4k iTI55RRD6qMKQJao3POPs7yQmEK7MPaJ6UYO/Ei1suHMXe0OE4i2gJn7vksjTWwwoOqa jky0l8L/947llRnXlPvtVfuNOlU1uCTTbGL+ORq+BwIyLyZptERdwLNmsyuN6WNJa/b7 MLbp1alo3ZqPvnLgIr9+ezCMEtSPcoPRNUG0toLBBE7WfkqpS293mUyE7Z290FDRhxeN OKwA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-98338-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98338-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id g20-20020a0564021ed400b00568162faaaesi1884821edg.302.2024.03.10.14.26.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Mar 2024 14:26:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-98338-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-98338-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98338-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 5D62F1F21639 for ; Sun, 10 Mar 2024 21:17:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E85C83A29E; Sun, 10 Mar 2024 21:17:30 +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 30E233A1DA; Sun, 10 Mar 2024 21:17:26 +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=1710105450; cv=none; b=VgBx6r1/n4uvk8otn+j/WjfkzNmnnEgoFrA+iiI/m28aNzL9b4WZg3/cINxEOz8CMg47PHYprmi396cMm82kJpCytF76jAUW3Icteuc97k8j6dajflG3g1ZmUZIn4/ZUJmcJuAcQeHbr4hy+MzOXQLyarir1CTzjeBu5dxOBkV0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710105450; c=relaxed/simple; bh=jh0Bg9u2cEU/kuFQ89GZ8ssWpyF6wQ3Yl8hM4/OfJ3Q=; h=Date:From:To:Cc:Message-ID:In-Reply-To:References:Subject: MIME-Version:Content-Type; b=JHBuu69L5sEARnnny/LWoMj80fxqmORF4HCBU941KUrqKcIYKXphfOlRdigH+dflr4kECRhFkkZg+r4Fi0us4TLLiEV9hzsDL+c9WLqPWtrXr89uvVeD/G2YT4o09RRCvl3e7XiK1mPGZ/mtp9FogrooCfl+GKD3ILj/Ue4r7nc= 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 D7A79644CE9B; Sun, 10 Mar 2024 22:17:18 +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 QPqD6-Gs5_lr; Sun, 10 Mar 2024 22:17:18 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 4B97C644CE9C; Sun, 10 Mar 2024 22:17:18 +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 hPYilfTa8vD1; Sun, 10 Mar 2024 22:17:18 +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 0F7A0644CE64; Sun, 10 Mar 2024 22:17:18 +0100 (CET) Date: Sun, 10 Mar 2024 22:17:17 +0100 (CET) From: Richard Weinberger To: Daniel Golle Cc: Miquel Raynal , Vignesh Raghavendra , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-mtd , devicetree , linux-kernel Message-ID: <1754825522.38834.1710105437883.JavaMail.zimbra@nod.at> In-Reply-To: References: <82ceb13954f7e701bf47c112333e7b15a57fc360.1702952891.git.daniel@makrotopia.org> <20240219120156.383a1427@xps-13> <1209094181.98490.1708899174329.JavaMail.zimbra@nod.at> 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: 16y/pO9tIckbepFtGo93wkKFo34z8w== Daniel, ----- Urspr=C3=BCngliche Mail ----- > Von: "Daniel Golle" >> Finally(!), I had enough time to look. >> Thanks for addressing all my comments form the previous series. >> Patches applied. >=20 > It's an enourmous coicident that you are writing just now that I found > a sizeof(int)-related problem which triggers a compiler warning when > building the UBI NVMEM provider on 32-bit platforms. I was just about > to prepare an updated series. Literally in this minute. > Should I still send the whole updates series or only the final patch > (as the necessary change is there) or a follow-up patch fixing the > original patch? I have just merged your fixup patch. So all good. >>=20 >> 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. >=20 > I will setup a test build to reproduce the original warning and > let you know shortly. Any news on that? BTW: Is there a nice way to test this with nandsim in qemu? I'd love being able to test all ubi attach code paths on my test setup. Thanks, //richard