From patchwork Fri Oct 29 01:19:05 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Gortmaker X-Patchwork-Id: 69521 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id B9ACEB70E3 for ; Fri, 29 Oct 2010 12:19:34 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758713Ab0J2BT3 (ORCPT ); Thu, 28 Oct 2010 21:19:29 -0400 Received: from mail.windriver.com ([147.11.1.11]:33960 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754449Ab0J2BT0 (ORCPT ); Thu, 28 Oct 2010 21:19:26 -0400 Received: from ALA-MAIL03.corp.ad.wrs.com (ala-mail03 [147.11.57.144]) by mail.windriver.com (8.14.3/8.14.3) with ESMTP id o9T1JP6k027409; Thu, 28 Oct 2010 18:19:25 -0700 (PDT) Received: from ala-mail06.corp.ad.wrs.com ([147.11.57.147]) by ALA-MAIL03.corp.ad.wrs.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 28 Oct 2010 18:19:24 -0700 Received: from yow-pgortmak-d1.corp.ad.wrs.com ([128.224.146.65]) by ala-mail06.corp.ad.wrs.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 28 Oct 2010 18:19:24 -0700 From: Paul Gortmaker To: davem@davemloft.net Cc: netdev@vger.kernel.org Subject: [PATCH 01/15] net: introduce legacy dir to absorb 10Mbit, ISA, EISA drivers Date: Thu, 28 Oct 2010 21:19:05 -0400 Message-Id: <1288315159-1350-2-git-send-email-paul.gortmaker@windriver.com> X-Mailer: git-send-email 1.7.3.2.146.g2d444 In-Reply-To: <1288315159-1350-1-git-send-email-paul.gortmaker@windriver.com> References: <1288315159-1350-1-git-send-email-paul.gortmaker@windriver.com> X-OriginalArrivalTime: 29 Oct 2010 01:19:24.0996 (UTC) FILETIME=[52ED7040:01CB7707] Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org There are lots of drivers that date back to the early 1990's when Linux was started, and they correspond to hardware and bus technologies that have largely disappeared from in-use hardware over 10 years ago. There is no need to have these drivers polluting the namespace in the top level drivers directory any longer; relocation to a subdirectory is long overdue. Start by creating this new home for these drivers so that they can be targeted and relocated. By leaving the default to include the legacy/Kconfig, we ensure people who have existing stores of their own .config files will not have drivers silently dropped from their builds. Since the legacy drivers have their probe ordering defined in the Space.c file, we don't have to strictly maintain any link order in moving things from Makefile to legacy/Makefile. Signed-off-by: Paul Gortmaker --- drivers/net/Kconfig | 14 ++++++++++++++ drivers/net/Makefile | 1 + drivers/net/legacy/Kconfig | 2 ++ drivers/net/legacy/Makefile | 3 +++ 4 files changed, 20 insertions(+), 0 deletions(-) create mode 100644 drivers/net/legacy/Kconfig create mode 100644 drivers/net/legacy/Makefile diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index f24179d..9515f76 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -28,6 +28,20 @@ menuconfig NETDEVICES # that for each of the symbols. if NETDEVICES +config NETDEVICES_LEGACY + default y + bool "Legacy 10+ year old drivers (10Mbit, ISA, EISA, MCA etc.)" + ---help--- + There are a lot of drivers that exist for really old network + hardware that have long since been out of production, and + are not really in active use by anyone with hardware that is + less than ten years old. Unless you are trying to use really + old hardware, you can say no here. + +if NETDEVICES_LEGACY +source "drivers/net/legacy/Kconfig" +endif + config IFB tristate "Intermediate Functional Block support" depends on NET_CLS_ACT diff --git a/drivers/net/Makefile b/drivers/net/Makefile index b8bf93d..8045271 100644 --- a/drivers/net/Makefile +++ b/drivers/net/Makefile @@ -299,3 +299,4 @@ obj-$(CONFIG_CAIF) += caif/ obj-$(CONFIG_OCTEON_MGMT_ETHERNET) += octeon/ obj-$(CONFIG_PCH_GBE) += pch_gbe/ +obj-$(CONFIG_NETDEVICES_LEGACY) += legacy/ diff --git a/drivers/net/legacy/Kconfig b/drivers/net/legacy/Kconfig new file mode 100644 index 0000000..4c23adf --- /dev/null +++ b/drivers/net/legacy/Kconfig @@ -0,0 +1,2 @@ + +# Legacy drivers for ancient ISA/EISA bus devices and the like. diff --git a/drivers/net/legacy/Makefile b/drivers/net/legacy/Makefile new file mode 100644 index 0000000..33fd752 --- /dev/null +++ b/drivers/net/legacy/Makefile @@ -0,0 +1,3 @@ +# +# Makefile for the Linux legacy network device drivers. +#