<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/mmc/core, branch linux-2.6.37.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.37.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.37.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2011-03-23T19:50:46Z</updated>
<entry>
<title>mmc: sdio: remember new card RCA when redetecting card</title>
<updated>2011-03-23T19:50:46Z</updated>
<author>
<name>Stefan Nilsson XK</name>
</author>
<published>2011-03-01T13:41:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7503dd0d943211e428a91ec35b3e44604b722196'/>
<id>urn:sha1:7503dd0d943211e428a91ec35b3e44604b722196</id>
<content type='text'>
commit 0aab3995485b8a994bf29a995a008c9ea4a28054 upstream.

During redetection of a SDIO card, a request for a new card RCA
was submitted to the card, but was then overwritten by the old RCA.
This caused the card to be deselected instead of selected when using
the incorrect RCA.  This bug's been present since the "oldcard"
handling was introduced in 2.6.32.

Signed-off-by: Stefan Nilsson XK &lt;stefan.xk.nilsson@stericsson.com&gt;
Reviewed-by: Ulf Hansson &lt;ulf.hansson@stericsson.com&gt;
Reviewed-by: Pawel Wieczorkiewicz &lt;pawel.wieczorkiewicz@stericsson.com&gt;
Signed-off-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
Signed-off-by: Chris Ball &lt;cjb@laptop.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>mmc: Fix re-probing with PM_POST_RESTORE notification</title>
<updated>2010-12-21T19:46:49Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2010-12-10T07:40:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=274476f8fe0b6ac9bac542cc39de12c3dd0f43f6'/>
<id>urn:sha1:274476f8fe0b6ac9bac542cc39de12c3dd0f43f6</id>
<content type='text'>
In the error-path where PM notifies PM_POST_RESTORE, the rescan-blockage
should be cleared as well.  Otherwise it'll be never re-probed.

Also, as a bonus, this fixes a bug in S4 with user-mode suspend in the
current code, as it sends PM_POST_RESTORE instead of
PM_POST_HIBERNATION wrongly.

Cc: &lt;stable@kernel.org&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
Signed-off-by: Chris Ball &lt;cjb@laptop.org&gt;
</content>
</entry>
<entry>
<title>mmc: sdio: fix runtime PM anomalies by introducing MMC_CAP_POWER_OFF_CARD</title>
<updated>2010-11-19T22:07:01Z</updated>
<author>
<name>Ohad Ben-Cohen</name>
</author>
<published>2010-11-19T07:29:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ed919b0125b26dcc052e44836f66e7e1f5c49c7e'/>
<id>urn:sha1:ed919b0125b26dcc052e44836f66e7e1f5c49c7e</id>
<content type='text'>
Some board/card/host configurations are not capable of powering off the
card after boot.

To support such configurations, and to allow smoother transition to
runtime PM behavior, MMC_CAP_POWER_OFF_CARD is added, so hosts need to
explicitly indicate whether it's OK to power off their cards after boot.

SDIO core will enable runtime PM for a card only if that cap is set.
As a result, the card will be powered down after boot, and will only
be powered up again when a driver is loaded (and then it's up to the
driver to decide whether power will be kept or not).

This will prevent sdio_bus_probe() failures with setups that do not
support powering off the card.

Reported-and-tested-by: Daniel Drake &lt;dsd@laptop.org&gt;
Reported-and-tested-by: Arnd Hannemann &lt;arnd@arndnet.de&gt;
Signed-off-by: Ohad Ben-Cohen &lt;ohad@wizery.com&gt;
Signed-off-by: Chris Ball &lt;cjb@laptop.org&gt;
</content>
</entry>
<entry>
<title>mmc: sdio: fix nasty oops in mmc_sdio_detect</title>
<updated>2010-11-19T22:06:52Z</updated>
<author>
<name>Ohad Ben-Cohen</name>
</author>
<published>2010-11-14T10:40:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4d0812c37f2f6cf6fc7ca086b5a5e572cbbe7f6d'/>
<id>urn:sha1:4d0812c37f2f6cf6fc7ca086b5a5e572cbbe7f6d</id>
<content type='text'>
Power off the card in mmc_sdio_detect __before__ a potential error
handler, which completely removes the card, executes, and only if the
card was successfully powered on beforehand.

