From patchwork Wed Mar 16 12:07:09 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: 63926 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp1277478lbc; Wed, 16 Mar 2016 05:07:33 -0700 (PDT) X-Received: by 10.98.12.154 with SMTP id 26mr5356515pfm.20.1458130053736; Wed, 16 Mar 2016 05:07:33 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y65si4892817pfa.146.2016.03.16.05.07.33; Wed, 16 Mar 2016 05:07:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dkim=pass header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966414AbcCPMHb (ORCPT + 31 others); Wed, 16 Mar 2016 08:07:31 -0400 Received: from mail-pf0-f178.google.com ([209.85.192.178]:34569 "EHLO mail-pf0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965207AbcCPMH3 (ORCPT ); Wed, 16 Mar 2016 08:07:29 -0400 Received: by mail-pf0-f178.google.com with SMTP id x3so72932859pfb.1 for ; Wed, 16 Mar 2016 05:07:29 -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=JySVWKX/F7B1LnHxBo+LeuqfEW59njAnkcluG+e28kE=; b=QI/wkCjrGvxdIN6HafC+bIajY4UUMp2ruSlm5BrMq8DZIFhUAukY68t6QYd9ReXABe KHMItGUKBSIirR/2AqWAsdI9vPI2YOCjST+/uWo6jupz9hjrTbaMscXjqJ4eMDK2woqs aOug4N5s0g+9yWXNrtCGs8iFBb10FsuSOEHJY= 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=JySVWKX/F7B1LnHxBo+LeuqfEW59njAnkcluG+e28kE=; b=gbl7ac11joxa+93uBL8nuL42MGNiDJJKZbQYAOVwsTsH3Qq8DCBfWNfuHYrmXcp96Q n5R0c7ZajZjTw9xjwHnx/WtQubPJImQQJGCuGCOYG97/1E7viAZHtzD29HgKaEjBGmPY +E39yOSWSaHtF6D40eEzKVGjAEu/y/iEC5jklqJxlETu+DhAfl6ShWCgm0K5Ik6gmk3h Zh9IEpHjqgRYGfqltNf6ljR/Ks+BSQnRG7i81drDyuuxpmbg1hMBSrYx1/SI4cvgGJBj NYBfgh2J6PPIUHHWPMEBK1AQT0QbV72XFjxNTGHNACNPZgG6w7ql9SuuHM8V0KqIl4Fz 6RhQ== X-Gm-Message-State: AD7BkJIieOklZ8m2WqkeHMOWjDcCgk8jteTxJrItX2g9f1J9S9XqEjeqMvjHPP+BH8qIWVSI X-Received: by 10.66.160.7 with SMTP id xg7mr5317863pab.10.1458130048970; Wed, 16 Mar 2016 05:07:28 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([175.111.195.49]) by smtp.gmail.com with ESMTPSA id wh9sm5264343pab.8.2016.03.16.05.07.25 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 16 Mar 2016 05:07:28 -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: [PATCH] Documentation: mmc: Add the introduction for mmc-utils Date: Wed, 16 Mar 2016 20:07:09 +0800 Message-Id: <3a35aa84d79119536fb67bc423f928a930167a73.1458129983.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch introduces one mmc test tool called mmc-utils, which is convenient if someone want to exercise and test MMC/SD devices from userspace. Signed-off-by: Baolin Wang --- Documentation/mmc/00-INDEX | 2 ++ Documentation/mmc/mmc-tools.txt | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 Documentation/mmc/mmc-tools.txt -- 1.7.9.5 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.