]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: Set non-default Drive Strength via platform hook
authorPhilip Rakity <prakity@marvell.com>
Wed, 6 Jul 2011 15:51:32 +0000 (08:51 -0700)
committerChris Ball <cjb@laptop.org>
Wed, 20 Jul 2011 21:21:16 +0000 (17:21 -0400)
commitc91016f972a369fec64ca5864fe48d9cc037f689
tree2e8b5d9fc5577ef2c795c9cd4ca40ae21e508699
parent610a4f07dfd646a85da0f8805441e710c38a7450
mmc: core: Set non-default Drive Strength via platform hook

Non default Drive Strength cannot be set automatically.  It is a function
of the board design and only if there is a specific platform handler can
it be set.  The platform handler needs to take into account the board
design.  Pass to the platform code the necessary information.

For example:  The card and host controller may indicate they support HIGH
and LOW drive strength.  There is no way to know what should be chosen
without specific board knowledge.  Setting HIGH may lead to reflections
and setting LOW may not suffice.  There is no mechanism (like ethernet
duplex or speed pulses) to determine what should be done automatically.

If no platform handler is defined -- use the default value.

Signed-off-by: Philip Rakity <prakity@marvell.com>
Reviewed-by: Arindam Nath <arindam.nath@amd.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/sd.c
include/linux/mmc/host.h