summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/freescale
diff options
context:
space:
mode:
authorBen Wolsieffer <ben.wolsieffer@hefring.com>2023-10-09 10:59:04 -0400
committerDavid S. Miller <davem@davemloft.net>2023-10-13 10:03:19 +0100
commit4d177f4996659fee4a32d30035d2acb19a5ac5de (patch)
tree31dc2a90f175ea4ddc5c848eadc3348b521d847e /drivers/net/ethernet/freescale
parent7497b0af21573bbfa78eb40d7cefe663c4c2477b (diff)
net: stmmac: dwmac-stm32: refactor clock config
Currently, clock configuration is spread throughout the driver and partially duplicated for the STM32MP1 and STM32 MCU variants. This makes it difficult to keep track of which clocks need to be enabled or disabled in various scenarios. This patch adds symmetric stm32_dwmac_clk_enable/disable() functions that handle all clock configuration, including quirks required while suspending or resuming. syscfg_clk and clk_eth_ck are not present on STM32 MCUs, but it is fine to try to configure them anyway since NULL clocks are ignored. Signed-off-by: Ben Wolsieffer <ben.wolsieffer@hefring.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale')
0 files changed, 0 insertions, 0 deletions