mbox series

[v2,net-next,0/9] net: Korina improvements

Message ID 20210414152946.12517-1-tsbogend@alpha.franken.de (mailing list archive)
Headers show
Series net: Korina improvements | expand

Message

Thomas Bogendoerfer April 14, 2021, 3:29 p.m. UTC
While converting Mikrotik RB532 support to use device tree I stumbled
over the korina ethernet driver, which used way too many MIPS specific
hacks. This series cleans this all up and adds support for device tree.

Changes in v2:
  - added device tree support to get rid of idt_cpu_freq
  - fixed compile test on 64bit archs
  - fixed descriptor current address handling by storing/using mapped
    dma addresses (dma controller modifies current address)

Thomas Bogendoerfer (9):
  net: korina: Fix MDIO functions
  net: korina: Use devres functions
  net: korina: Remove not needed cache flushes
  net: korina: Remove nested helpers
  net: korina: Use DMA API
  net: korina: Only pass mac address via platform data
  net: korina: Add support for device tree
  net: korina: Get mdio input clock via common clock framework
  net: korina: Make driver COMPILE_TESTable

 arch/mips/rb532/devices.c     |   5 +-
 drivers/net/ethernet/Kconfig  |   3 +-
 drivers/net/ethernet/korina.c | 603 ++++++++++++++++++++++++----------
 3 files changed, 439 insertions(+), 172 deletions(-)

Comments

David Miller April 14, 2021, 9:10 p.m. UTC | #1
From: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Date: Wed, 14 Apr 2021 17:29:36 +0200

> While converting Mikrotik RB532 support to use device tree I stumbled
> over the korina ethernet driver, which used way too many MIPS specific
> hacks. This series cleans this all up and adds support for device tree.
> 
> Changes in v2:
>   - added device tree support to get rid of idt_cpu_freq
>   - fixed compile test on 64bit archs
>   - fixed descriptor current address handling by storing/using mapped
>     dma addresses (dma controller modifies current address)

The last patch causes compile failures.  Incorrect number of
arguments to of_get_mac_address(), please fix this and resubmit,
thanks.