]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: dwc_eth_qos: Move log_debug statements on top of case block
authorMarek Vasut <marex@denx.de>
Tue, 26 Mar 2024 12:07:27 +0000 (13:07 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Fri, 19 Apr 2024 09:30:50 +0000 (11:30 +0200)
Move the log_debug() calls on top of the bit manipulation code.
No functional change.

Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Signed-off-by: Marek Vasut <marex@denx.de>
drivers/net/dwc_eth_qos_stm32.c

index 7545026b158eb8e45fa196f2c4e615701eadd92c..38037c4795449226762ca621fa5b69512b43ba40 100644 (file)
@@ -143,34 +143,34 @@ static int eqos_probe_syscfg_stm32(struct udevice *dev,
 
        switch (interface_type) {
        case PHY_INTERFACE_MODE_MII:
+               log_debug("PHY_INTERFACE_MODE_MII\n");
                value = FIELD_PREP(SYSCFG_PMCSETR_ETH_SEL_MASK,
                                   SYSCFG_PMCSETR_ETH_SEL_GMII_MII);
                value |= SYSCFG_PMCSETR_ETH_REF_CLK_SEL;
-               log_debug("PHY_INTERFACE_MODE_MII\n");
                break;
        case PHY_INTERFACE_MODE_GMII:
+               log_debug("PHY_INTERFACE_MODE_GMII\n");
                value = FIELD_PREP(SYSCFG_PMCSETR_ETH_SEL_MASK,
                                   SYSCFG_PMCSETR_ETH_SEL_GMII_MII);
                if (eth_clk_sel_reg)
                        value |= SYSCFG_PMCSETR_ETH_CLK_SEL;
-               log_debug("PHY_INTERFACE_MODE_GMII\n");
                break;
        case PHY_INTERFACE_MODE_RMII:
+               log_debug("PHY_INTERFACE_MODE_RMII\n");
                value = FIELD_PREP(SYSCFG_PMCSETR_ETH_SEL_MASK,
                                   SYSCFG_PMCSETR_ETH_SEL_RMII);
                if (eth_ref_clk_sel_reg)
                        value |= SYSCFG_PMCSETR_ETH_REF_CLK_SEL;
-               log_debug("PHY_INTERFACE_MODE_RMII\n");
                break;
        case PHY_INTERFACE_MODE_RGMII:
        case PHY_INTERFACE_MODE_RGMII_ID:
        case PHY_INTERFACE_MODE_RGMII_RXID:
        case PHY_INTERFACE_MODE_RGMII_TXID:
+               log_debug("PHY_INTERFACE_MODE_RGMII\n");
                value = FIELD_PREP(SYSCFG_PMCSETR_ETH_SEL_MASK,
                                   SYSCFG_PMCSETR_ETH_SEL_RGMII);
                if (eth_clk_sel_reg)
                        value |= SYSCFG_PMCSETR_ETH_CLK_SEL;
-               log_debug("PHY_INTERFACE_MODE_RGMII\n");
                break;
        default:
                log_debug("Do not manage %d interface\n",