<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/mmc/host/bcm2835.c, branch linux-rolling-stable</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-rolling-stable</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-rolling-stable'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2025-07-03T12:17:35Z</updated>
<entry>
<title>mmc: Merge branch fixes into next</title>
<updated>2025-07-03T12:17:35Z</updated>
<author>
<name>Ulf Hansson</name>
</author>
<published>2025-07-03T12:17:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=886eade45257554fa0f76e61d9f14bdbc753ec11'/>
<id>urn:sha1:886eade45257554fa0f76e61d9f14bdbc753ec11</id>
<content type='text'>
Merge the mmc fixes for v6.16-rc[n] into the next branch, to allow them to
get tested together with the new mmc changes that are targeted for v6.17.

Signed-off-by: Ulf Hansson &lt;ulf.hansson@linaro.org&gt;
</content>
</entry>
<entry>
<title>mmc: bcm2835: Fix dma_unmap_sg() nents value</title>
<updated>2025-07-03T12:16:16Z</updated>
<author>
<name>Thomas Fourier</name>
</author>
<published>2025-06-30T09:35:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ff09b71bf9daeca4f21d6e5e449641c9fad75b53'/>
<id>urn:sha1:ff09b71bf9daeca4f21d6e5e449641c9fad75b53</id>
<content type='text'>
The dma_unmap_sg() functions should be called with the same nents as the
dma_map_sg(), not the value the map function returned.

Fixes: 2f5da678351f ("mmc: bcm2835: Properly handle dmaengine_prep_slave_sg")
Signed-off-by: Thomas Fourier &lt;fourier.thomas@gmail.com&gt;
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20250630093510.82871-2-fourier.thomas@gmail.com
Signed-off-by: Ulf Hansson &lt;ulf.hansson@linaro.org&gt;
</content>
</entry>
<entry>
<title>mmc: bcm2835: Use devm_mmc_alloc_host() helper</title>
<updated>2025-06-24T10:43:22Z</updated>
<author>
<name>Binbin Zhou</name>
</author>
<published>2025-06-03T12:25:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5f0aa2f7251916cc4a3bc723b701ff1a5e134aa2'/>
<id>urn:sha1:5f0aa2f7251916cc4a3bc723b701ff1a5e134aa2</id>
<content type='text'>
Use new function devm_mmc_alloc_host() to simplify the code.

Cc: Florian Fainelli &lt;florian.fainelli@broadcom.com&gt;
Cc: Ray Jui &lt;rjui@broadcom.com&gt;
Cc: Scott Branden &lt;sbranden@broadcom.com&gt;
Reviewed-by: Huacai Chen &lt;chenhuacai@loongson.cn&gt;
Signed-off-by: Binbin Zhou &lt;zhoubinbin@loongson.cn&gt;
Link: https://lore.kernel.org/r/37a95baec1889f906134deb2dc761a98e950dcd1.1748933789.git.zhoubinbin@loongson.cn
Signed-off-by: Ulf Hansson &lt;ulf.hansson@linaro.org&gt;
</content>
</entry>
<entry>
<title>mmc: bcm2835: Use str_read_write() helper</title>
<updated>2025-05-19T12:00:50Z</updated>
<author>
<name>Yumeng Fang</name>
</author>
<published>2025-05-15T12:42:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e249e584d052c76f1b5f2c4df2bde0260389b4ce'/>
<id>urn:sha1:e249e584d052c76f1b5f2c4df2bde0260389b4ce</id>
<content type='text'>
Remove hard-coded strings by using the str_read_write() helper.

Signed-off-by: Yumeng Fang &lt;fang.yumeng@zte.com.cn&gt;
Link: https://lore.kernel.org/r/20250515204201502Kzmj4I6k5Fv2FjqyEjF6n@zte.com.cn
Signed-off-by: Ulf Hansson &lt;ulf.hansson@linaro.org&gt;
</content>
</entry>
<entry>
<title>mmc: bcm2835: add suspend/resume pm support</title>
<updated>2024-12-10T10:18:45Z</updated>
<author>
<name>Stefan Wahren</name>
</author>
<published>2024-12-02T11:51:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=aee2ae1423a2f147d28075499af5d9bf063774c5'/>
<id>urn:sha1:aee2ae1423a2f147d28075499af5d9bf063774c5</id>
<content type='text'>
Add a minimalistic suspend/resume PM support.

Signed-off-by: Stefan Wahren &lt;wahrenst@gmx.net&gt;
Message-ID: &lt;20241202115140.33492-1-wahrenst@gmx.net&gt;
Signed-off-by: Ulf Hansson &lt;ulf.hansson@linaro.org&gt;
</content>
</entry>
<entry>
<title>mmc: bcm2835: Introduce proper clock handling</title>
<updated>2024-10-28T11:34:05Z</updated>
<author>
<name>Stefan Wahren</name>
</author>
<published>2024-10-25T10:36:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e6dc7d2eecd0c8e48b93f28552a1397c1b410083'/>
<id>urn:sha1:e6dc7d2eecd0c8e48b93f28552a1397c1b410083</id>
<content type='text'>
The custom sdhost controller on BCM2835 is feed by the critical VPU clock.
In preparation for PM suspend/resume support, add a proper clock handling
to the driver like in the other clock consumers (e.g. I2C).

