<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/include/linux/mmc/core.h, branch linux-4.1.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.</subtitle>
<id>https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-4.1.y</id>
<link rel='self' href='https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-4.1.y'/>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/'/>
<updated>2015-10-22T21:43:24Z</updated>
<entry>
<title>mmc: sdhci: fix dma memory leak in sdhci_pre_req()</title>
<updated>2015-10-22T21:43:24Z</updated>
<author>
<name>Haibo Chen</name>
<email>haibo.chen@freescale.com</email>
</author>
<published>2015-08-25T02:02:11Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=c1d40e01ad8c01eb36557dab69cefd972f5f0415'/>
<id>urn:sha1:c1d40e01ad8c01eb36557dab69cefd972f5f0415</id>
<content type='text'>
commit d31911b9374a76560d2c8ea4aa6ce5781621e81d upstream.

Currently one mrq-&gt;data maybe execute dma_map_sg() twice
when mmc subsystem prepare over one new request, and the
following log show up:
	sdhci[sdhci_pre_dma_transfer] invalid cookie: 24, next-cookie 25

In this condition, mrq-&gt;date map a dma-memory(1) in sdhci_pre_req
for the first time, and map another dma-memory(2) in sdhci_prepare_data
for the second time. But driver only unmap the dma-memory(2), and
dma-memory(1) never unmapped, which cause the dma memory leak issue.

This patch use another method to map the dma memory for the mrq-&gt;data
which can fix this dma memory leak issue.

Fixes: 348487cb28e6 ("mmc: sdhci: use pipeline mmc requests to improve performance")
Reported-and-tested-by: Jiri Slaby &lt;jslaby@suse.cz&gt;
Signed-off-by: Haibo Chen &lt;haibo.chen@freescale.com&gt;
Signed-off-by: Ulf Hansson &lt;ulf.hansson@linaro.org&gt;
Signed-off-by: Jiri Slaby &lt;jslaby@suse.cz&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>mmc: core: Convert the error field in struct mmc_command|data into an int</title>
<updated>2015-04-08T10:10:20Z</updated>
<author>
<name>Ulf Hansson</name>
<email>ulf.hansson@linaro.org</email>
</author>
<published>2015-03-31T10:41:55Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=f5c5179b9a8ab8e3255f78e233d94ea54f23f832'/>
<id>urn:sha1:f5c5179b9a8ab8e3255f78e233d94ea54f23f832</id>
<content type='text'>
Everybody expects the error field in the struct mmc_command|data to be
and int but it's actually an unsigned int. Let's convert it into an int
to meet the expectations.

Signed-off-by: Ulf Hansson &lt;ulf.hansson@linaro.org&gt;
</content>
</entry>
<entry>
<title>mmc: core: always check status after reset</title>
<updated>2015-01-19T08:56:27Z</updated>
<author>
<name>Johan Rudholm</name>
<email>johan.rudholm@axis.com</email>
</author>
<published>2015-01-12T14:38:04Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=83533ab28380f6957af39a7b322e639e42dbdaf1'/>
<id>urn:sha1:83533ab28380f6957af39a7b322e639e42dbdaf1</id>
<content type='text'>
Always check if the card is alive after a successful reset. This allows
us to remove mmc_hw_reset_check(), leaving mmc_hw_reset() as the only
card reset interface.

Signed-off-by: Johan Rudholm &lt;johanru@axis.com&gt;
Signed-off-by: Ulf Hansson &lt;ulf.hansson@linaro.org&gt;
</content>
</entry>
<entry>
<title>mmc: core: Let mmc_send_tuning() to take struct mmc_host* as parameter</title>
<updated>2014-12-08T08:11:04Z</updated>
<author>
<name>Ulf Hansson</name>
<email>ulf.hansson@linaro.org</email>
</author>
<published>2014-12-05T10:31:22Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=fe5afb13d46e76b07ab7e732f2b694dcafef4d9d'/>
<id>urn:sha1:fe5afb13d46e76b07ab7e732f2b694dcafef4d9d</id>
<content type='text'>
To be able to use mmc_send_tuning() prior the struct mmc_card has been
allocated, let's convert it to take the struct mmc_host* as parameter
instead.

Suggested-by: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
Signed-off-by: Ulf Hansson &lt;ulf.hansson@linaro.org&gt;
Acked-by: Dong Aisheng &lt;b29396@freescale.com&gt;
Reviewed-by: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
</content>
</entry>
<entry>
<title>mmc: core: add core-level function for sending tuning commands</title>
<updated>2014-11-26T13:36:51Z</updated>
<author>
<name>Minda Chen</name>
<email>Minda.Chen@csr.com</email>
</author>
<published>2014-11-26T05:05:33Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=996903de92f0c7a32d8c83f37d7ebcea0def8660'/>
<id>urn:sha1:996903de92f0c7a32d8c83f37d7ebcea0def8660</id>
<content type='text'>
According to the SD card spec, Add a manual tuning command function
for SDR104/HS200.
Sending command 19 or command 21 to read data and compare with the
tunning block pattern.

