Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp146575pxb; Fri, 16 Apr 2021 01:49:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdnCCfEzfoniARoO51l7UlGyWnJcZB7vG+1Z3yg1vDMJabAuvc8r2QfzZZXvjjz6PfGFdi X-Received: by 2002:a17:906:ecb0:: with SMTP id qh16mr7538146ejb.415.1618562965131; Fri, 16 Apr 2021 01:49:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618562965; cv=none; d=google.com; s=arc-20160816; b=fOFouKWiM47RLPQxo5MTAqGEAUllSZcAjl59UXoUEh99359XpPN6ML1ZEGvm8bnhUK x9ezKlPvvd9uaadkfujff5Qlm6nlTKRKsRD6EDUKOi7G9vKFez32zoAZKHNj+uOXKA41 LBO51GfnyWUV4/1RTU1AOnEt4TYT6P44BmQjVXbjo2QzUXlwYAcP6hY0NNig4z0CPlkz 3jIaVYgVM91Jbx2W47St2neiiPUnOYFfjUbzO2uRh4vRqsKlMIKSKh1e1iZQyMxdeYEr MCITViVundAzBxFv+PY95WvPRSKnUUyKZ1O+izG7/1v5gE0MENQu2gpo/qeUMqdZxuPw g9wg== 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=u9pGokrLr3S7L5NUrPMBsoRM9VnXIVYMqs8j0OxtQIE=; b=GdB/Qq3dTffGdua2jWaOGZJxZq6aZwGHzUvbxS3jFE3NMFN09YzZzJL+4FICk19R0u C2Aor2nyMXgKlT/G5iklpS3ItoumFPD9pWRPRCdVRUe1RN8UIUieK+UYNA8jzVSvIA6d gEuTZ7xemwbwYRBn+voR+L60PAlJD3o1K3mR5pjrYsavyB897Xh9kIkS0qdj6ypwR7s4 K3bZ1s3L9EeAH+aCrRTAyG7Bt5cbK0WeLJdf2zpMmgCV7LPBZmw7xpjTKkSyInZvaVGE Hj7Fnj4r/3UfQxMd0Oz1AwOnlShWdOgtPhfLL9TkNo1zDEsSeAZcWh0W1j9XFLCEjTzE CTiw== 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 ds7si4547610ejc.598.2021.04.16.01.49.02; Fri, 16 Apr 2021 01:49:25 -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 S240880AbhDPIrm (ORCPT + 99 others); Fri, 16 Apr 2021 04:47:42 -0400 Received: from mx2.suse.de ([195.135.220.15]:45910 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240846AbhDPIrk (ORCPT ); Fri, 16 Apr 2021 04:47:40 -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 68C62AE86; Fri, 16 Apr 2021 08:47:14 +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 v4 net-next 00/10] net: Korina improvements Date: Fri, 16 Apr 2021 10:47:01 +0200 Message-Id: <20210416084712.62561-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 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