All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Ball <cjb@laptop.org>
To: Jaehoon Chung <jh80.chung@samsung.com>
Cc: linux-mmc <linux-mmc@vger.kernel.org>,
	Kyungmin Park <kyungmin.park@samsung.com>
Subject: Re: [PATCH v2] mmc: core: select the operation mode with sysfs
Date: Sat, 04 Feb 2012 17:36:23 -0500	[thread overview]
Message-ID: <m2mx8y9qfs.fsf@bob.laptop.org> (raw)
In-Reply-To: <4F17B530.6040809@samsung.com> (Jaehoon Chung's message of "Thu, 19 Jan 2012 15:16:16 +0900")

Hi,

On Thu, Jan 19 2012, Jaehoon Chung wrote:
> This patch is support the sysfs for operation mode.
>
> There are two operation modes(open-ended/pre-defined).
> Now, operation mode is selected only one at the compile time.
>
> But using this patch, we can change the operation mode with node at runtime.
>
> * pre-defined mode 
> echo 1 > /sys/class/mmc_host/mmc0/pre_defined_op  
> * open-ended mode
> echo 0 > /sys/class/mmc_host/mmc0/pre_defined_op  
>
> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> ---
> Changelog v2:
> 	- Add the check point in mmc_cmd23_store()
> 	(If host controller didn't support CMD23, need not to change the ops-mode.)
>
>  drivers/mmc/card/block.c |   14 +++++++-------
>  drivers/mmc/core/host.c  |   41 +++++++++++++++++++++++++++++++++++++++++
>  include/linux/mmc/host.h |    5 ++++-
>  3 files changed, 52 insertions(+), 8 deletions(-)

Patches that add sysfs nodes must come with documentation added to
Documentation/mmc/mmc-dev-attrs.txt.

Thanks,

- Chris.
-- 
Chris Ball   <cjb@laptop.org>   <http://printf.net/>
One Laptop Per Child

  reply	other threads:[~2012-02-04 22:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-19  6:16 [PATCH v2] mmc: core: select the operation mode with sysfs Jaehoon Chung
2012-02-04 22:36 ` Chris Ball [this message]
2012-02-05 11:02   ` Jae hoon Chung

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=m2mx8y9qfs.fsf@bob.laptop.org \
    --to=cjb@laptop.org \
    --cc=jh80.chung@samsung.com \
    --cc=kyungmin.park@samsung.com \
    --cc=linux-mmc@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.