<feed xmlns='http://www.w3.org/2005/Atom'>
<title>starfive-tech/linux.git/drivers/mmc, branch VF2_v3.4.5</title>
<subtitle>StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)</subtitle>
<id>https://git.radix-linux.su/starfive-tech/linux.git/atom?h=VF2_v3.4.5</id>
<link rel='self' href='https://git.radix-linux.su/starfive-tech/linux.git/atom?h=VF2_v3.4.5'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/linux.git/'/>
<updated>2023-08-02T08:14:50+00:00</updated>
<entry>
<title>mmc: starfive: Unify the MMC code on evb/vf2/devkits</title>
<updated>2023-08-02T08:14:50+00:00</updated>
<author>
<name>William Qiu</name>
<email>william.qiu@starfivetech.com</email>
</author>
<published>2023-08-02T08:14:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/linux.git/commit/?id=3559703a3594ef66dfa9068e9d88befbcb9cfa76'/>
<id>urn:sha1:3559703a3594ef66dfa9068e9d88befbcb9cfa76</id>
<content type='text'>
Unify the MMC code on evb/vf2/devkits to resolve conflicts when merging
the code.

Signed-off-by: William Qiu &lt;william.qiu@starfivetech.com&gt;
</content>
</entry>
<entry>
<title>mmc: starfive: change the tuning method</title>
<updated>2023-07-26T08:26:42+00:00</updated>
<author>
<name>William Qiu</name>
<email>william.qiu@starfivetech.com</email>
</author>
<published>2023-07-26T08:26:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/linux.git/commit/?id=c8b7f3c2395cc8f96baeda0574da7d07973464bf'/>
<id>urn:sha1:c8b7f3c2395cc8f96baeda0574da7d07973464bf</id>
<content type='text'>
Previously, the system controller register was used to do tuning, but it
was only useful for HS200, so now change the tuning mode to use the
UHS_REG_EXT register, and delete the previous code about syscon

Signed-off-by: William Qiu &lt;william.qiu@starfivetech.com&gt;
</content>
</entry>
<entry>
<title>starfive: copyright: modify related description</title>
<updated>2023-04-14T09:01:26+00:00</updated>
<author>
<name>William Qiu</name>
<email>william.qiu@starfivetech.com</email>
</author>
<published>2023-04-14T07:47:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/linux.git/commit/?id=fe9c282671060ff91b50a21023d5f011b0803fdb'/>
<id>urn:sha1:fe9c282671060ff91b50a21023d5f011b0803fdb</id>
<content type='text'>
Modify related description.

Signed-off-by: William Qiu &lt;william.qiu@starfivetech.com&gt;
</content>
</entry>
<entry>
<title>hibernation: mmc: change the runtime PM API</title>
<updated>2023-02-13T02:04:21+00:00</updated>
<author>
<name>William Qiu</name>
<email>william.qiu@starfivetech.com</email>
</author>
<published>2023-02-13T02:04:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/linux.git/commit/?id=4f291797d34fee059df26257ae922b15dc8656bf'/>
<id>urn:sha1:4f291797d34fee059df26257ae922b15dc8656bf</id>
<content type='text'>
Use the common API to do the runtime PM.

Signed-off-by: William Qiu &lt;william.qiu@starfivetech.com&gt;
</content>
</entry>
<entry>
<title>SDIO:starfive:modify SDIO/EMMC runtime PM callback function</title>
<updated>2022-10-27T05:57:27+00:00</updated>
<author>
<name>William Qiu</name>
<email>william.qiu@starfivetech.com</email>
</author>
<published>2022-10-25T02:39:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/linux.git/commit/?id=ba658ae419808ece5fca1c0da84a411ac32f65a6'/>
<id>urn:sha1:ba658ae419808ece5fca1c0da84a411ac32f65a6</id>
<content type='text'>
modify SDIO/EMMC runtime PM callback function.

Signed-off-by: William Qiu &lt;william.qiu@starfivetech.com&gt;
</content>
</entry>
<entry>
<title>SDIO:starfive:add SDIO/EMMC runtime pm ops</title>
<updated>2022-10-27T05:56:39+00:00</updated>
<author>
<name>William Qiu</name>
<email>william.qiu@starfivetech.com</email>
</author>
<published>2022-10-21T03:46:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/linux.git/commit/?id=58dea6aaa1e5640b64f8a8fe6d2d7f025114801f'/>
<id>urn:sha1:58dea6aaa1e5640b64f8a8fe6d2d7f025114801f</id>
<content type='text'>
add SDIO/EMMC runtime pm ops.

Signed-off-by: William Qiu &lt;william.qiu@starfivetech.com&gt;
</content>
</entry>
<entry>
<title>SDIO:starfive:Add the starfive private driver for SDIO</title>
<updated>2022-09-09T04:39:12+00:00</updated>
<author>
<name>William Qiu</name>
<email>william.qiu@starfivetech.com</email>
</author>
<published>2022-09-09T04:39:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/linux.git/commit/?id=1f1e2db1d7475419a63daddbda73f0ba5ed82148'/>
<id>urn:sha1:1f1e2db1d7475419a63daddbda73f0ba5ed82148</id>
<content type='text'>
Add the starfive private driver for SDIO

Signed-off-by: William Qiu &lt;william.qiu@starfivetech.com&gt;
</content>
</entry>
<entry>
<title>mmc: tmio: reenable card irqs after the reset callback</title>
<updated>2021-10-28T21:19:32+00:00</updated>
<author>
<name>Wolfram Sang</name>
<email>wsa+renesas@sang-engineering.com</email>
</author>
<published>2021-10-28T19:51:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/linux.git/commit/?id=90935eb303e0d12f3d3d0383262e65290321f5f6'/>
<id>urn:sha1:90935eb303e0d12f3d3d0383262e65290321f5f6</id>
<content type='text'>
The reset callback may clear the internal card detect interrupts, so
make sure to reenable them if needed.

