From patchwork Wed Mar 16 12:02:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "(Exiting) Baolin Wang" X-Patchwork-Id: 8599411 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 0B430C0553 for ; Wed, 16 Mar 2016 12:03:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 218D0202F0 for ; Wed, 16 Mar 2016 12:03:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 36029202A1 for ; Wed, 16 Mar 2016 12:03:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966662AbcCPMDX (ORCPT ); Wed, 16 Mar 2016 08:03:23 -0400 Received: from mail-pf0-f174.google.com ([209.85.192.174]:33513 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966652AbcCPMDO (ORCPT ); Wed, 16 Mar 2016 08:03:14 -0400 Received: by mail-pf0-f174.google.com with SMTP id 124so73099905pfg.0 for ; Wed, 16 Mar 2016 05:03:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=WUNa434Zwgf75ne7NUjlr9gj1tZb4DRZsT4hGAFUJjc=; b=BI3Tm5YLeEk8zlTrDw3Epxkkxzo+xgSPvJsfioteQkUK2kHuRgsJZqL7uwSIVvdZkw otayTZ7ORDz86Tamwg08EOMBN5jSvdlKIz9e13UDn5sQp5VHWzCA2D7n2Einn+Lt8+F+ 1yl2BqsVmB/J2PPJIiSTWlPme/13fK7iHyXow= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=WUNa434Zwgf75ne7NUjlr9gj1tZb4DRZsT4hGAFUJjc=; b=H0tDWsz53dCfWyiRUptZlT1IiDKRfFXoVLc25cSdIammL7Ru/4AIHwkTejIhylNA2o PYrjnQV+/6cqoGUD6akHmdc8XBttbXsqvTC+XwAv5SzU/Oo/Jt5J5O8mI2d5Bx1I4dwu gvpD2sTioGHENU6QGHYJ+rM8qEmkpQYQ+kqy1vwkDZpf0oRc7yp9/Dr5QKMoP2fhI0/A L6QkOzM3CmXIGweu4yB5xqjrmnVT5yB5VMytZnNBH58O4n85vWzvZgHhkEkrb3lPZ11Y K8XAMqZEGOiMsyAwrWt7tXW+amklVWqEvGJPmaO3jbhMo+MvQeld14DQ+5hMOyPcrU3h ezcg== X-Gm-Message-State: AD7BkJKVw201sFQqp0ft7HmWI/Sr3L1MNYIUatnKrcwgWG9d7g5bUAeF/QGRU2cs8xVyORc9 X-Received: by 10.66.124.130 with SMTP id mi2mr5273909pab.106.1458129793920; Wed, 16 Mar 2016 05:03:13 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([175.111.195.49]) by smtp.gmail.com with ESMTPSA id g28sm5242434pfd.25.2016.03.16.05.03.10 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 16 Mar 2016 05:03:13 -0700 (PDT) From: Baolin Wang To: corbet@lwn.net Cc: chris@printf.net, broonie@kernel.org, linus.walleij@linaro.org, arnd@arndb.de, ulf.hansson@linaro.org, linux-mmc@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, baolin.wang@linaro.org Subject: [RFC v2] Documentation: mmc: Add the introduction for mmc-utils Date: Wed, 16 Mar 2016 20:02:49 +0800 Message-Id: <3a35aa84d79119536fb67bc423f928a930167a73.1458031864.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch introduces one mmc test tools called mmc-utils, which is convenient if someone wants to exercise and test MMC/SD devices from userspace. Signed-off-by: Baolin Wang Acked-by: Ulf Hansson --- Documentation/mmc/00-INDEX | 2 ++ Documentation/mmc/mmc-tools.txt | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 Documentation/mmc/mmc-tools.txt diff --git a/Documentation/mmc/00-INDEX b/Documentation/mmc/00-INDEX index a9ba672..4623bc0 100644 --- a/Documentation/mmc/00-INDEX +++ b/Documentation/mmc/00-INDEX @@ -6,3 +6,5 @@ mmc-dev-parts.txt - info on SD and MMC device partitions mmc-async-req.txt - info on mmc asynchronous requests +mmc-tools.txt + - info on mmc-utils tools diff --git a/Documentation/mmc/mmc-tools.txt b/Documentation/mmc/mmc-tools.txt new file mode 100644 index 0000000..499b0f4 --- /dev/null +++ b/Documentation/mmc/mmc-tools.txt @@ -0,0 +1,34 @@ +MMC tools introduction +====================== + +There is one MMC test tools called mmc-utils, which is maintained by Chris Ball, +you can find it at the below public git repository: +http://git.kernel.org/cgit/linux/kernel/git/cjb/mmc-utils.git/ + +Functions +========= + +The mmc-utils tools can do the following: + - Print and parse extcsd data. + - Determine the eMMC writeprotect status. + - Set the eMMC writeprotect status. + - Set the eMMC data sector size to 4KB by disabling emulation. + - Create general purpose partition. + - Enable the enhanced user area. + - Enable write reliability per partition. + - Print the response to STATUS_SEND (CMD13). + - Enable the boot partition. + - Set Boot Bus Conditions. + - Enable the eMMC BKOPS feature. + - Permanently enable the eMMC H/W Reset feature. + - Permanently disable the eMMC H/W Reset feature. + - Send Sanitize command. + - Program authentication key for the device. + - Counter value for the rpmb device will be read to stdout. + - Read from rpmb device to output. + - Write to rpmb device from data file. + - Enable the eMMC cache feature. + - Disable the eMMC cache feature. + - Print and parse CID data. + - Print and parse CSD data. + - Print and parse SCR data.