Move the clock handling behind mmc_of_parse(), because it could return
with -EPROBE_DEFER and we want to minimize potential clock operation during
boot phase.

Signed-off-by: Stefan Wahren &lt;wahrenst@gmx.net&gt;
Message-ID: &lt;20241025103621.4780-5-wahrenst@gmx.net&gt;
Signed-off-by: Ulf Hansson &lt;ulf.hansson@linaro.org&gt;
</content>
</entry>
<entry>
<title>mmc: bcm2835: Fix type of current clock speed</title>
<updated>2024-10-28T11:33:36Z</updated>
<author>
<name>Stefan Wahren</name>
</author>
<published>2024-10-25T10:36:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9d3b4e52fd63ee7415bc8d70b0ce4fba0b643bf5'/>
<id>urn:sha1:9d3b4e52fd63ee7415bc8d70b0ce4fba0b643bf5</id>
<content type='text'>
The type of mmc_ios.clock is unsigned int, so the cached value
should be of the same type.

Signed-off-by: Stefan Wahren &lt;wahrenst@gmx.net&gt;
Message-ID: &lt;20241025103621.4780-4-wahrenst@gmx.net&gt;
Signed-off-by: Ulf Hansson &lt;ulf.hansson@linaro.org&gt;
</content>
</entry>
<entry>
<title>mmc: Switch back to struct platform_driver::remove()</title>
<updated>2024-10-14T10:29:01Z</updated>
<author>
<name>Uwe Kleine-König</name>
</author>
<published>2024-09-27T14:58:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=078e548af9c3a6a2c2db7c967afe37884a02b0a4'/>
<id>urn:sha1:078e548af9c3a6a2c2db7c967afe37884a02b0a4</id>
<content type='text'>
After commit 0edb555a65d1 ("platform: Make platform_driver::remove()
return void") .remove() is (again) the right callback to implement for
platform drivers.

Convert all platform drivers below drivers/mmc to use .remove(), with
the eventual goal to drop struct platform_driver::remove_new(). As
.remove() and .remove_new() have the same prototypes, conversion is done
by just changing the structure member name in the driver initializer.

Signed-off-by: Uwe Kleine-König &lt;u.kleine-koenig@baylibre.com&gt;
Link: https://lore.kernel.org/r/20240927145832.754697-2-u.kleine-koenig@baylibre.com
Signed-off-by: Ulf Hansson &lt;ulf.hansson@linaro.org&gt;
</content>
</entry>
<entry>
<title>mmc: bcm2835: Convert to platform remove callback returning void</title>
<updated>2023-08-15T10:45:03Z</updated>
<author>
<name>Yangtao Li</name>
</author>
<published>2023-07-27T06:59:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cac6d238834d82ea50b977b918962e558de74420'/>
<id>urn:sha1:cac6d238834d82ea50b977b918962e558de74420</id>
<content type='text'>
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.

Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.

Cc: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Signed-off-by: Yangtao Li &lt;frank.li@vivo.com&gt;
Reviewed-by: Florian Fainelli &lt;florian.fainelli@broadcom.com&gt;
Link: https://lore.kernel.org/r/20230727070051.17778-2-frank.li@vivo.com
Signed-off-by: Ulf Hansson &lt;ulf.hansson@linaro.org&gt;
</content>
</entry>
<entry>
<title>mmc: bcm2835: fix deferred probing</title>
<updated>2023-06-19T11:31:12Z</updated>
<author>
<name>Sergey Shtylyov</name>
</author>
<published>2023-06-17T20:36:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=71150ac12558bcd9d75e6e24cf7c872c2efd80f3'/>
<id>urn:sha1:71150ac12558bcd9d75e6e24cf7c872c2efd80f3</id>
<content type='text'>
The driver overrides the error codes and IRQ0 returned by platform_get_irq()
to -EINVAL, so if it returns -EPROBE_DEFER, the driver will fail the probe
permanently instead of the deferred probing. Switch to propagating the error
codes upstream.  Since commit ce753ad1549c ("platform: finally disallow IRQ0
in platform_get_irq() and its ilk") IRQ0 is no longer returned by those APIs,
so we now can safely ignore it...

Fixes: 660fc733bd74 ("mmc: bcm2835: Add new driver for the sdhost controller.")
Cc: stable@vger.kernel.org # v5.19+
Signed-off-by: Sergey Shtylyov &lt;s.shtylyov@omp.ru&gt;
Link: https://lore.kernel.org/r/20230617203622.6812-2-s.shtylyov@omp.ru
Signed-off-by: Ulf Hansson &lt;ulf.hansson@linaro.org&gt;
</content>
</entry>
</feed>
