Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp374622pxu; Thu, 26 Nov 2020 00:26:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJyo+zQH0yXNxPs7rqt5O05N8L+NSHj8Hk8n74WZSwkxiYtz5vWeYbaBemZETKFIwylBL6Xs X-Received: by 2002:a05:6402:b35:: with SMTP id bo21mr1471269edb.52.1606379186383; Thu, 26 Nov 2020 00:26:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606379186; cv=none; d=google.com; s=arc-20160816; b=x1zmTociBSMW9AADnO4EaEDWkPdLrdaW3G4oDQP6RadjbfuZjo4Aeh+fY6qOSZp9Sg 08ldXqQMY/izMZ0/KQr1YLsYvzvPFUF0jTArUcdElw9Dv7boBbZvcNasQLH/kZzDJjx2 HE9MlR5So9hb3pAv802DRxx4pSbdsFiEr4yx+rQzwqNjmpiMZYMSuhFp0k0jplBfPyGE SLKiEVaOer6osxqKFfsmNZO8pSOKOmdcEcoR7Brs4fXWuCnTgQc9OUfwDYRm41DjKyKt kA/TIX/sLOpN/Q2jN+A3HD7YCSlndHWbSd1CfM0z/PWdem5jr6Tg4msX5N7cI8fy1nKQ a6Bw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=48D/74s0jeJnWuMepYKE1HuxkEOzGGYFHOuAlfMHtks=; b=Y7TrGaIXcxkF6M/Qewmlpoq57zcgRlsgAhc1qh+R53uE0hRuInmlkNMDYQaVXtg8Ut k+jJt8zisZX5QVPffvkh8MNz/enTP/gqTZliDcasWIn9e8tuq6CIDe19Gy/wSqTxEkFX jpOGdC/hpXSU+2c5KD/RP6JdV5rE/IkrSBJfE6HDQKocqqfCzTknMYQI37wh1/9Qmq6Z fn1IXk+EW/0jfs9S8q9HNhu+23Jt9ADSJOHz0LkOYIcPVuN0GAxJqAA+DsiY1UJol8nn NLK7i5Fi7Ve8MoDtAxNCqU7E9o388NC2ctDGgF0GLQEoTTnJncIQnOfABY5mP/wUr8yB 08MA== 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 s10si2634918ejb.154.2020.11.26.00.26.02; Thu, 26 Nov 2020 00:26:26 -0800 (PST) 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 S1731559AbgKYXZw (ORCPT + 99 others); Wed, 25 Nov 2020 18:25:52 -0500 Received: from mail-out.m-online.net ([212.18.0.10]:44830 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730872AbgKYXZw (ORCPT ); Wed, 25 Nov 2020 18:25:52 -0500 X-Greylist: delayed 25610 seconds by postgrey-1.27 at vger.kernel.org; Wed, 25 Nov 2020 18:25:50 EST Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4ChH7b4jj5z1rwZq; Thu, 26 Nov 2020 00:25:45 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4ChH7Y1vZ5z1vdfs; Thu, 26 Nov 2020 00:25:45 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id Bo2OedDOC47N; Thu, 26 Nov 2020 00:25:43 +0100 (CET) X-Auth-Info: Pw9YCvMdnOzlHdaksvWkRNQhWgJkn2CYCowWoZ/VK/w= Received: from localhost.localdomain (89-64-5-98.dynamic.chello.pl [89.64.5.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Thu, 26 Nov 2020 00:25:43 +0100 (CET) From: Lukasz Majewski To: Fugang Duan , "David S . Miller" , Jakub Kicinski , netdev@vger.kernel.org, Andrew Lunn , Fabio Estevam , Vivien Didelot Cc: NXP Linux Team , Florian Fainelli , Vladimir Oltean , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan , stefan.agner@toradex.com, krzk@kernel.org, Shawn Guo , Lukasz Majewski Subject: [RFC 1/4] net: fec: Move some defines to ./drivers/net/ethernet/freescale/fec.h header Date: Thu, 26 Nov 2020 00:24:56 +0100 Message-Id: <20201125232459.378-2-lukma@denx.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201125232459.378-1-lukma@denx.de> References: <20201125232459.378-1-lukma@denx.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org After this change ECR (control register) defines are moved to fec.h, so they can be reused by L2 switch code. Signed-off-by: Lukasz Majewski --- drivers/net/ethernet/freescale/fec.h | 3 +++ drivers/net/ethernet/freescale/fec_main.c | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/freescale/fec.h b/drivers/net/ethernet/freescale/fec.h index 832a2175636d..c555a421f647 100644 --- a/drivers/net/ethernet/freescale/fec.h +++ b/drivers/net/ethernet/freescale/fec.h @@ -189,6 +189,9 @@ #define FEC_RXIC2 0xfff #endif /* CONFIG_M5272 */ +/* FEC ECR bits definition */ +#define FEC_ECR_MAGICEN (1 << 2) +#define FEC_ECR_SLEEP (1 << 3) /* * Define the buffer descriptor structure. diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c index fb37816a74db..bd29c84fd89a 100644 --- a/drivers/net/ethernet/freescale/fec_main.c +++ b/drivers/net/ethernet/freescale/fec_main.c @@ -249,9 +249,6 @@ MODULE_PARM_DESC(macaddr, "FEC Ethernet MAC address"); #define FEC_MMFR_RA(v) ((v & 0x1f) << 18) #define FEC_MMFR_TA (2 << 16) #define FEC_MMFR_DATA(v) (v & 0xffff) -/* FEC ECR bits definition */ -#define FEC_ECR_MAGICEN (1 << 2) -#define FEC_ECR_SLEEP (1 << 3) #define FEC_MII_TIMEOUT 30000 /* us */ -- 2.20.1