From: Jaehoon Chung <jh80.chung@samsung.com>
To: Yunpeng Gao <yunpeng.gao@intel.com>, linux-mmc@vger.kernel.org
Cc: Chuanxiao Xiao <chuanxiao.dong@intel.com>
Subject: Re: [PATCH] mmc: core: export more sysfs for debugging purpose
Date: Tue, 12 Aug 2014 17:49:59 +0900 [thread overview]
Message-ID: <53E9D537.6080104@samsung.com> (raw)
In-Reply-To: <1407828534-15846-1-git-send-email-yunpeng.gao@intel.com>
Hi,
On 08/12/2014 04:28 PM, Yunpeng Gao wrote:
> Add some more sysfs export related to eMMC BK Ops,
> HPI and Hardware Reset features. It'll be helpful
> for debugging.
Did you use "mmc-utils"?
Best Regards,
Jaehoon Chung
>
> Signed-off-by: Yunpeng Gao <yunpeng.gao@intel.com>
> Signed-off-by: Chuanxiao Xiao <chuanxiao.dong@intel.com>
> ---
> drivers/mmc/core/mmc.c | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
> index 793c6f7..15b7ab0 100644
> --- a/drivers/mmc/core/mmc.c
> +++ b/drivers/mmc/core/mmc.c
> @@ -710,6 +710,12 @@ MMC_DEV_ATTR(enhanced_area_offset, "%llu\n",
> MMC_DEV_ATTR(enhanced_area_size, "%u\n", card->ext_csd.enhanced_area_size);
> MMC_DEV_ATTR(raw_rpmb_size_mult, "%#x\n", card->ext_csd.raw_rpmb_size_mult);
> MMC_DEV_ATTR(rel_sectors, "%#x\n", card->ext_csd.rel_sectors);
> +MMC_DEV_ATTR(hpi_support, "%d\n", card->ext_csd.hpi);
> +MMC_DEV_ATTR(hpi_enable, "%d\n", card->ext_csd.hpi_en);
> +MMC_DEV_ATTR(hpi_command, "%d\n", card->ext_csd.hpi_cmd);
> +MMC_DEV_ATTR(hw_reset_support, "%d\n", card->ext_csd.rst_n_function);
> +MMC_DEV_ATTR(bkops_support, "%d\n", card->ext_csd.bkops);
> +MMC_DEV_ATTR(bkops_enable, "%d\n", card->ext_csd.bkops_en);
>
> static struct attribute *mmc_std_attrs[] = {
> &dev_attr_cid.attr,
> @@ -728,6 +734,12 @@ static struct attribute *mmc_std_attrs[] = {
> &dev_attr_enhanced_area_size.attr,
> &dev_attr_raw_rpmb_size_mult.attr,
> &dev_attr_rel_sectors.attr,
> + &dev_attr_hpi_support.attr,
> + &dev_attr_hpi_enable.attr,
> + &dev_attr_hpi_command.attr,
> + &dev_attr_hw_reset_support.attr,
> + &dev_attr_bkops_support.attr,
> + &dev_attr_bkops_enable.attr,
> NULL,
> };
> ATTRIBUTE_GROUPS(mmc_std);
>
next prev parent reply other threads:[~2014-08-12 8:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-12 7:28 [PATCH] mmc: core: export more sysfs for debugging purpose Yunpeng Gao
2014-08-12 8:49 ` Jaehoon Chung [this message]
2014-08-13 6:18 ` Gao, Yunpeng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53E9D537.6080104@samsung.com \
--to=jh80.chung@samsung.com \
--cc=chuanxiao.dong@intel.com \
--cc=linux-mmc@vger.kernel.org \
--cc=yunpeng.gao@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox