Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp148196pxb; Fri, 16 Apr 2021 01:53:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTDsSjId+GaRZk7AWMihWiOV7LFmeqn0EvZE3ZQOz91CryRh8W95mmPNAXTCg74rX5uqGy X-Received: by 2002:a17:906:5855:: with SMTP id h21mr7442447ejs.522.1618563211657; Fri, 16 Apr 2021 01:53:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618563211; cv=none; d=google.com; s=arc-20160816; b=P4v93iHfcTmNlV7miDy3Bc0qDBnNSkBDzxp/etrS4pbGSxz4X2ohYf7mfYVWO7xuMC /wX48M47sFyIux247dMhYLH4KHRZ3SKvFwDeaT6EgpswoCEPAZZtRla5cCCyQIekBBvN 7XdouGAhUenJ5KidgvPGLODZDemK7er7hfez0j3mnDu/g9OpepjsMjb6H6Ky5o8pwYI7 LrKPJFrU+nYVoiBRRQWpVqb8ROI3Dun9i9WJquQKgZBaaIIIm66wwXx70cG0nTrXUyBd Wli1ZUhJYwCsx8hXMVmKBKrR5xCFNvxpX7RylUTgLosM85QaRzWJ0HG1yLDA1WCYYKsd tQxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from; bh=xXEIpdDklbl6/8k347ibzbvnqhRcSIA3tzRqert8Yq4=; b=lJ+K0z62udpcBb8dysRl60PzIxAolUS9QHc9vgIxHSHx9+FddpPyPCkhO9vaiy19IY grXfS3Uky7B9IHJuF/oKINyeFOVFIGbp8PnlMKbplPaqSP31JEFIZE2NeFsau3ZUwEK3 AGyivfUG7PPlosEJkSNZBVQ0EGtaXjhpC08J/mVyGXyEwUDkLsvJR94SVr6PZDmR0LVv X+J7PXnzY6mbhEDMU5xSgPuHsjscxdx3A/6/WxLWfUOvzbW80D+dy5Hej4sapYid06Rj JbX9T8uPiDNbgSwmevlIq85KkokQnwanyV+xRuc8B62whJWaDNtHjWRh9NWR+pjVlgn0 YUhw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g6si4143507ejy.703.2021.04.16.01.53.09; Fri, 16 Apr 2021 01:53:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240778AbhDPIwf (ORCPT + 99 others); Fri, 16 Apr 2021 04:52:35 -0400 Received: from mx2.suse.de ([195.135.220.15]:53912 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236538AbhDPIwe (ORCPT ); Fri, 16 Apr 2021 04:52:34 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id A5205AEC6; Fri, 16 Apr 2021 08:52:08 +0000 (UTC) From: Thomas Bogendoerfer To: "David S. Miller" , Jakub Kicinski , Rob Herring , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org Subject: [PATCH v5 net-next 00/10] net: Korina improvements Date: Fri, 16 Apr 2021 10:51:56 +0200 Message-Id: <20210416085207.63181-1-tsbogend@alpha.franken.de> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 v5: - fixed email address in binding document, which prevented sending it Changes in v4: - improve error returns in mdio_read further - added clock name and improved clk handling - fixed bindind errors Changes in v3: - use readl_poll_timeout_atomic in mdio_wait - return -ETIMEDOUT, if mdio_wait failed - added DT binding and changed name to idt,3243x-emac - fixed usage of of_get_mac_address for net-next 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 (10): 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 dt-bindings: net: korina: Add DT bindings for IDT 79RC3243x SoCs .../bindings/net/idt,3243x-emac.yaml | 74 +++ arch/mips/rb532/devices.c | 5 +- drivers/net/ethernet/Kconfig | 3 +- drivers/net/ethernet/korina.c | 601 +++++++++++++----- 4 files changed, 511 insertions(+), 172 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/idt,3243x-emac.yaml -- 2.29.2