Skip to content
Snippets Groups Projects
  1. Jun 24, 2016
  2. Jun 22, 2016
  3. Jun 21, 2016
    • Guillaume GARDET's avatar
    • Nathan Rossi's avatar
      net: phy: marvell: Do not reset 88e1310 after autoneg · 08e64cec
      Nathan Rossi authored
      
      Commit a058052c "net: phy: do not read configuration register on reset",
      changes the behaviour of the phy_reset function such that the state of
      the BMCR register is not preserved during reset.
      
      Change the config function for the m88e1310 so that it does not do a
      reset after configuring auto-negotiation.
      
      Signed-off-by: default avatarNathan Rossi <nathan@nathanrossi.com>
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      Cc: Michal Simek <michal.simek@xilinx.com>
      Cc: Stefan Roese <sr@denx.de>
      Acked-by: default avatarMichal Simek <michal.simek@xilinx.com>
      Acked-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
      Reviewed-by: default avatarStefan Roese <sr@denx.de>
      08e64cec
    • Alexey Firago's avatar
      net: phy: micrel: add support for KSZ886x switches in MIIM mode · 79887749
      Alexey Firago authored
      
      This patch adds a phy driver for the Micrel KSZ886x switches.
      
      Similarly to the KSZ8895, SoC MAC is directly connected to the switch
      MAC on the switch CPU port, so the link to the switch is always up.
      
      KSZ886x switches can be used in the following configuration modes:
      - Unmanaged mode with config stored in external EEPROM
      - Managed mode over SPI
      - Managed mode over I2C
      - Managed mode over mdio/mdc (aka MIIM or SMI)
      
      This patch supports only unmanaged and MIIM modes.
      
      Based on Micrel KSZ886x driver from Linux kernel and
      Micrel KSZ8895 driver from U-Boot.
      
      Verified with the KSZ8863MLL.
      
      Signed-off-by: default avatarAlexey Firago <alexey_firago@mentor.com>
      Acked-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
      79887749
    • Stephen Warren's avatar
      net: rtl8169: fix switching between adapters · dad7b740
      Stephen Warren authored
      
      The rtl8169 driver uses a global variable to store the register address
      of the adapter being operated upon. This is updated to point at the
      correct adapter when sending or receiving a packet, or shutting down the
      adapter, but not when initializing the adapter. Consequently, switching
      between different adapters within the same U-Boot runtime does not work
      correctly since the driver programs the wrong registers during
      rtl8169_eth_start() -> rtl8169_common_start() -> rtl8169_hw_start().
      
      Note that since rtl8169_eth_stop() does set the global variable, the
      second consecutive attempt to use the "new" adapter did work even before
      this patch, because each time network usage is shut down, the network
      core calls stop, which sets the variable so that the next start does
      actually initialize the hardware, and the adapter works.
      
      Equally, rtl8169_eth_probe() calls rtl_init() which sets the global, so
      if using only a single device, or if picking the "right" device (based on
      probe order) when multiple devices are present, ioaddr will already be set
      correctly from the get-go, so the issue does not occur.
      
      Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
      Acked-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
      dad7b740
    • Hans de Goede's avatar
      Kconfig: Add a new DISTRO_DEFAULTS Kconfig option · 9f823615
      Hans de Goede authored
      
      DISTRO_DEFAULTS is intended to mirror / replace
      include/config_distro_defaults.h.
      
      The intend is for boards which include this file to select this from
      their Kconfig files and when moving setting to Kconfig which are #define-ed
      in config_distro_defaults.h to select this from DISTRO_DEFAULTS so that
      boards which have selected DISTRO_DEFAULTS will keep the same configuration
      as before without needing any defconfig file changes.
      
      The initial list of selected things matches all settings recently removed
      from config_distro_defaults.h because they have been converted to Kconfig,
      with the exception of CMD_ELF and CMD_NET, which have a default of y, if
      the default of these ever changes they should be selected by DISTRO_DEFAULTS
      too.
      
      For testing and example purposes this commit also converts ARCH_SUNXI
      to use DISTRO_DEFAULT instead of selecting everything it needs itself.
      
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      9f823615
  4. Jun 20, 2016
Loading