]> www.infradead.org Git - users/willy/xarray.git/commit
net: stmmac: dwmac-stm32: Extract PMCR configuration
authorMarek Vasut <marex@denx.de>
Tue, 11 Jun 2024 08:36:02 +0000 (10:36 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Fri, 14 Jun 2024 08:50:56 +0000 (10:50 +0200)
commit92704f8c0e7a3868bf22a7d36ae205b880195e66
tree68a986b6f019dc9cb7fa09e3d9ffa9fb8ce4b711
parent63b0aa8ea73f7a15912d5e6e44714f98bda8a03c
net: stmmac: dwmac-stm32: Extract PMCR configuration

Pull the PMCR clock mux configuration into a separate function. This is
the final change of three, which moves external clock rate validation,
external clock selector decoding, and clock mux configuration into
separate functions. This should make the code easier to understand.
No functional change intended.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Christophe Roullier <christophe.roullier@foss.st.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c