1. 12 12月, 2019 13 次提交
  2. 10 12月, 2019 2 次提交
  3. 08 12月, 2019 1 次提交
    • G
      net: phy: dp83867: fix hfs boot in rgmii mode · fafc5db2
      Grygorii Strashko 提交于
      The commit ef87f7da ("net: phy: dp83867: move dt parsing to probe")
      causes regression on TI dra71x-evm and dra72x-evm, where DP83867 PHY is
      used in "rgmii-id" mode - the networking stops working.
      Unfortunately, it's not enough to just move DT parsing code to .probe() as
      it depends on phydev->interface value, which is set to correct value abter
      the .probe() is completed and before calling .config_init(). So, RGMII
      configuration can't be loaded from DT.
      
      To fix and issue
      - move RGMII validation code to .config_init()
      - parse RGMII parameters in dp83867_of_init(), but consider them as
      optional.
      
      Fixes: ef87f7da ("net: phy: dp83867: move dt parsing to probe")
      Signed-off-by: NGrygorii Strashko <grygorii.strashko@ti.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      fafc5db2
  4. 07 12月, 2019 1 次提交
  5. 05 12月, 2019 2 次提交
  6. 02 12月, 2019 1 次提交
  7. 28 11月, 2019 1 次提交
  8. 27 11月, 2019 1 次提交
  9. 26 11月, 2019 2 次提交
  10. 24 11月, 2019 3 次提交
  11. 21 11月, 2019 3 次提交
  12. 20 11月, 2019 5 次提交
  13. 19 11月, 2019 5 次提交
    • M
      mdio_bus: fix mdio_register_device when RESET_CONTROLLER is disabled · 075e238d
      Marek Behún 提交于
      When CONFIG_RESET_CONTROLLER is disabled, the
      devm_reset_control_get_exclusive function returns -ENOTSUPP. This is not
      handled in subsequent check and then the mdio device fails to probe.
      
      When CONFIG_RESET_CONTROLLER is enabled, its code checks in OF for reset
      device, and since it is not present, returns -ENOENT. -ENOENT is handled.
      Add -ENOTSUPP also.
      
      This happened to me when upgrading kernel on Turris Omnia. You either
      have to enable CONFIG_RESET_CONTROLLER or use this patch.
      Signed-off-by: NMarek Behún <marek.behun@nic.cz>
      Fixes: 71dd6c0d ("net: phy: add support for reset-controller")
      Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
      Cc: Andrew Lunn <andrew@lunn.ch>
      Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
      Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      075e238d
    • C
      net: phy: dp83869: fix return of uninitialized variable ret · c21709e7
      Colin Ian King 提交于
      In the case where the call to phy_interface_is_rgmii returns zero
      the variable ret is left uninitialized and this is returned at
      the end of the function dp83869_configure_rgmii.  Fix this by
      returning 0 instead of the uninitialized value in ret.
      
      Addresses-Coverity: ("Uninitialized scalar variable")
      Fixes: 01db923e ("net: phy: dp83869: Add TI dp83869 phy")
      Signed-off-by: NColin Ian King <colin.king@canonical.com>
      Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c21709e7
    • C
      phy: mdio-sun4i: add missed regulator_disable in remove · 39c68b3f
      Chuhong Yuan 提交于
      The driver forgets to disable the regulator in remove like what is done
      in probe failure.
      Add the missed call to fix it.
      Signed-off-by: NChuhong Yuan <hslester96@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      39c68b3f
    • R
      net: phy: avoid matching all-ones clause 45 PHY IDs · b95e86d8
      Russell King 提交于
      We currently match clause 45 PHYs using any ID read from a MMD marked
      as present in the "Devices in package" registers 5 and 6.  However,
      this is incorrect.  45.2 says:
      
        "The definition of the term package is vendor specific and could be
         a chip, module, or other similar entity."
      
      so a package could be more or less than the whole PHY - a PHY could be
      made up of several modules instantiated onto a single chip such as the
      Marvell 88x3310, or some of the MMDs could be disabled according to
      chip configuration, such as the Broadcom 84881.
      
      In the case of Broadcom 84881, the "Devices in package" registers
      contain 0xc000009b, meaning that there is a PHYXS present in the
      package, but all registers in MMD 4 return 0xffff.  This leads to our
      matching code incorrectly binding this PHY to one of our generic PHY
      drivers.
      
      This patch changes the way we determine whether to attempt to match a
      MMD identifier, or use it to request a module - if the identifier is
      all-ones, then we skip over it. When reading the identifiers, we
      initialise phydev->c45_ids.device_ids to all-ones, only reading the
      device ID if the "Devices in package" registers indicates we should.
      
      This avoids the generic drivers incorrectly matching on a PHY ID of
      0xffffffff.
      Signed-off-by: NRussell King <rmk+kernel@armlinux.org.uk>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b95e86d8
    • R
      net: phy: marvell10g: add SFP+ support · 36023da1
      Russell King 提交于
      Add support for SFP+ cages to the Marvell 10G PHY driver. This is
      slightly complicated by the way phylib works in that we need to use
      a multi-step process to attach the SFP bus, and we also need to track
      the phylink state machine to know when the module's transmit disable
      signal should change state.
      
      With appropriate DT changes, this allows the SFP+ canges on the
      Macchiatobin platform to be functional.
      Signed-off-by: NRussell King <rmk+kernel@armlinux.org.uk>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      36023da1