While we're at it, use the _sync variant of the runtime PM put API, in
order to ensure that the card is left powered off in case an error
occurred, and the card is going to be removed.

Reproduced and tested on the OLPC XO-1.5.

Reported-by: Daniel Drake &lt;dsd@laptop.org&gt;
Signed-off-by: Ohad Ben-Cohen &lt;ohad@wizery.com&gt;
Signed-off-by: Chris Ball &lt;cjb@laptop.org&gt;
</content>
</entry>
<entry>
<title>mmc: fix rmmod race for hosts using card-detection polling</title>
<updated>2010-11-11T23:42:38Z</updated>
<author>
<name>Guennadi Liakhovetski</name>
</author>
<published>2010-11-11T16:32:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d9bcbf343ec63e1104b5276195888ee06b4d086f'/>
<id>urn:sha1:d9bcbf343ec63e1104b5276195888ee06b4d086f</id>
<content type='text'>
MMC hosts that poll for card detection by defining the MMC_CAP_NEEDS_POLL
flag have a race on rmmod, where the delayed work is cancelled without
waiting for completed polling. To prevent this a _sync version of the work
cancellation has to be used.

Signed-off-by: Guennadi Liakhovetski &lt;g.liakhovetski@gmx.de&gt;
Cc: &lt;stable@kernel.org&gt;
Signed-off-by: Chris Ball &lt;cjb@laptop.org&gt;
</content>
</entry>
<entry>
<title>mmc: Fix printing of card DDR type</title>
<updated>2010-11-07T21:45:08Z</updated>
<author>
<name>Philip Rakity</name>
</author>
<published>2010-11-07T21:22:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=25d5c699f983a2da51f5165eb9a8fc6338124b6c'/>
<id>urn:sha1:25d5c699f983a2da51f5165eb9a8fc6338124b6c</id>
<content type='text'>
We should not call mmc_card_set_ddr_mode() if we are in single data
mode.  This sets DDR and causes the kernel log to say the card is DDR
when it is not.

Explicitly set ddr to 0 rather then rely on MMC_SDR_MODE being 0 when
doing the checks.

Signed-off-by: Philip Rakity &lt;prakity@marvell.com&gt;
Acked-by: Linus Walleij &lt;linus.walleij@stericsson.com&gt;
Acked-by: Kyungmin Park &lt;kyungmin.park@samsung.com&gt;
Signed-off-by: Chris Ball &lt;cjb@laptop.org&gt;
</content>
</entry>
<entry>
<title>mmc: add a file to debugfs for changing host clock at runtime</title>
<updated>2010-10-23T13:11:20Z</updated>
<author>
<name>Andy Shevchenko</name>
</author>
<published>2010-10-13T08:22:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=703aae3d09a4b351866f1a97b2afafb905bdbf1e'/>
<id>urn:sha1:703aae3d09a4b351866f1a97b2afafb905bdbf1e</id>
<content type='text'>
For debugging power management features it is convenient to have the
possibility of changing the MMC host controller clock at runtime.  This
patch adds a 'clock' file for this under the MMC host root of debugfs.

Usage is as follows:

	# cat /sys/kernel/debug/mmc0/clock
	52000000

	# echo "1000000000" &gt; /sys/kernel/debug/mmc0/clock
	# cat /sys/kernel/debug/mmc0/clock
	52000000

	# echo "48000000" &gt; /sys/kernel/debug/mmc0/clock
	# cat /sys/kernel/debug/mmc0/clock
	48000000

The middle example shows limits being applied by the host driver.