Fixes: b4d86f37eacb ("mmc: renesas_sdhi: do hard reset if possible")
Reported-by: Biju Das &lt;biju.das.jz@bp.renesas.com&gt;
Signed-off-by: Wolfram Sang &lt;wsa+renesas@sang-engineering.com&gt;
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20211028195149.8003-1-wsa+renesas@sang-engineering.com
Signed-off-by: Ulf Hansson &lt;ulf.hansson@linaro.org&gt;
</content>
</entry>
<entry>
<title>mmc: mediatek: Move cqhci init behind ungate clock</title>
<updated>2021-10-28T09:55:20+00:00</updated>
<author>
<name>Wenbin Mei</name>
<email>wenbin.mei@mediatek.com</email>
</author>
<published>2021-10-28T02:20:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/linux.git/commit/?id=e8a1ff65927080278e6826f797b7c197fb2611a6'/>
<id>urn:sha1:e8a1ff65927080278e6826f797b7c197fb2611a6</id>
<content type='text'>
We must enable clock before cqhci init, because crypto needs read
information from CQHCI registers, otherwise, it will hang in MediaTek mmc
host controller.

Signed-off-by: Wenbin Mei &lt;wenbin.mei@mediatek.com&gt;
Fixes: 88bd652b3c74 ("mmc: mediatek: command queue support")
Cc: stable@vger.kernel.org
Acked-by: Chaotian Jing &lt;chaotian.jing@mediatek.com&gt;
Link: https://lore.kernel.org/r/20211028022049.22129-1-wenbin.mei@mediatek.com
Signed-off-by: Ulf Hansson &lt;ulf.hansson@linaro.org&gt;
</content>
</entry>
<entry>
<title>mmc: cqhci: clear HALT state after CQE enable</title>
<updated>2021-10-26T15:34:57+00:00</updated>
<author>
<name>Wenbin Mei</name>
<email>wenbin.mei@mediatek.com</email>
</author>
<published>2021-10-26T07:08:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/linux.git/commit/?id=92b18252b91de567cd875f2e84722b10ab34ee28'/>
<id>urn:sha1:92b18252b91de567cd875f2e84722b10ab34ee28</id>
<content type='text'>
While mmc0 enter suspend state, we need halt CQE to send legacy cmd(flush
cache) and disable cqe, for resume back, we enable CQE and not clear HALT
state.
In this case MediaTek mmc host controller will keep the value for HALT
state after CQE disable/enable flow, so the next CQE transfer after resume
will be timeout due to CQE is in HALT state, the log as below:
&lt;4&gt;.(4)[318:kworker/4:1H]mmc0: cqhci: timeout for tag 2
&lt;4&gt;.(4)[318:kworker/4:1H]mmc0: cqhci: ============ CQHCI REGISTER DUMP ===========
&lt;4&gt;.(4)[318:kworker/4:1H]mmc0: cqhci: Caps:      0x100020b6 | Version:  0x00000510
&lt;4&gt;.(4)[318:kworker/4:1H]mmc0: cqhci: Config:    0x00001103 | Control:  0x00000001
&lt;4&gt;.(4)[318:kworker/4:1H]mmc0: cqhci: Int stat:  0x00000000 | Int enab: 0x00000006
&lt;4&gt;.(4)[318:kworker/4:1H]mmc0: cqhci: Int sig:   0x00000006 | Int Coal: 0x00000000
&lt;4&gt;.(4)[318:kworker/4:1H]mmc0: cqhci: TDL base:  0xfd05f000 | TDL up32: 0x00000000
&lt;4&gt;.(4)[318:kworker/4:1H]mmc0: cqhci: Doorbell:  0x8000203c | TCN:      0x00000000
&lt;4&gt;.(4)[318:kworker/4:1H]mmc0: cqhci: Dev queue: 0x00000000 | Dev Pend: 0x00000000
&lt;4&gt;.(4)[318:kworker/4:1H]mmc0: cqhci: Task clr:  0x00000000 | SSC1:     0x00001000
&lt;4&gt;.(4)[318:kworker/4:1H]mmc0: cqhci: SSC2:      0x00000001 | DCMD rsp: 0x00000000
&lt;4&gt;.(4)[318:kworker/4:1H]mmc0: cqhci: RED mask:  0xfdf9a080 | TERRI:    0x00000000
&lt;4&gt;.(4)[318:kworker/4:1H]mmc0: cqhci: Resp idx:  0x00000000 | Resp arg: 0x00000000
&lt;4&gt;.(4)[318:kworker/4:1H]mmc0: cqhci: CRNQP:     0x00000000 | CRNQDUN:  0x00000000
&lt;4&gt;.(4)[318:kworker/4:1H]mmc0: cqhci: CRNQIS:    0x00000000 | CRNQIE:   0x00000000

This change check HALT state after CQE enable, if CQE is in HALT state, we
will clear it.

Signed-off-by: Wenbin Mei &lt;wenbin.mei@mediatek.com&gt;
Cc: stable@vger.kernel.org
Acked-by: Adrian Hunter &lt;adrian.hunter@intel.com&gt;
Fixes: a4080225f51d ("mmc: cqhci: support for command queue enabled host")
Link: https://lore.kernel.org/r/20211026070812.9359-1-wenbin.mei@mediatek.com
Signed-off-by: Ulf Hansson &lt;ulf.hansson@linaro.org&gt;
</content>
</entry>
</feed>
