Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3560535pxp; Tue, 8 Mar 2022 17:28:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJwYj7h7enS2adHq5AcORr9+5F2ixaxsExfXjU9dh9jBim+7yT2D0owZYLGJI2aH9n6YNdeh X-Received: by 2002:a17:902:f647:b0:14f:c37d:34ec with SMTP id m7-20020a170902f64700b0014fc37d34ecmr20334803plg.6.1646789324322; Tue, 08 Mar 2022 17:28:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646789324; cv=none; d=google.com; s=arc-20160816; b=taQgnzOrx+esgaUAU3d91VLjpUsqf7YmboVh6NBTHVKAJYiseBXIohHByOngOUys1p BY0mWViu6/2T3qA8x2B/UGBQmYULntmxPGIqYApWpH7iJhkKK7J9yMlYqYTFghru/U/a SrUfF1nMQpOaqi/a4d4pBwZaghrJVE/8H7qqIIblUi/9nFMy63f6Bt4FTb8kGfXa4dHr bIXybjhHeuNIimznBEH5aeaUKicil4g3J/6rCMi/+sAvZOzmceQMT3ZshZvfcwDHowR+ 0tvW5dg3mV550S9V45QeO3p5LOymlcKznMwmtYLL89UrRyfqoLtNHflcSa9JpkZaAr9X GF0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ICzA0DrdXMhOKFRda00jGMuRSZtr/qRb9e8msUmDl9E=; b=EILl6WJmHQerOMNU3FD84LQkAtI6EfYqyX7/AibOnqcKfeuz0mtXMzVWvZ4tqXDOoO K4B85huSEvid2AXI9or00S8nGZy7ouGCI3VfcjwqK+YcbPgbvVHemLVwUEEHj7vq49BZ boFSB6vcFoTiwySbd3wcro3GJxpQtSw2Yt2i+NVZqph4l5FNyS8S08IJ7bcG5fwQzEa4 /PjpQWryPkRO121O0AqKgsXu4fS/9kHVBjzwTHdjE/T7Jh6GEE8hY7qFWxGUa5HpP2vf KfwBlq24ZqNm6BFt7cE9BMGV0EAfOlOgE+Iu6kdzYcAUL2KxnHtEt/gZVUzdqb6JoXXP vcVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b="qHi/7dFU"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id nn9-20020a17090b38c900b001bd14e03069si4176887pjb.65.2022.03.08.17.28.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 17:28:44 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b="qHi/7dFU"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7FC1F1A6377; Tue, 8 Mar 2022 16:17:52 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243114AbiCGORU (ORCPT + 99 others); Mon, 7 Mar 2022 09:17:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243082AbiCGORL (ORCPT ); Mon, 7 Mar 2022 09:17:11 -0500 Received: from smtp2.axis.com (smtp2.axis.com [195.60.68.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 695838EB44; Mon, 7 Mar 2022 06:16:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1646662575; x=1678198575; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=ICzA0DrdXMhOKFRda00jGMuRSZtr/qRb9e8msUmDl9E=; b=qHi/7dFUGGWC3m5upjoZ21XTbq8L8F/Y+zQYwtkAwvXqwRpTznDITA0r VSvdZdrjDKihXwhQ4rsWC+X4Tjctlx/+NCeQGxWPWlBI7uN//CjJnImlw uhhWlwfnzlEFcNrWvF6uxey4E1DuGNeT+wdCgqRUwtlmE4kTAwYPvGk7V xys7u2AyFZLZC52677GxRbigh1xl6RoxqkZvKsxlRag1OE7qQbuhdyYwj pT6XUqpvTjnRnEsiXA5eis1RvGSxZRO/ig0rrM7gflTvUJeSQR96eSeYs r7STMBOKDSeDa+AioGf5HYn7po7u03N7ygX7BHhHY169B6dGhd0R/kYhB Q==; From: Vincent Whitchurch To: , , , CC: , , , , , , , Vincent Whitchurch Subject: [PATCH 0/4] mtd: phram improvements Date: Mon, 7 Mar 2022 15:15:45 +0100 Message-ID: <20220307141549.2732179-1-vincent.whitchurch@axis.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The phram driver in the MTD subsystem can be used to allow the kernel to use an MTD or (via mtdblock) a block device in RAM (with the contents loaded by a bootloader for example). This series has some improvements to make it more usable by adding device tree support and to significantly improve its performance by using cached mappings when possible. Vincent Whitchurch (4): mtd: core: Check devicetree alias for index dt-bindings: reserved-memory: Add phram mtd: phram: Allow probing via reserved-memory mtd: phram: Allow cached mappings .../bindings/reserved-memory/phram.yaml | 45 +++++++++++ drivers/mtd/devices/phram.c | 78 +++++++++++++++++-- drivers/mtd/mtdcore.c | 11 ++- drivers/of/platform.c | 1 + 4 files changed, 127 insertions(+), 8 deletions(-) create mode 100644 Documentation/devicetree/bindings/reserved-memory/phram.yaml -- 2.34.1