From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.246.84.56 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796029709; b=MZSnC/9amhV3TXHntYXE0uYvPkADFwKPQ0dmOyXgP+4FN5qtuxbCPWuWjZ2jOq1yF5Y8 /bRolv9M80Mee4T6gE7Z/bsaTel/GhdKATZ1JExLxlP4pjgNSRBRi5W5iRij6A4r7/3Eh KD6MdDZ6UZaGsALIhBWW6H4syW5XU7JDbMrUIw2ovcFik9R7iG+uzetDhcd1llPnmcfN+ wwiJeT5qEF3aUFVbxcLRnj5MoGAKZi8qKPnzbqDlZMgqBl1TXpt/+6Wdi/qyekK2HJo12 z69isDayze9X7Xd9C2Ec2gGnToJtQ52uNOlnHp7UknHz9/3WaSocLguPWCuZmf3klIA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796029709; h=DMARC-Filter:Received:Received:Received:DKIM-Signature:From:To:Cc: Subject:In-Reply-To:References:User-Agent:Date:Message-ID: MIME-Version:Content-Type:Content-Transfer-Encoding: X-Last-TLS-Session-Version; bh=11ash5/WRLSy0/9O5a/kSF9F1RYKbG07Pcze10hweoo=; b=xq60Kzrp2g0L9hGX798F0BtYxodNNg2Q39JihtBS95NNTacrJS7YP0aZBab/YqVzEsSf oVvNDAQk2YId4zE6h95muec/tn/DiqgGqjNdn1z6dobbm1lESOuwfKcQHKbEYAXUPxiLL u8Hu6AHP9v49WzgiPSIuF8UgmkqWFpe4u+cVwE29G+JbC3BSXKSwLQLizVeSN1JNX0WL4 eN1tr+biHAF0HhUmiXVYz0HnnVnG1JphVYeWG6BF5tAYW68fwJQzV/jObwNoxZfkbWBRO s6Atq3ObANhc9IgI1mA2Ua+NXm6S8Hkr/0qIn0rdX6bg1FbfUp1tIkBpUQYtbo7tkRA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=mCurjkJE; arc=none smtp.remote-ip=185.246.84.56 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5CB55606A325; Mon, 30 Nov 2026 09:08:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5CB55606A325 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=mCurjkJE Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id 393611A1868; Mon, 30 Nov 2026 09:08:27 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 0B5B36007C; Mon, 30 Nov 2026 09:08:27 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 24A8A11EA0D69; Mon, 30 Nov 2026 10:08:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796029705; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=11ash5/WRLSy0/9O5a/kSF9F1RYKbG07Pcze10hweoo=; b=mCurjkJEuLrv4aRkwWVJXNRnwXI7hcoVCgbKL4APAhhFbpMn2fuXvYWyurf9NUCw/j0M7S Li+r5H+mmadkejrDs8iPu1hxSB8xYfHjnFACaADWUiP9vZuSDD6dGibyxVEFIU+y+MSebn 58SYDNr/TxGldC9u+Wg+PL9VfR+A7V7He40+R++qoZZ1HFUA7vdY0EhW3sCAnlQXIlfMGJ IpR3xHBkrhJygmny2RuoseAE62PuQ1NDWwWeFa7gy1ME01jUDm8orSCe5ebjpp2SzzpmZn w9zg7LxV5oHSBf74M77Cptwn8JZLrb9/OXPZw/hV0OQGQSWnF+XLShyjFqQv8w== From: Miquel Raynal To: Linus Walleij Cc: Orgad Shaneh , richard@nod.at, vigneshr@ti.com, tsbogend@alpha.franken.de, linux-mtd@lists.infradead.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, kaloz@kernel.org, ulli.kroll@googlemail.com, john@phrozen.org, nico@fluxnic.net, dwmw2@infradead.org, corbet@lwn.net, linux-doc@vger.kernel.org Subject: Re: [PATCH v4 0/4] mtd: point() for cfi_cmdset_0002, on simple maps only In-Reply-To: (Linus Walleij's message of "Mon, 30 Nov 2026 01:09:46 +0100") References: <20261117214141.3826637-1-orgads@gmail.com> User-Agent: mu4e 1.12.12; emacs 30.2 Date: Mon, 30 Nov 2026 10:08:20 +0100 Message-ID: <87mrqq3cvv.fsf@bootlin.com> X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Last-TLS-Session-Version: TLSv1.3 On 30/11/2026 at 01:09:46 +01, Linus Walleij wrote: > On Tue, Nov 17, 2026 at 10:41=E2=80=AFPM Orgad Shaneh = wrote: > >> jffs2 scans a flash in place through mtd_point() when the chip driver >> offers it, and copies every used eraseblock otherwise. cfi_cmdset_0002 >> has no point(), so an Octeon CN6635 board with a 100 MB jffs2 >> partition on an 8-bit M29EW spends 15-30 s mounting it at every boot. >> >> 1/4 lets point() through only for maps read through the simple >> accessors; cfi_cmdset_0001, lpddr, map_ram and map_rom point today at >> maps whose own accessors swap bytes, switch pins or lock the bus. >> 2/4 adds point() to cfi_cmdset_0002 behind that gate. >> 3/4 gives each Octeon flash device its own map. >> 4/4 lets that map use the simple accessors when no eMMC shares the >> boot bus. 3/4 and 4/4 build alone, but 4/4 only pays off with 1/4 and >> 2/4, so taking all four through mtd with an ack from Thomas seems >> simplest. > > I guess I should test this on the ixp4xx but don't have time right > now, the patches seem sound so: > Acked-by: Linus Walleij Great, thanks for the feedback. I'll wait a bit for Vignesh to give his feedback as well, but otherwise I'll eventually take it then. Thanks, Miqu=C3=A8l