This patch will help to decrease some platform private codes in SDHCI
platform_execute_tuning() callbacks.

Signed-off-by: Minda Chen &lt;Minda.Chen@csr.com&gt;
Signed-off-by: Barry Song &lt;Baohua.Song@csr.com&gt;
Signed-off-by: Ulf Hansson &lt;ulf.hansson@linaro.org&gt;
</content>
</entry>
<entry>
<title>mmc: core: Remove the redundant mmc_send_ext_csd() API</title>
<updated>2014-11-10T11:40:44Z</updated>
<author>
<name>Ulf Hansson</name>
<email>ulf.hansson@linaro.org</email>
</author>
<published>2014-10-17T09:54:22Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=2fc91e8b0e1cd89094677d1c9dfba1b26979e48b'/>
<id>urn:sha1:2fc91e8b0e1cd89094677d1c9dfba1b26979e48b</id>
<content type='text'>
Previous patches has replaced the calls to mmc_send_ext_csd() into
mmc_get_ext_csd(), thus mmc_send_ext_csd() has become redundant. Let's
remove it.

Signed-off-by: Ulf Hansson &lt;ulf.hansson@linaro.org&gt;
</content>
</entry>
<entry>
<title>mmc: core: Export mmc_get_ext_csd()</title>
<updated>2014-11-10T11:40:43Z</updated>
<author>
<name>Ulf Hansson</name>
<email>ulf.hansson@linaro.org</email>
</author>
<published>2014-10-17T09:32:32Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=e21aa519ee3667d0fabda5d806cc68826e9899e0'/>
<id>urn:sha1:e21aa519ee3667d0fabda5d806cc68826e9899e0</id>
<content type='text'>
Callers of mmc_send_ext_csd() will be able to decrease code duplication
by using mmc_get_ext_csd() instead. Let's make it available.

Signed-off-by: Ulf Hansson &lt;ulf.hansson@linaro.org&gt;
</content>
</entry>
<entry>
<title>mmc: core: Add ignore_crc flag to __mmc_switch</title>
<updated>2014-02-23T15:40:30Z</updated>
<author>
<name>Ulf Hansson</name>
<email>ulf.hansson@linaro.org</email>
</author>
<published>2014-01-08T15:09:33Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=4509f847751c9d2a724f37fe831393fbac34b80f'/>
<id>urn:sha1:4509f847751c9d2a724f37fe831393fbac34b80f</id>
<content type='text'>
Instead of handle specific adaptations, releated to certain switch
operations, inside __mmc_switch, push this to be handled by the caller
instead.

Signed-off-by: Ulf Hansson &lt;ulf.hansson@linaro.org&gt;
Signed-off-by: Chris Ball &lt;chris@printf.net&gt;
</content>
</entry>
<entry>
<title>mmc: core: Rename cmd_timeout_ms to busy_timeout</title>
<updated>2014-02-23T15:40:26Z</updated>
<author>
<name>Ulf Hansson</name>
<email>ulf.hansson@linaro.org</email>
</author>
<published>2014-01-08T14:06:08Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=1d4d77444bf4212c44585146a2b353ca24c815f9'/>
<id>urn:sha1:1d4d77444bf4212c44585146a2b353ca24c815f9</id>
<content type='text'>
To better reflect that the cmd_timeout_ms is directly related to the
busy detection timeout, let's rename it.

Signed-off-by: Ulf Hansson &lt;ulf.hansson@linaro.org&gt;
Signed-off-by: Chris Ball &lt;chris@printf.net&gt;
</content>
</entry>
<entry>
<title>mmc: core: Do not poll for busy with status cmd for all switch cmds</title>
<updated>2013-10-31T00:26:24Z</updated>
<author>
<name>Ulf Hansson</name>
<email>ulf.hansson@linaro.org</email>
</author>
<published>2013-09-09T09:57:57Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=878e200bbb1fbde9f21582decab95b178e5a3b83'/>
<id>urn:sha1:878e200bbb1fbde9f21582decab95b178e5a3b83</id>
<content type='text'>
Some switch operations like poweroff notify, shall according to the
spec not be followed by any other new commands. For these cases and
when the host does'nt support MMC_CAP_WAIT_WHILE_BUSY, we must not
send status commands to poll for busy detection. Instead wait for
the stated timeout from the EXT_CSD before completing the request.

Signed-off-by: Ulf Hansson &lt;ulf.hansson@linaro.org&gt;
Cc: Jaehoon Chung &lt;jh80.chung@samsung.com&gt;
Signed-off-by: Chris Ball &lt;cjb@laptop.org&gt;
</content>
</entry>
</feed>
