Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3274822imm; Mon, 8 Oct 2018 00:50:12 -0700 (PDT) X-Google-Smtp-Source: ACcGV639D5KQmGdDf4ht+bjBXpAc8eAshjCk5lU8zot+/L36ulQ8CJuHy99mYv67nm/xHg6Wj9Se X-Received: by 2002:a63:84c1:: with SMTP id k184-v6mr10461781pgd.196.1538985012286; Mon, 08 Oct 2018 00:50:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538985012; cv=none; d=google.com; s=arc-20160816; b=aXnZmDAraDO7UNVHR/N2Eb0eQtM0N7xt0gYsQbWbu2YrhMx7Sfs+GHniQWIt1bEkrE 6QiZTVWokpjrgR/5/SH56BP0+W2NfSnS1EIMsYhoqzjN+/YBd6w0HxJmqgXqgA5Ge0no WktIviMHECDA1fqqadL7YlhLX+ab1tBahrqLthhZ7MsNS1XvVe48asQ/ABamEmt7TvwN PsrU4nE7veXq3IDooHEnvlZgWLt4a3vz4dTm3EUrwiaz3tkvqo6brRXymFRUmKVbC25r Cvp1S59yZCzEaQse7VgcVyF4eIBjSp0HrfEYZRwClb+dfudun6XMYNWbcAyc0aZBi6W5 3faA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=QKdcLBIf9OCIcRmCwQDGrc1GCJzzuaOrvfUCKiWwNlk=; b=m1NYNC6QvXPtPms+oFeYqohpVi2xp14S9fOZL2zU03rrwZywN6QJe2EVqMoIroebVI FCcXqY0lHUeaPhIv3VQ3CCl0mSkIHHWOq82PsCgTQKlv8/9lk15Su9voUHijI/8FE2sF tQ/BOUSQ5i4nVup2h2R9G4PenJN3upXBrFdd3wJE4DLYQkjYMa7UytmnPjPCe4uKf89f oQX+OBAfvbu5iVAZxJiTe+uPKWPx1sHuY8Km3ima2tJFJxX67w+RgByRxgtSG/fgK60m OQEy/FxbuR9kaFHOtDXLikcZDmfdodeUvge2UKh4i8L3EO6UTWkcrYxzFEcHbbe9frdI 1sAg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v11-v6si17052839pgj.276.2018.10.08.00.49.57; Mon, 08 Oct 2018 00:50:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726908AbeJHO6n (ORCPT + 99 others); Mon, 8 Oct 2018 10:58:43 -0400 Received: from inva021.nxp.com ([92.121.34.21]:46666 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725973AbeJHO6m (ORCPT ); Mon, 8 Oct 2018 10:58:42 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id BF61220011C; Mon, 8 Oct 2018 09:48:17 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 6D8732000FD; Mon, 8 Oct 2018 09:48:13 +0200 (CEST) Received: from titan.ap.freescale.net (TITAN.ap.freescale.net [10.192.208.233]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 53ABD402D8; Mon, 8 Oct 2018 15:48:07 +0800 (SGT) From: Yangbo Lu To: linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org, netdev@vger.kernel.org, Richard Cochran , "David S . Miller" , Ioana Radulescu , Greg Kroah-Hartman , Andrew Lunn Cc: Yangbo Lu Subject: [v3, 1/6] net: dpaa2: move DPAA2 PTP driver out of staging/ Date: Mon, 8 Oct 2018 15:44:25 +0800 Message-Id: <20181008074430.34379-1-yangbo.lu@nxp.com> X-Mailer: git-send-email 2.14.1 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch is to move DPAA2 PTP driver out of staging/ since the dpaa2-eth had been moved out. Signed-off-by: Yangbo Lu --- Changes for v2: - Renamed files rtc.* as dpaa2-ptp.*. Changes for v3: - Added more help info for config FSL_DPAA2_ETH. --- drivers/net/ethernet/freescale/Kconfig | 9 +-------- drivers/net/ethernet/freescale/dpaa2/Kconfig | 17 +++++++++++++++++ drivers/net/ethernet/freescale/dpaa2/Makefile | 6 ++++-- .../ethernet/freescale/dpaa2/dpaa2-ptp.c} | 2 +- .../ethernet/freescale/dpaa2/dpaa2-ptp.h} | 0 .../ethernet/freescale/dpaa2}/dprtc-cmd.h | 0 .../rtc => net/ethernet/freescale/dpaa2}/dprtc.c | 0 .../rtc => net/ethernet/freescale/dpaa2}/dprtc.h | 0 drivers/staging/fsl-dpaa2/Kconfig | 8 -------- drivers/staging/fsl-dpaa2/Makefile | 1 - drivers/staging/fsl-dpaa2/rtc/Makefile | 7 ------- 11 files changed, 23 insertions(+), 27 deletions(-) create mode 100644 drivers/net/ethernet/freescale/dpaa2/Kconfig rename drivers/{staging/fsl-dpaa2/rtc/rtc.c => net/ethernet/freescale/dpaa2/dpaa2-ptp.c} (99%) rename drivers/{staging/fsl-dpaa2/rtc/rtc.h => net/ethernet/freescale/dpaa2/dpaa2-ptp.h} (100%) rename drivers/{staging/fsl-dpaa2/rtc => net/ethernet/freescale/dpaa2}/dprtc-cmd.h (100%) rename drivers/{staging/fsl-dpaa2/rtc => net/ethernet/freescale/dpaa2}/dprtc.c (100%) rename drivers/{staging/fsl-dpaa2/rtc => net/ethernet/freescale/dpaa2}/dprtc.h (100%) delete mode 100644 drivers/staging/fsl-dpaa2/rtc/Makefile diff --git a/drivers/net/ethernet/freescale/Kconfig b/drivers/net/ethernet/freescale/Kconfig index 7a30276..d3a62bc 100644 --- a/drivers/net/ethernet/freescale/Kconfig +++ b/drivers/net/ethernet/freescale/Kconfig @@ -96,13 +96,6 @@ config GIANFAR on the 8540. source "drivers/net/ethernet/freescale/dpaa/Kconfig" - -config FSL_DPAA2_ETH - tristate "Freescale DPAA2 Ethernet" - depends on FSL_MC_BUS && FSL_MC_DPIO - depends on NETDEVICES && ETHERNET - ---help--- - Ethernet driver for Freescale DPAA2 SoCs, using the - Freescale MC bus driver +source "drivers/net/ethernet/freescale/dpaa2/Kconfig" endif # NET_VENDOR_FREESCALE diff --git a/drivers/net/ethernet/freescale/dpaa2/Kconfig b/drivers/net/ethernet/freescale/dpaa2/Kconfig new file mode 100644 index 0000000..67e6461 --- /dev/null +++ b/drivers/net/ethernet/freescale/dpaa2/Kconfig @@ -0,0 +1,17 @@ +config FSL_DPAA2_ETH + tristate "Freescale DPAA2 Ethernet" + depends on FSL_MC_BUS && FSL_MC_DPIO + depends on NETDEVICES && ETHERNET + help + This is the DPAA2 Ethernet driver supporting Freescale SoCs + with DPAA2 (DataPath Acceleration Architecture v2). + The driver manages network objects discovered on the Freescale + MC bus. + +config FSL_DPAA2_PTP_CLOCK + tristate "Freescale DPAA2 PTP Clock" + depends on FSL_DPAA2_ETH && POSIX_TIMERS + select PTP_1588_CLOCK + help + This driver adds support for using the DPAA2 1588 timer module + as a PTP clock. diff --git a/drivers/net/ethernet/freescale/dpaa2/Makefile b/drivers/net/ethernet/freescale/dpaa2/Makefile index 9315ecd..2f424e0 100644 --- a/drivers/net/ethernet/freescale/dpaa2/Makefile +++ b/drivers/net/ethernet/freescale/dpaa2/Makefile @@ -3,9 +3,11 @@ # Makefile for the Freescale DPAA2 Ethernet controller # -obj-$(CONFIG_FSL_DPAA2_ETH) += fsl-dpaa2-eth.o +obj-$(CONFIG_FSL_DPAA2_ETH) += fsl-dpaa2-eth.o +obj-$(CONFIG_FSL_DPAA2_PTP_CLOCK) += fsl-dpaa2-ptp.o -fsl-dpaa2-eth-objs := dpaa2-eth.o dpaa2-ethtool.o dpni.o +fsl-dpaa2-eth-objs := dpaa2-eth.o dpaa2-ethtool.o dpni.o +fsl-dpaa2-ptp-objs := dpaa2-ptp.o dprtc.o # Needed by the tracing framework CFLAGS_dpaa2-eth.o := -I$(src) diff --git a/drivers/staging/fsl-dpaa2/rtc/rtc.c b/drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.c similarity index 99% rename from drivers/staging/fsl-dpaa2/rtc/rtc.c rename to drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.c index 0d52cb8..2e90d5a 100644 --- a/drivers/staging/fsl-dpaa2/rtc/rtc.c +++ b/drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.c @@ -9,7 +9,7 @@ #include #include -#include "rtc.h" +#include "dpaa2-ptp.h" struct ptp_dpaa2_priv { struct fsl_mc_device *rtc_mc_dev; diff --git a/drivers/staging/fsl-dpaa2/rtc/rtc.h b/drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.h similarity index 100% rename from drivers/staging/fsl-dpaa2/rtc/rtc.h rename to drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.h diff --git a/drivers/staging/fsl-dpaa2/rtc/dprtc-cmd.h b/drivers/net/ethernet/freescale/dpaa2/dprtc-cmd.h similarity index 100% rename from drivers/staging/fsl-dpaa2/rtc/dprtc-cmd.h rename to drivers/net/ethernet/freescale/dpaa2/dprtc-cmd.h diff --git a/drivers/staging/fsl-dpaa2/rtc/dprtc.c b/drivers/net/ethernet/freescale/dpaa2/dprtc.c similarity index 100% rename from drivers/staging/fsl-dpaa2/rtc/dprtc.c rename to drivers/net/ethernet/freescale/dpaa2/dprtc.c diff --git a/drivers/staging/fsl-dpaa2/rtc/dprtc.h b/drivers/net/ethernet/freescale/dpaa2/dprtc.h similarity index 100% rename from drivers/staging/fsl-dpaa2/rtc/dprtc.h rename to drivers/net/ethernet/freescale/dpaa2/dprtc.h diff --git a/drivers/staging/fsl-dpaa2/Kconfig b/drivers/staging/fsl-dpaa2/Kconfig index 59aaae7..991e154 100644 --- a/drivers/staging/fsl-dpaa2/Kconfig +++ b/drivers/staging/fsl-dpaa2/Kconfig @@ -16,11 +16,3 @@ config FSL_DPAA2_ETHSW ---help--- Driver for Freescale DPAA2 Ethernet Switch. Select BRIDGE to have support for bridge tools. - -config FSL_DPAA2_PTP_CLOCK - tristate "Freescale DPAA2 PTP Clock" - depends on FSL_DPAA2_ETH && POSIX_TIMERS - select PTP_1588_CLOCK - help - This driver adds support for using the DPAA2 1588 timer module - as a PTP clock. diff --git a/drivers/staging/fsl-dpaa2/Makefile b/drivers/staging/fsl-dpaa2/Makefile index 464f242..c92ab98 100644 --- a/drivers/staging/fsl-dpaa2/Makefile +++ b/drivers/staging/fsl-dpaa2/Makefile @@ -3,4 +3,3 @@ # obj-$(CONFIG_FSL_DPAA2_ETHSW) += ethsw/ -obj-$(CONFIG_FSL_DPAA2_PTP_CLOCK) += rtc/ diff --git a/drivers/staging/fsl-dpaa2/rtc/Makefile b/drivers/staging/fsl-dpaa2/rtc/Makefile deleted file mode 100644 index 5468da0..0000000 --- a/drivers/staging/fsl-dpaa2/rtc/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -# -# Makefile for the Freescale DPAA2 PTP clock -# - -obj-$(CONFIG_FSL_DPAA2_PTP_CLOCK) += dpaa2-rtc.o - -dpaa2-rtc-objs := rtc.o dprtc.o -- 1.7.1