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.ch...@samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.p...@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   <c...@laptop.org>   <http://printf.net/>
One Laptop Per Child
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to