1. 26 1月, 2020 32 次提交
  2. 13 1月, 2020 8 次提交
    • G
      net: amd: a2065: Use print_hex_dump_debug() helper · e07c5f2e
      Geert Uytterhoeven 提交于
      Use the print_hex_dump_debug() helper, instead of open-coding the same
      operations.
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: NJakub Kicinski <kuba@kernel.org>
      e07c5f2e
    • G
      net: amd: a2065: Kill Sun LANCE relics · 2412643a
      Geert Uytterhoeven 提交于
      Remove unused fields, copied from the Sun LANCE driver eons ago.
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: NJakub Kicinski <kuba@kernel.org>
      2412643a
    • J
      Merge branch 'IXP4xx-networking-cleanups' · cbd19d09
      Jakub Kicinski 提交于
      Linus Walleij says:
      
      ====================
      IXP4xx networking cleanups
      
      This is a patch series which jams together Arnds and mine
      cleanups for the IXP4xx networking.
      
      I also have patches for device tree support but that
      requires more elaborate work, this series is some of
      mine and some of Arnds patches that is a good foundation
      for his multiplatform work and my device tree work.
      
      These are for application to the networking tree so
      that can be taken in one separate sweep.
      
      I have tested the patches for a bit using zeroday builds
      and some boots on misc IXP4xx devices and haven't run
      into any major problems. We might find some new stuff
      as a result from the new compiler coverage.
      
      I had to depromote enabling compiler coverage at one
      point in the v2 set because it depended on other patches
      making the code more generic.
      
      The change in v3 was simply dropping one offending
      patch hardcoding base addresses into the driver.
      
      The change in v4 drops a stable@ tag that was
      unnecessary.
      
      This v5 is a rebase of the v4 patch set on top of
      net-next.
      ====================
      Signed-off-by: NJakub Kicinski <kuba@kernel.org>
      cbd19d09
    • L
      net: ethernet: ixp4xx: Use parent dev for DMA pool · e45d0fad
      Linus Walleij 提交于
      Use the netdevice struct device .parent field when calling
      dma_pool_create(): the .dma_coherent_mask and .dma_mask
      pertains to the bus device on the hardware (platform)
      bus in this case, not the struct device inside the network
      device. This makes the pool allocation work.
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NJakub Kicinski <kuba@kernel.org>
      e45d0fad
    • L
      ARM/net: ixp4xx: Pass ethernet physical base as resource · f458ac47
      Linus Walleij 提交于
      In order to probe this ethernet interface from the device tree
      all physical MMIO regions must be passed as resources. Begin
      this rewrite by first passing the port base address as a
      resource for all platforms using this driver, remap it in
      the driver and avoid using any reference of the statically
      mapped virtual address in the driver.
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NJakub Kicinski <kuba@kernel.org>
      f458ac47
    • L
      net: ehernet: ixp4xx: Use netdev_* messages · 3cb5b0ee
      Linus Walleij 提交于
      Simplify and correct a bunch of messages using printk
      directly to use the netdev_* macros. I have not changed
      all of them, just the low-hanging fruit.
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NJakub Kicinski <kuba@kernel.org>
      3cb5b0ee
    • L
      net: ethernet: ixp4xx: Use distinct local variable · d813d7e5
      Linus Walleij 提交于
      Use "ndev" for the struct net_device and "dev" for the
      struct device in probe() and remove(). Add the local
      "dev" pointer for later use in refactoring.
      
      Take this opportunity to fix inverse christmas tree
      coding style.
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NJakub Kicinski <kuba@kernel.org>
      d813d7e5
    • L
      net: ethernet: ixp4xx: Standard module init · c83db9ef
      Linus Walleij 提交于
      The IXP4xx driver was initializing the MDIO bus before even
      probing, in the callbacks supposed to be used for setting up
      the module itself, and with the side effect of trying to
      register the MDIO bus as soon as this module was loaded or
      compiled into the kernel whether the device was discovered
      or not.
      
      This does not work with multiplatform environments.
      
      To get rid of this: set up the MDIO bus from the probe()
      callback and remove it in the remove() callback. Rename
      the probe() and remove() calls to reflect the most common
      conventions.
      
      Since there is a bit of checking for the ethernet feature
      to be present in the MDIO registering function, making the
      whole module not even be registered if we can't find an
      MDIO bus, we need something similar: register the MDIO
      bus when the corresponding ethernet is probed, and
      return -EPROBE_DEFER on the other interfaces until this
      happens. If no MDIO bus is present on any of the
      registered interfaces we will eventually bail out.
      
      None of the platforms I've seen has e.g. MDIO on EthB
      and only uses EthC, there is always a Ethernet hardware
      on the NPE (B, C) that has the MDIO bus, we just might
      have to wait for it.
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NJakub Kicinski <kuba@kernel.org>
      c83db9ef