1. 09 6月, 2021 2 次提交
    • J
      net: phy: realtek: add dt property to enable ALDPS mode · d90db36a
      Joakim Zhang 提交于
      If enable Advance Link Down Power Saving (ALDPS) mode, it will change
      crystal/clock behavior, which cause RXC clock stop for dozens to hundreds
      of miliseconds. This is comfirmed by Realtek engineer. For some MACs, it
      needs RXC clock to support RX logic, after this patch, PHY can generate
      continuous RXC clock during auto-negotiation.
      
      ALDPS default is disabled after hardware reset, it's more reasonable to
      add a property to enable this feature, since ALDPS would introduce side effect.
      This patch adds dt property "realtek,aldps-enable" to enable ALDPS mode
      per users' requirement.
      
      Jisheng Zhang enables this feature, changes the default behavior. Since
      mine patch breaks the rule that new implementation should not break
      existing design, so Cc'ed let him know to see if it can be accepted.
      
      Cc: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
      Signed-off-by: NJoakim Zhang <qiangqing.zhang@nxp.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d90db36a
    • J
      net: phy: realtek: add dt property to disable CLKOUT clock · 0a4355c2
      Joakim Zhang 提交于
      CLKOUT is enabled by default after PHY hardware reset, this patch adds
      "realtek,clkout-disable" property for user to disable CLKOUT clock
      to save PHY power.
      
      Per RTL8211F guide, a PHY reset should be issued after setting these
      bits in PHYCR2 register. After this patch, CLKOUT clock output to be
      disabled.
      Signed-off-by: NJoakim Zhang <qiangqing.zhang@nxp.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0a4355c2
  2. 08 6月, 2021 2 次提交
  3. 04 6月, 2021 1 次提交
  4. 31 5月, 2021 2 次提交
  5. 22 5月, 2021 2 次提交
  6. 20 5月, 2021 1 次提交
  7. 18 5月, 2021 2 次提交
  8. 15 5月, 2021 2 次提交
  9. 11 5月, 2021 1 次提交
  10. 01 5月, 2021 1 次提交
  11. 29 4月, 2021 1 次提交
  12. 28 4月, 2021 1 次提交
  13. 24 4月, 2021 1 次提交
  14. 23 4月, 2021 2 次提交
  15. 22 4月, 2021 2 次提交
  16. 21 4月, 2021 8 次提交
  17. 20 4月, 2021 2 次提交
  18. 16 4月, 2021 1 次提交
    • D
      net: phy: at803x: select correct page on config init · c329e5af
      David Bauer 提交于
      The Atheros AR8031 and AR8033 expose different registers for SGMII/Fiber
      as well as the copper side of the PHY depending on the BT_BX_REG_SEL bit
      in the chip configure register.
      
      The driver assumes the copper side is selected on probe, but this might
      not be the case depending which page was last selected by the
      bootloader. Notably, Ubiquiti UniFi bootloaders show this behavior.
      
      Select the copper page when probing to circumvent this.
      Signed-off-by: NDavid Bauer <mail@david-bauer.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c329e5af
  19. 15 4月, 2021 3 次提交
  20. 13 4月, 2021 1 次提交
    • P
      net: phy: marvell: fix detection of PHY on Topaz switches · 1fe976d3
      Pali Rohár 提交于
      Since commit fee2d546 ("net: phy: marvell: mv88e6390 temperature
      sensor reading"), Linux reports the temperature of Topaz hwmon as
      constant -75°C.
      
      This is because switches from the Topaz family (88E6141 / 88E6341) have
      the address of the temperature sensor register different from Peridot.
      
      This address is instead compatible with 88E1510 PHYs, as was used for
      Topaz before the above mentioned commit.
      
      Create a new mapping table between switch family and PHY ID for families
      which don't have a model number. And define PHY IDs for Topaz and Peridot
      families.
      
      Create a new PHY ID and a new PHY driver for Topaz's internal PHY.
      The only difference from Peridot's PHY driver is the HWMON probing
      method.
      
      Prior this change Topaz's internal PHY is detected by kernel as:
      
        PHY [...] driver [Marvell 88E6390] (irq=63)
      
      And afterwards as:
      
        PHY [...] driver [Marvell 88E6341 Family] (irq=63)
      Signed-off-by: NPali Rohár <pali@kernel.org>
      BugLink: https://github.com/globalscaletechnologies/linux/issues/1
      Fixes: fee2d546 ("net: phy: marvell: mv88e6390 temperature sensor reading")
      Reviewed-by: NMarek Behún <kabel@kernel.org>
      Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1fe976d3
  21. 12 4月, 2021 1 次提交
  22. 10 4月, 2021 1 次提交
    • H
      net: phy: make PHY PM ops a no-op if MAC driver manages PHY PM · fba863b8
      Heiner Kallweit 提交于
      Resume callback of the PHY driver is called after the one for the MAC
      driver. The PHY driver resume callback calls phy_init_hw(), and this is
      potentially problematic if the MAC driver calls phy_start() in its resume
      callback. One issue was reported with the fec driver and a KSZ8081 PHY
      which seems to become unstable if a soft reset is triggered during aneg.
      
      The new flag allows MAC drivers to indicate that they take care of
      suspending/resuming the PHY. Then the MAC PM callbacks can handle
      any dependency between MAC and PHY PM.
      Signed-off-by: NHeiner Kallweit <hkallweit1@gmail.com>
      Signed-off-by: NJakub Kicinski <kuba@kernel.org>
      fba863b8