From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 232CFC4332F for ; Wed, 24 Nov 2021 22:25:17 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9BF908378D; Wed, 24 Nov 2021 23:24:14 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="jmNeHe7c"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 23A4283778; Wed, 24 Nov 2021 23:23:40 +0100 (CET) Received: from mail-ua1-x932.google.com (mail-ua1-x932.google.com [IPv6:2607:f8b0:4864:20::932]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8FEE583742 for ; Wed, 24 Nov 2021 23:23:32 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@google.com Received: by mail-ua1-x932.google.com with SMTP id a14so8406168uak.0 for ; Wed, 24 Nov 2021 14:23:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:from:in-reply-to:references:date:message-id :subject:to:cc; bh=T12QwXeonVi6ju1GXGUlH4CEBuq6UJ04wuxhWBOtAPE=; b=jmNeHe7cTTIGvwIqZh/nYvv44PC50G7UAIIZm66GArI3ijhlmS/AyBrL6WrTqaSaiE TcltSGz4LriJRDWrVX2p+Q26CFk9BPMUbBczhP9LFmkDPPVd7oTwUKYBFnjSrW0ha8O0 QZRNtFOJqfamY62MFqBM4LQnury2uYbFpuZWM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:sender:from:in-reply-to:references :date:message-id:subject:to:cc; bh=T12QwXeonVi6ju1GXGUlH4CEBuq6UJ04wuxhWBOtAPE=; b=iNqmQcAfZjrBmolNRL73PST9YziTvz02ILzdBFTrFN0Xt79NlNhYciZo5RwhWNMrBB Hvgmj8l0FCAlApmUoww6OxAJNHTc7StsjZ6+a4RYj1neLvIunGXFcj4SQaUAt/0OWynS YCky/njfyDOCVGTR8FQ0AsQshAsco7OsvMZXmq/+4XWFjox4yBkU/n0BLuCwsOoafJqJ fJ4ornWPyzb8fPADqmZ5fSWRw6Sr2khGOlefORXFynxy5TX07kNnyL/tfd+zcO34x/ek MX8zrcShysMYm28hyPvHXNR/ZTdmjfhgPSE3nPeyyzZ/mOmL0+auwh/2U0YGBcYadB6k dKyg== X-Gm-Message-State: AOAM530bV5Nf67i8lnS8LdZMmaNBK5I8M9b2MKxGnA0V0vGJ41AWIJf4 3i2msFE0JJnInnMIWcNh5ClvlZKzsBYRVD0tYyZmlA== X-Google-Smtp-Source: ABdhPJwNLKjJdftMq8LagdFD8p7V2Wtl42k5wp+LpidR4pat1lmmFAIEC1AUDQ/pMF8DL19chQ94LUW6uOJn/HaD/wc= X-Received: by 2002:a05:6102:c86:: with SMTP id f6mr1049046vst.38.1637792611060; Wed, 24 Nov 2021 14:23:31 -0800 (PST) Received: from 480794996271 named unknown by gmailapi.google.com with HTTPREST; Wed, 24 Nov 2021 17:22:37 -0500 MIME-Version: 1.0 From: Simon Glass In-Reply-To: <20211023172618.v2.5.I42087e8088f8d9fb704821d73f17d7ae246a2e69@changeid> References: <20211023172618.v2.5.I42087e8088f8d9fb704821d73f17d7ae246a2e69@changeid> <20211023232635.9195-1-sjg@chromium.org> Date: Wed, 24 Nov 2021 17:22:37 -0500 X-Google-Sender-Auth: 15zFYHNVhf62L6d9S09XiZ061II Message-ID: Subject: Re: [PATCH v2 05/41] sandbox: mmc: Support a backing file To: Simon Glass Cc: Michal Simek , Heinrich Schuchardt , Tom Rini , Ilias Apalodimas , Daniel Schwierzeck , Steffen Jaeckel , =?UTF-8?B?TWFyZWsgQmVow7pu?= , Lukas Auer , Dennis Gilmore , Jaehoon Chung , Peng Fan , U-Boot Mailing List Content-Type: text/plain; charset="UTF-8" X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.37 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Provide a way for sandbox MMC to present data from a backing file. This allows a filesystem to be created on the host and easily served via an emulated mmc device. Signed-off-by: Simon Glass --- Changes in v2: - Free the memory buffer, to avoid running out of memory - Unmap the file - Reorder struct sandbox_mmc_priv doc/device-tree-bindings/mmc/sandbox,mmc.txt | 18 ++++++ drivers/mmc/sandbox_mmc.c | 60 +++++++++++++++++--- 2 files changed, 69 insertions(+), 9 deletions(-) create mode 100644 doc/device-tree-bindings/mmc/sandbox,mmc.txt Applied to u-boot-dm/next, thanks!