Signed-off-by: Andy Shevchenko &lt;ext-andriy.shevchenko@nokia.com&gt;
Cc: Adrian Hunter &lt;adrian.hunter@nokia.com&gt;
[cjb: modify changelog language]
Signed-off-by: Chris Ball &lt;cjb@laptop.org&gt;
</content>
</entry>
<entry>
<title>mmc: sdio: support suspend/resume while runtime suspended</title>
<updated>2010-10-23T13:11:19Z</updated>
<author>
<name>Ohad Ben-Cohen</name>
</author>
<published>2010-10-02T11:54:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ed2a9785942b0986ac858f3f48d7fc5f7c7183de'/>
<id>urn:sha1:ed2a9785942b0986ac858f3f48d7fc5f7c7183de</id>
<content type='text'>
Bring SDIO devices back to full power before their suspend
handler is invoked.

Doing so ensures that SDIO suspend/resume semantics are
maintained (drivers still get to decide whether their
card should be removed or kept during system suspend,
and at what power state), and that SDIO suspend/resume
execution paths are unchanged.

This is achieved by resuming a runtime-suspended SDIO device
in its -&gt;prepare() PM callback (similary to the PCI subsystem).

Since the PM core always increments the run-time usage
counter before calling the -&gt;prepare() callback and decrements
it after calling the -&gt;complete() callback, it is guaranteed
that when the system will come out of suspend, our device's
power state will reflect its runtime PM usage counter.

Signed-off-by: Ohad Ben-Cohen &lt;ohad@wizery.com&gt;
Tested-by: Luciano Coelho &lt;luciano.coelho@nokia.com&gt;
Signed-off-by: Chris Ball &lt;cjb@laptop.org&gt;
</content>
</entry>
<entry>
<title>mmc: sdio: ensure mmc_sdio_detect is powered</title>
<updated>2010-10-23T13:11:18Z</updated>
<author>
<name>Ohad Ben-Cohen</name>
</author>
<published>2010-10-02T11:54:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=87973ba27b751353e2915cb3aa5c0e0dc6a79a4f'/>
<id>urn:sha1:87973ba27b751353e2915cb3aa5c0e0dc6a79a4f</id>
<content type='text'>
To prevent an erroneous removal of the card, make sure
the device is powered when it is mmc_sdio_detect()ed.

This is required since mmc_sdio_detect may be invoked
while the device is runtime suspended (e.g., MMC core
is rescanning when system comes out of suspend).

Signed-off-by: Ohad Ben-Cohen &lt;ohad@wizery.com&gt;
Tested-by: Luciano Coelho &lt;luciano.coelho@nokia.com&gt;
Signed-off-by: Chris Ball &lt;cjb@laptop.org&gt;
</content>
</entry>
<entry>
<title>mmc: sdio: enable runtime PM for SDIO functions</title>
<updated>2010-10-23T13:11:18Z</updated>
<author>
<name>Ohad Ben-Cohen</name>
</author>
<published>2010-10-02T11:54:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=40bba0c1ca83a370f749c8bc9afda71cf79ebd91'/>
<id>urn:sha1:40bba0c1ca83a370f749c8bc9afda71cf79ebd91</id>
<content type='text'>
Enable runtime PM for SDIO functions.

SDIO functions are initialized with a disabled runtime PM state,
and are set active (and their usage count is incremented)
only before potential drivers are probed.

SDIO function drivers that support runtime PM should call
pm_runtime_put_noidle() in their probe routine, and
pm_runtime_get_noresume() in their remove routine (very
similarly to PCI drivers).

In case a matching driver does not support runtime PM, power will
always be kept high (since the usage count is positive).

Signed-off-by: Ohad Ben-Cohen &lt;ohad@wizery.com&gt;
Tested-by: Luciano Coelho &lt;luciano.coelho@nokia.com&gt;
Signed-off-by: Chris Ball &lt;cjb@laptop.org&gt;
</content>
</entry>
</feed>
