u-boot-brain/drivers/net/phy
Fabio Estevam 338d9b032a phy: atheros: ar8035: Fix clock output calculation
The clock ouput frequency is calculated incorrectly for AR8035 due to
wrong masking of priv->clk_25m_reg and priv->clk_25m_mask.

This same issue has been already fixed in the kernel by:

commit b1f4c209d84057b6d40b939b6e4404854271d797
Author: Oleksij Rempel <o.rempel@pengutronix.de>
Date:   Wed Apr 1 11:57:32 2020 +0200

    net: phy: at803x: fix clock sink configuration on ATH8030 and ATH8035

    The masks in priv->clk_25m_reg and priv->clk_25m_mask are one-bits-set
    for the values that comprise the fields, not zero-bits-set.

    This patch fixes the clock frequency configuration for ATH8030 and
    ATH8035 Atheros PHYs by removing the erroneous "~".

    To reproduce this bug, configure the PHY  with the device tree binding
    "qca,clk-out-frequency" and remove the machine specific PHY fixups.

    Fixes: 2f664823a47021 ("net: phy: at803x: add device tree binding")
    Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
    Reported-by: Russell King <rmk+kernel@armlinux.org.uk>
    Reviewed-by: Russell King <rmk+kernel@armlinux.org.uk>
    Tested-by: Russell King <rmk+kernel@armlinux.org.uk>
    Signed-off-by: David S. Miller <davem@davemloft.net>

Apply the same fix in the U-Boot driver.

Tested on a i.MX6 Hummingboard.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Michael Walle <michael@walle.cc>
Tested-by: Tom Rini <trini@konsulko.com>
2020-06-22 17:40:41 +02:00
..
aquantia.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
atheros.c phy: atheros: ar8035: Fix clock output calculation 2020-06-22 17:40:41 +02:00
b53.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
broadcom.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
cortina.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
davicom.c net: phy: Clean up includes of common.h 2018-07-26 14:08:22 -05:00
dp83867.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
et1011c.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
fixed.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
generic_10g.c net: phy: Clean up includes of common.h 2018-07-26 14:08:22 -05:00
Kconfig phy: Add support for the NC-SI protocol 2020-03-09 18:11:23 -05:00
lxt.c net: phy: Clean up includes of common.h 2018-07-26 14:08:22 -05:00
Makefile phy: Add support for the NC-SI protocol 2020-03-09 18:11:23 -05:00
marvell.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
meson-gxl.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
micrel_ksz8xxx.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
micrel_ksz90x1.c net: phy: micrel: Add basic support for KSZ9131 2020-05-01 13:46:22 +02:00
miiphybb.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mscc.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mv88e61xx.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mv88e6352.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
natsemi.c net: phy: Clean up includes of common.h 2018-07-26 14:08:22 -05:00
ncsi.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
phy.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
realtek.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
smsc.c net: phy: Clean up includes of common.h 2018-07-26 14:08:22 -05:00
teranetics.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
vitesse.c net: phy: Clean up includes of common.h 2018-07-26 14:08:22 -05:00
xilinx_gmii2rgmii.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
xilinx_phy.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00