Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3700427imm; Thu, 17 May 2018 13:09:15 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqu4pNpoPogGbcJcfoA6ERocw7LfvGg256h4ru7NGEs9VyQ5LUm640vmgJMbzvpmHXk77hS X-Received: by 2002:a65:57cf:: with SMTP id q15-v6mr5045357pgr.185.1526587755351; Thu, 17 May 2018 13:09:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526587755; cv=none; d=google.com; s=arc-20160816; b=Y9wQ+SpE8dCpKb2azP4M4L9ovHSqq+UoY7bgsAID42bdfigIbayoESay+t7JJLfVD/ mM+XNkWQX16HocoYIypzbL6PGPGG42WIM4cQOhHFu9Fihj7XBZs6pWhUIanocz81YIyU l30GY9aWDk1en0zeT2eJE1pn0fBfbGmkSDmZNfIoM5aqz+DTvQAh92n8K1RSXOWbRv2B G52LdUCIL8+GI6JROD2Utux/NBOQtHyyJJ3TJHABmdcwdMtgWhYZ+LPepYUbe+8VEQQ9 hBijOODnuRgwzNkF+nHO4p6f2M+IUDUowQCaCRCFi0u0AXUpTj5cR9HFqW5r7owKrcyx oXfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=LaHZfYBgr8v/rnp6iDLjVxOB1SWqa6yDG9xQY9NsjKw=; b=xfoffRiXGZrrOUAw1/ouCr693c7zzc1icC9KfgcnAHdWQGFHDiFOsqT03uIsNoycLH /dvPg+MhQ8W8+uiXrQWIGuL/Xgf0EKMnmeNIq36pBiEj7hBYU2Mxq3i8GMxQ11TBV9Oj 5qpWjZemAsRXTEiD9zq4v7w7Z3qI3ZqZxV+aHMPH4XYXjU4bn8pNkjWKGf9zHuiqf8C+ 12J194hoQipSM0CsQogQLONwzwq0tSC+CvGZUAAJ9lDIZPgPXExL/LP9sQIPhVbKfGGh lGRVRS13p5rLh6ZhdO0+wJXN7ha+b9e2X0agIs2Dsnyu0MewMZTXqEV0+rAn72fn9PMr ctdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IHNSAc3x; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a14-v6si5840946plt.484.2018.05.17.13.09.00; Thu, 17 May 2018 13:09:15 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IHNSAc3x; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752329AbeEQUI1 (ORCPT + 99 others); Thu, 17 May 2018 16:08:27 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:36214 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752014AbeEQUHx (ORCPT ); Thu, 17 May 2018 16:07:53 -0400 Received: by mail-pl0-f66.google.com with SMTP id v24-v6so3182140plo.3; Thu, 17 May 2018 13:07:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=LaHZfYBgr8v/rnp6iDLjVxOB1SWqa6yDG9xQY9NsjKw=; b=IHNSAc3x9GZd0cTRXhXyLgIhGDq5lSKINmfwG9AMrmSYck9nHVryG1KQquKDWmRYES fqwYxP14LfQHvEl3RWWAakxfptZbPAVymL+BDcc7ZYemd0xivcdqN119EX11ScAdwK2u QZeoio4oe8boLA0O9vnqJkBlxxkWS2zw65aKUFZCIxwDJ0vWy4VJB3St0NKxt5BxdOt9 m1TXKs9P9B1eNQWF8dgItHSrDk4pjVX1A+18nbMlVuPR0l86W71/xfqroQ3dDJCijfvL 1QQ6WDoOYaBTQLzXpSkw9vRQqADe/5rkcGxRrzVvqosSOYDDwMW4HBDeRax5S0hTfvY7 ZsIg== 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:in-reply-to :references; bh=LaHZfYBgr8v/rnp6iDLjVxOB1SWqa6yDG9xQY9NsjKw=; b=ph5Vq83KxSHjC/y0WSxaHx6kW5MlPw8GThWKgLc8mM43Is5T0aU0vI+3oNcQHVJf/7 NLZ9qFYKGskRUWlMpFxqwWSFXuqB35fMSQBfDbYX+QHCdfCxf/kVXx/PJl7TdUOCUqWK Er+mGFgLSKiE7pj1Q2YIALZFLb7eCNGgNoW8Dj5U4MEHY/Ob+W2BVSOrnQkMaKHZLSn4 q5TJhwM8y6yx2KtK7cRLfeEdadf52LI41fMVgiP+u5H82MxLmxk2W8DONl1cCm6nCoNQ nOgOBQqgSlru03WKGbXdDw+sAWNUKzqCzedNAEvZumAN6nrlbxVOqMYydBsRKy9SXciM ZZgQ== X-Gm-Message-State: ALKqPwcHsXKpTeZ88QzA8VGWkU09v6wAuOIZeOLvyVpPdKbYbEFHC5Ad 2cakN5AdVRyPk9/SxJ56zAvUXEgc X-Received: by 2002:a17:902:7d87:: with SMTP id a7-v6mr6707651plm.264.1526587672232; Thu, 17 May 2018 13:07:52 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.250]) by smtp.gmail.com with ESMTPSA id i1-v6sm10855485pfj.83.2018.05.17.13.07.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 May 2018 13:07:51 -0700 (PDT) From: Florian Fainelli To: netdev@vger.kernel.org Cc: fugang.duan@nxp.com, Florian Fainelli , "David S. Miller" , Andrew Lunn , linux-kernel@vger.kernel.org (open list) Subject: [PATCH net-next v3 2/3] net: ethernet: freescale: Allow FEC with COMPILE_TEST Date: Thu, 17 May 2018 13:07:44 -0700 Message-Id: <20180517200745.19142-3-f.fainelli@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180517200745.19142-1-f.fainelli@gmail.com> References: <20180517200745.19142-1-f.fainelli@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Freescale FEC driver builds fine with COMPILE_TEST, so make that possible. Signed-off-by: Florian Fainelli --- drivers/net/ethernet/freescale/Kconfig | 2 +- drivers/net/ethernet/freescale/fec.h | 2 +- drivers/net/ethernet/freescale/fec_main.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/freescale/Kconfig b/drivers/net/ethernet/freescale/Kconfig index 6e490fd2345d..a580a3dcbe59 100644 --- a/drivers/net/ethernet/freescale/Kconfig +++ b/drivers/net/ethernet/freescale/Kconfig @@ -22,7 +22,7 @@ if NET_VENDOR_FREESCALE config FEC tristate "FEC ethernet controller (of ColdFire and some i.MX CPUs)" depends on (M523x || M527x || M5272 || M528x || M520x || M532x || \ - ARCH_MXC || SOC_IMX28) + ARCH_MXC || SOC_IMX28 || COMPILE_TEST) default ARCH_MXC || SOC_IMX28 if ARM select PHYLIB imply PTP_1588_CLOCK diff --git a/drivers/net/ethernet/freescale/fec.h b/drivers/net/ethernet/freescale/fec.h index e7381f8ef89d..4778b663653e 100644 --- a/drivers/net/ethernet/freescale/fec.h +++ b/drivers/net/ethernet/freescale/fec.h @@ -21,7 +21,7 @@ #if defined(CONFIG_M523x) || defined(CONFIG_M527x) || defined(CONFIG_M528x) || \ defined(CONFIG_M520x) || defined(CONFIG_M532x) || defined(CONFIG_ARM) || \ - defined(CONFIG_ARM64) + defined(CONFIG_ARM64) || defined(CONFIG_COMPILE_TEST) /* * Just figures, Motorola would have to change the offsets for * registers in the same peripheral device on different models diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c index f3e43db0d6cb..4358f586e28f 100644 --- a/drivers/net/ethernet/freescale/fec_main.c +++ b/drivers/net/ethernet/freescale/fec_main.c @@ -2107,7 +2107,7 @@ static int fec_enet_get_regs_len(struct net_device *ndev) /* List of registers that can be safety be read to dump them with ethtool */ #if defined(CONFIG_M523x) || defined(CONFIG_M527x) || defined(CONFIG_M528x) || \ defined(CONFIG_M520x) || defined(CONFIG_M532x) || defined(CONFIG_ARM) || \ - defined(CONFIG_ARM64) + defined(CONFIG_ARM64) || defined(CONFIG_COMPILE_TEST) static u32 fec_enet_register_offset[] = { FEC_IEVENT, FEC_IMASK, FEC_R_DES_ACTIVE_0, FEC_X_DES_ACTIVE_0, FEC_ECNTRL, FEC_MII_DATA, FEC_MII_SPEED, FEC_MIB_CTRLSTAT, FEC_R_CNTRL, -- 2.14.1