1. 30 10月, 2019 1 次提交
  2. 26 10月, 2019 2 次提交
  3. 12 9月, 2019 1 次提交
  4. 30 5月, 2019 4 次提交
  5. 23 5月, 2019 6 次提交
    • T
      net: phy: dp83867: Allocate state struct in probe · 565d9d22
      Trent Piepho 提交于
      This was being done in config the first time the phy was configured.
      Should be in the probe method.
      
      Cc: Andrew Lunn <andrew@lunn.ch>
      Cc: Florian Fainelli <f.fainelli@gmail.com>
      Cc: Heiner Kallweit <hkallweit1@gmail.com>
      Signed-off-by: NTrent Piepho <tpiepho@impinj.com>
      Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      565d9d22
    • T
      net: phy: dp83867: Validate FIFO depth property · f8bbf417
      Trent Piepho 提交于
      Insure property is in valid range and fail when reading DT if it is not.
      Also add error message for existing failure if required property is not
      present.
      
      Cc: Andrew Lunn <andrew@lunn.ch>
      Cc: Florian Fainelli <f.fainelli@gmail.com>
      Cc: Heiner Kallweit <hkallweit1@gmail.com>
      Signed-off-by: NTrent Piepho <tpiepho@impinj.com>
      Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f8bbf417
    • T
      net: phy: dp83867: IO impedance is not dependent on RGMII delay · 27708eb5
      Trent Piepho 提交于
      The driver would only set the IO impedance value when RGMII internal
      delays were enabled.  There is no reason for this.  Move the IO
      impedance block out of the RGMII delay block.
      
      Cc: Andrew Lunn <andrew@lunn.ch>
      Cc: Florian Fainelli <f.fainelli@gmail.com>
      Cc: Heiner Kallweit <hkallweit1@gmail.com>
      Signed-off-by: NTrent Piepho <tpiepho@impinj.com>
      Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      27708eb5
    • T
      net: phy: dp83867: Use unsigned variables to store unsigned properties · 1b9b2954
      Trent Piepho 提交于
      The variables used to store u32 DT properties were signed ints.  This
      doesn't work properly if the value of the property were to overflow.
      Use unsigned variables so this doesn't happen.
      
      Cc: Andrew Lunn <andrew@lunn.ch>
      Cc: Florian Fainelli <f.fainelli@gmail.com>
      Cc: Heiner Kallweit <hkallweit1@gmail.com>
      Signed-off-by: NTrent Piepho <tpiepho@impinj.com>
      Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1b9b2954
    • T
      net: phy: dp83867: Rework delay rgmii delay handling · c11669a2
      Trent Piepho 提交于
      The code was assuming the reset default of the delay control register
      was to have delay disabled.  This is what the datasheet shows as the
      register's initial value.  However, that's not actually true: the
      default is controlled by the PHY's pin strapping.
      
      If the interface mode is selected as RX or TX delay only, insure the
      other direction's delay is disabled.
      
      If the interface mode is just "rgmii", with neither TX or RX internal
      delay, one might expect that the driver should disable both delays.  But
      this is not what the driver does.  It leaves the setting at the PHY's
      strapping's default.  And that default, for no pins with strapping
      resistors, is to have delay enabled and 2.00 ns.
      
      Rather than change this behavior, I've kept it the same and documented
      it.  No delay will most likely not work and will break ethernet on any
      board using "rgmii" mode.  If the board is strapped to have a delay and
      is configured to use "rgmii" mode a warning is generated that "rgmii-id"
      should have been used.
      
      Also validate the delay values and fail if they are not in range.
      
      Cc: Andrew Lunn <andrew@lunn.ch>
      Cc: Florian Fainelli <f.fainelli@gmail.com>
      Cc: Heiner Kallweit <hkallweit1@gmail.com>
      Signed-off-by: NTrent Piepho <tpiepho@impinj.com>
      Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c11669a2
    • T
      net: phy: dp83867: Add ability to disable output clock · 13c83cf8
      Trent Piepho 提交于
      Generally, the output clock pin is only used for testing and only serves
      as a source of RF noise after this.  It could be used to daisy-chain
      PHYs, but this is uncommon.  Since the PHY can disable the output, make
      doing so an option.  I do this by adding another enumeration to the
      allowed values of ti,clk-output-sel.
      
      The code was not using the value DP83867_CLK_O_SEL_REF_CLK as one might
      expect: to select the REF_CLK as the output.  Rather it meant "keep
      clock output setting as is", which, depending on PHY strapping, might
      not be outputting REF_CLK.
      
      Change this so DP83867_CLK_O_SEL_REF_CLK means enable REF_CLK output.
      Omitting the property will leave the setting as is (which was the
      previous behavior in this case).
      
      Out of range values were silently converted into
      DP83867_CLK_O_SEL_REF_CLK.  Change this so they generate an error.
      
      Cc: Andrew Lunn <andrew@lunn.ch>
      Cc: Florian Fainelli <f.fainelli@gmail.com>
      Cc: Heiner Kallweit <hkallweit1@gmail.com>
      Signed-off-by: NTrent Piepho <tpiepho@impinj.com>
      Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      13c83cf8
  6. 16 4月, 2019 1 次提交
  7. 28 2月, 2019 1 次提交
  8. 07 2月, 2019 1 次提交
  9. 23 1月, 2019 1 次提交
  10. 12 11月, 2018 1 次提交
  11. 15 2月, 2018 1 次提交
  12. 02 12月, 2017 1 次提交
  13. 05 7月, 2017 1 次提交
  14. 23 3月, 2017 1 次提交
  15. 08 2月, 2017 2 次提交
  16. 17 1月, 2017 1 次提交
  17. 07 1月, 2017 1 次提交
    • G
      net: phy: dp83867: fix irq generation · 5ca7d1ca
      Grygorii Strashko 提交于
      For proper IRQ generation by DP83867 phy the INT/PWDN pin has to be
      programmed as an interrupt output instead of a Powerdown input in
      Configuration Register 3 (CFG3), Address 0x001E, bit 7 INT_OE = 1. The
      current driver doesn't do this and as result IRQs will not be generated by
      DP83867 phy even if they are properly configured in DT.
      
      Hence, fix IRQ generation by properly configuring CFG3.INT_OE bit and
      ensure that Link Status Change (LINK_STATUS_CHNG_INT) and Auto-Negotiation
      Complete (AUTONEG_COMP_INT) interrupt are enabled. After this the DP83867
      driver will work properly in interrupt enabled mode.
      Signed-off-by: NGrygorii Strashko <grygorii.strashko@ti.com>
      Reviewed-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5ca7d1ca
  18. 18 10月, 2016 1 次提交
  19. 03 7月, 2016 1 次提交
  20. 18 5月, 2016 4 次提交
  21. 08 1月, 2016 3 次提交
  22. 07 12月, 2015 1 次提交
  23. 27 7月, 2015 1 次提交
  24. 22 7月, 2015 1 次提交
  25. 09 6月, 2015 1 次提交