[PATCH] rtc: mediatek: Add mt6685 RTC driver

Markus Elfring Markus.Elfring at web.de
Thu Oct 31 12:50:36 PDT 2024


Please add a change description.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.12-rc5#n45


…
> +++ b/drivers/rtc/rtc-mt6685.c
> @@ -0,0 +1,1456 @@
…
> +static void power_on_mclk(struct mt6685_rtc *rtc)
> +{
> +	mutex_lock(&rtc->clk_lock);
…
> +	mdelay(1);
> +	mutex_unlock(&rtc->clk_lock);
> +}
…

Under which circumstances would you become interested to apply a statement
like “guard(mutex)(&rtc->clk_lock);”?
https://elixir.bootlin.com/linux/v6.12-rc5/source/include/linux/mutex.h#L201

Regards,
Markus



More information about the Linux-mediatek mailing list