]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mmc: bcm2835: Introduce proper clock handling
authorStefan Wahren <wahrenst@gmx.net>
Fri, 25 Oct 2024 10:36:16 +0000 (12:36 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 28 Oct 2024 11:34:05 +0000 (12:34 +0100)
commite6dc7d2eecd0c8e48b93f28552a1397c1b410083
tree68e6c34bc8d4ec79b67a4bf48c4e597b48be491e
parent9d3b4e52fd63ee7415bc8d70b0ce4fba0b643bf5
mmc: bcm2835: Introduce proper clock handling

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 <wahrenst@gmx.net>
Message-ID: <20241025103621.4780-5-wahrenst@gmx.net>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/bcm2835.c