]> Gentwo Git Trees - linux/.git/commit
serial: 8250_of: add support for an optional bus clock
authorAlex Elder <elder@riscstar.com>
Wed, 9 Apr 2025 19:22:12 +0000 (14:22 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Apr 2025 14:52:47 +0000 (16:52 +0200)
commit81e4de4ba298d73fce72c70eddeb86b151640c27
treea185f2ce5082ad38030af2f1ab2b6c8ec7db6f19
parent2c0594f9f0629a8b4d46e7e1bd069a0bafc2e350
serial: 8250_of: add support for an optional bus clock

The SpacemiT UART requires a bus clock to be enabled, in addition to
it's "normal" core clock.  Look up the optional bus clock by name,
and if that's found, look up the core clock using the name "core".

Supplying a bus clock is optional.  If no bus clock is needed, the
the first/only clock is used for the core clock.

Signed-off-by: Alex Elder <elder@riscstar.com>
Link: https://lore.kernel.org/r/20250409192213.1130181-3-elder@riscstar.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_of.c