From patchwork Thu Aug 30 00:40:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Moritz Fischer X-Patchwork-Id: 963716 Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 4213nC3HQ9z9ryt for ; Thu, 30 Aug 2018 10:50:23 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727338AbeH3Etv (ORCPT ); Thu, 30 Aug 2018 00:49:51 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:38292 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725836AbeH3EtX (ORCPT ); Thu, 30 Aug 2018 00:49:23 -0400 Received: by mail-pf1-f193.google.com with SMTP id x17-v6so3057774pfh.5 for ; Wed, 29 Aug 2018 17:49:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Ixak4wWVJ8yuojewKcz4wT551koQdYX2V8RI8GCDCEQ=; b=cuZYyN+9tI/kn6QWmXpTL6lgKOuCQLRDKqAKTQA53P5z0/82mN9Y9dGB9/aKcnf/Uf dy6nEuVJf7/lqGgsSfX2zPq1WeHslcDuyLik+2gg2JP3UWXEmueWKS/GOsxtstsrdGSQ HH81Zp6yzY94IB/M7rhKWtwtxycEu/B89CVEaaNhQLkdknFmbS3swHtXNgTd3hXx/s/O EQWurPSvyPV/bxkbXgq0X/oU5TwEq5tAX/cFTrAdWH/peOicdXVpSw5c6TR/0KXobhhX uvzaYjwcYCzen/q5h60K19ebGWkHWurQ83LPft/oMGcOJ/wOf50tIgNu4Qc1LFDZ7R48 gATQ== X-Gm-Message-State: APzg51DSpocm5hYOi8LZho/dJwauPhQqAzCqQwfx/30XTMfhH8hk4i6x p+gyegaw5YQui9GCa8Q70E0iyw== X-Google-Smtp-Source: ANB0VdZJYdf8Dk6aIXZrQJeZJ+06fT8UnZv37o/RRpyZOq80Z0xxnuib4JcTBifunwztqrYyq6GfXA== X-Received: by 2002:a62:9b46:: with SMTP id r67-v6mr8112832pfd.105.1535590193996; Wed, 29 Aug 2018 17:49:53 -0700 (PDT) Received: from localhost ([207.114.172.147]) by smtp.gmail.com with ESMTPSA id n22-v6sm12878074pfj.68.2018.08.29.17.49.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 29 Aug 2018 17:49:53 -0700 (PDT) From: Moritz Fischer To: davem@davemloft.net Cc: keescook@chromium.org, f.fainelli@gmail.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, alex.williams@ni.com, Moritz Fischer Subject: [PATCH net-next 0/3] nixge: fixed-link support Date: Wed, 29 Aug 2018 17:40:43 -0700 Message-Id: <20180830004046.9417-1-mdf@kernel.org> X-Mailer: git-send-email 2.18.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hi, this series adds support for using nixge with fixed-link nodes, as well as an early attempt to support nixge as a subdevice of another device. This series goes on top of: https://lkml.org/lkml/2018/8/28/1011 Patch 1: Adds of based fixed-link support, and hopefully isn't too controversial barring grave mistakes. Patch 2: Is an attempt at making sure that nixge works as a subdevice of another (pci) device without a PHY. Note that same as Patch 3 the actual platform data might still change since the parent device driver is still under development. So this is more of an RFC, too. Patch 3: Is more of an RFC at this point since the PCI parent device is still under development, but required to run with IOMMU support. Feedback on this one would be appreciated. Thanks for your input, Moritz Moritz Fischer (3): net: nixge: Add support for fixed-link subnodes net: nixge: Add support for having nixge as subdevice net: nixge: Use sysdev instead of ndev->dev.parent for DMA drivers/net/ethernet/ni/nixge.c | 187 ++++++++++++++++++++++------ include/linux/platform_data/nixge.h | 19 +++ 2 files changed, 165 insertions(+), 41 deletions(-) create mode 100644 include/linux/platform_data/nixge.h