1. 22 9月, 2020 1 次提交
  2. 15 7月, 2020 1 次提交
  3. 21 4月, 2020 1 次提交
  4. 19 3月, 2020 1 次提交
  5. 27 12月, 2019 2 次提交
    • M
      net: phy: realtek: add support for configuring the RX delay on RTL8211F · 1b3047b5
      Martin Blumenstingl 提交于
      On RTL8211F the RX and TX delays (2ns) can be configured in two ways:
      - pin strapping (RXD1 for the TX delay and RXD0 for the RX delay, LOW
        means "off" and HIGH means "on") which is read during PHY reset
      - using software to configure the TX and RX delay registers
      
      So far only the configuration using pin strapping has been supported.
      Add support for enabling or disabling the RGMII RX delay based on the
      phy-mode to be able to get the RX delay into a known state. This is
      important because the RX delay has to be coordinated between the PHY,
      MAC and the PCB design (trace length). With an invalid RX delay applied
      (for example if both PHY and MAC add a 2ns RX delay) Ethernet may not
      work at all.
      
      Also add debug logging when configuring the RX delay (just like the TX
      delay) because this is a common source of problems.
      Signed-off-by: NMartin Blumenstingl <martin.blumenstingl@googlemail.com>
      Reviewed-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1b3047b5
    • M
      net: phy: realtek: add logging for the RGMII TX delay configuration · 3aec743d
      Martin Blumenstingl 提交于
      RGMII requires a delay of 2ns between the data and the clock signal.
      There are at least three ways this can happen. One possibility is by
      having the PHY generate this delay.
      This is a common source for problems (for example with slow TX speeds or
      packet loss when sending data). The TX delay configuration of the
      RTL8211F PHY can be set either by pin-strappping the RXD1 pin (HIGH
      means enabled, LOW means disabled) or through configuring a paged
      register. The setting from the RXD1 pin is also reflected in the
      register.
      
      Add debug logging to the TX delay configuration on RTL8211F so it's
      easier to spot these issues (for example if the TX delay is enabled for
      both, the RTL8211F PHY and the MAC).
      This is especially helpful because there is no public datasheet for the
      RTL8211F PHY available with all the RX/TX delay specifics.
      Signed-off-by: NMartin Blumenstingl <martin.blumenstingl@googlemail.com>
      Reviewed-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3aec743d
  6. 02 12月, 2019 1 次提交
  7. 20 8月, 2019 1 次提交
  8. 16 8月, 2019 1 次提交
  9. 15 8月, 2019 1 次提交
  10. 12 8月, 2019 1 次提交
    • H
      net: phy: realtek: add support for the 2.5Gbps PHY in RTL8125 · 087f5b87
      Heiner Kallweit 提交于
      This adds support for the integrated 2.5Gbps PHY in Realtek RTL8125.
      Advertisement of 2.5Gbps mode is done via a vendor-specific register.
      Same applies to reading NBase-T link partner advertisement.
      Unfortunately this 2.5Gbps PHY shares the PHY ID with the integrated
      1Gbps PHY's in other Realtek network chips and so far no method is
      known to differentiate them. As a workaround use a dedicated fake PHY ID
      that is set by the network driver by intercepting the MDIO PHY ID read.
      
      v2:
      - Create dedicated PHY driver and use a fake PHY ID that is injected by
        the network driver. Suggested by Andrew Lunn.
      Signed-off-by: NHeiner Kallweit <hkallweit1@gmail.com>
      Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      087f5b87
  11. 14 5月, 2019 1 次提交
  12. 12 5月, 2019 1 次提交
  13. 11 5月, 2019 1 次提交
  14. 09 5月, 2019 2 次提交
  15. 05 4月, 2019 1 次提交
  16. 03 4月, 2019 1 次提交
  17. 24 2月, 2019 1 次提交
    • L
      net: phy: realtek: Dummy IRQ calls for RTL8366RB · 4c8e0459
      Linus Walleij 提交于
      This fixes a regression introduced by
      commit 0d2e778e
      "net: phy: replace PHY_HAS_INTERRUPT with a check for
      config_intr and ack_interrupt".
      
      This assumes that a PHY cannot trigger interrupt unless
      it has .config_intr() or .ack_interrupt() implemented.
      A later patch makes the code assume both need to be
      implemented for interrupts to be present.
      
      But this PHY (which is inside a DSA) will happily
      fire interrupts without either callback.
      
      Implement dummy callbacks for .config_intr() and
      .ack_interrupt() in the phy header to fix this.
      
      Tested on the RTL8366RB on D-Link DIR-685.
      
      Fixes: 0d2e778e ("net: phy: replace PHY_HAS_INTERRUPT with a check for config_intr and ack_interrupt")
      Cc: Heiner Kallweit <hkallweit1@gmail.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4c8e0459
  18. 04 2月, 2019 1 次提交
  19. 23 1月, 2019 1 次提交
  20. 12 11月, 2018 2 次提交
  21. 08 11月, 2018 1 次提交
  22. 05 11月, 2018 1 次提交
    • H
      net: phy: realtek: fix RTL8201F sysfs name · 0432e833
      Holger Hoffstätte 提交于
      Since 4.19 the following error in sysfs has appeared when using the
      r8169 NIC driver:
      
      $cd /sys/module/realtek/drivers
      $ls -l
      ls: cannot access 'mdio_bus:RTL8201F 10/100Mbps Ethernet': No such file or directory
      [..garbled dir entries follow..]
      
      Apparently the forward slash in "10/100Mbps Ethernet" is interpreted
      as directory separator that leads nowhere, and was introduced in commit
      513588dd ("net: phy: realtek: add RTL8201F phy-id and functions").
      
      Fix this by removing the offending slash in the driver name.
      
      Other drivers in net/phy seem to have the same problem, but I cannot
      test/verify them.
      
      Fixes: 513588dd ("net: phy: realtek: add RTL8201F phy-id and functions")
      Signed-off-by: NHolger Hoffstätte <holger@applied-asynchrony.com>
      Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0432e833
  23. 18 7月, 2018 1 次提交
    • L
      net: phy: realtek: Support RTL8366RB variant · d8545825
      Linus Walleij 提交于
      The RTL8366RB is an ASIC with five internal PHYs for
      LAN0..LAN3 and WAN. The PHYs are spawn off the main
      device so they can be handled in a distributed manner
      by the Realtek PHY driver. All that is really needed
      is the power save feature enablement and letting the
      PHY driver core pick up the IRQ from the switch chip.
      
      Cc: Antti Seppälä <a.seppala@gmail.com>
      Cc: Roman Yeryomin <roman@advem.lv>
      Cc: Colin Leitner <colin.leitner@googlemail.com>
      Cc: Gabor Juhos <juhosg@openwrt.org>
      Cc: Florian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d8545825
  24. 17 7月, 2018 1 次提交
  25. 02 7月, 2018 2 次提交
  26. 30 6月, 2018 1 次提交
    • H
      net: phy: realtek: add support for RTL8211 · d241d4aa
      Heiner Kallweit 提交于
      In preparation of adding phylib support to the r8169 driver we need
      PHY drivers for all chip-internal PHY types. Fortunately almost all
      of them are either supported by the Realtek PHY driver already or work
      with the genphy driver.
      Still missing is support for the PHY of RTL8169s, it requires a quirk
      to properly support 100Mbit-fixed mode. The quirk was copied from
      r8169 driver which copied it from the vendor driver.
      Based on the PHYID the internal PHY seems to be a RTL8211.
      Signed-off-by: NHeiner Kallweit <hkallweit1@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d241d4aa
  27. 29 5月, 2018 1 次提交
  28. 22 3月, 2018 1 次提交
  29. 17 1月, 2018 1 次提交
  30. 03 12月, 2017 5 次提交
  31. 02 12月, 2017 1 次提交
  32. 14 11月, 2017 1 次提交