Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp595603rdg; Tue, 10 Oct 2023 22:40:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEyksCwntnq4X19wW7m50zmGolHqg6yAUxXO09FGiTR6RbaVHVylOarenvOXBgmtTDc2vIA X-Received: by 2002:a05:6808:f8b:b0:3a8:80ea:f0c6 with SMTP id o11-20020a0568080f8b00b003a880eaf0c6mr25656313oiw.29.1697002823043; Tue, 10 Oct 2023 22:40:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697002823; cv=none; d=google.com; s=arc-20160816; b=NgLCd0+IwDLQ2K61BAezxxLYaQWUS7f63dM99Rkt99ZTJnQw9+15FW8U/Z2AdXpD3/ pAf7twVp5LhMUQwgE58OORx43d9vqsVFgreCJW20uRA8QUH023rNKKuWoD3dbWugMftW BN4WW46ZsUvdvLoE7OMC7bwFve6GGuZlJUVSixSwgID1Fnea3uuOaGfA2/9Xo5EjmqVj GjByPXLIUdBB2qA6RSNtEkSNGgQi3p6L7KtKr5bsV2IPxY+6SU13Yxn+bKOeWFegQrMo VQKpazmHuVcVJo7IAdr12PpV7qtu5cFqxzP6KgW+O3OVdpyTZeOydzxzg4kFUnvXSsEu XGVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=ysoHJ5QwLVxuEA0swu6ukTS9r1ygFNgNOQks7HKEUd0=; fh=MMW5cz91xZdIZgjtFoZg75jz2IdRPFEpin31O4fomcg=; b=ottpN5sa4h5joJZBpLjm8fOpjLqerxC1O6YOcIjffcKmumNv8S8DDwwWlZqyCT2kUc IQsppl/r3TYK/I3f3o2bPrBc2ZbnLDYBkG0xlXha5DifLQvjjXsIP/uWd+Ly2LRTf1v+ EJ+TFjUd6KxKS1ABtxoF9ghBMQzIUEHjb9RtoQH+hINqUZEH+f41MZCf9ikaHY07ZNSP HbU0NVf155GrQUtHC5i2qlFtvv8BeKg8HzWs0o4IW7RsHKTpS4MBeptRUVo8eLmhVAqP /KfhnzLXb9FFUv/6F0DKa0ZV6zgQ6FwYKc+Z0WsNOEYR36L97llcL3/Ub7bfpipu55AU Mwzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=p1pIod+n; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id h11-20020a63f90b000000b00577f67a0614si12669695pgi.879.2023.10.10.22.40.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 22:40:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=p1pIod+n; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 2C268802813D; Tue, 10 Oct 2023 22:40:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229621AbjJKFkJ (ORCPT + 52 others); Wed, 11 Oct 2023 01:40:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbjJKFkH (ORCPT ); Wed, 11 Oct 2023 01:40:07 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 323C294; Tue, 10 Oct 2023 22:40:06 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B0FB1C433C7; Wed, 11 Oct 2023 05:40:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697002805; bh=DE1MlIKU2Xk7lH0G8Xq5HukEEdK1V6Gk4yGPDoDVpQE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=p1pIod+n4h+gn9IOziKd9fPHR/Hz6LvC0MkgdBsmUIOa0DgpxNrW2hlhSEouwl7LD 90NSLFQL9kWo0xvaHke9RtnXtAY5mgt6r/tIfrtlOU9UVrdBxxecGkRDnbws6DGAdx Bg9lw9wgvVPQ13YMxpZU4iF9Jw31bT1XTGkwESQRIykT44BN0uPamL+wIQZAqxdHMT e0N3qkT1uVVjSN9FeKfHdAe3ja11vBK89iOdRvNPHcInG27zRi64Fz+ohxALkdXPJu yxPiU4pVIBt9NJL73jg+ULTkL18XfmsS6SV0Yz5BJ+IX0NjDK+aggvRo2OeuXRA9uZ d5l9nEK7P3hNQ== From: Kalle Valo To: Greg Kroah-Hartman Cc: Arnd Bergmann , Arnd Bergmann , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Jakub Kicinski , Pavel Machek , "David S. Miller" , Larry Finger , linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-staging@lists.linux.dev Subject: Re: [PATCH] [RFC] wireless: move obsolete drivers to staging References: <20231010155444.858483-1-arnd@kernel.org> <2023101051-unmasked-cleaver-79b3@gregkh> Date: Wed, 11 Oct 2023 08:40:00 +0300 In-Reply-To: <2023101051-unmasked-cleaver-79b3@gregkh> (Greg Kroah-Hartman's message of "Tue, 10 Oct 2023 18:08:03 +0200") Message-ID: <87y1g94szz.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 10 Oct 2023 22:40:20 -0700 (PDT) X-Spam-Level: ** Greg Kroah-Hartman writes: > On Tue, Oct 10, 2023 at 05:27:29PM +0200, Arnd Bergmann wrote: > >> From: Arnd Bergmann >> >> While looking at the old drivers using the obsolete .ndo_do_ioctl() >> callback, I found a number of network drivers that are especially >> obsolete, in particular for 802.11b (11Mbit/s) or even older wireless >> networks, using non-busmaster ISA/PCMCIA style bus interfaces, and using >> the legacy wireless extension ioctls rather than the netlink interfaces >> that were meant to replace them in 2007. All of these drivers are >> obsolete or orphaned. >> >> We had previously discussed this topic, but nobody ever moved the >> files, so I now went through the list to my best knowledge. These >> are the drivers that I would classify as "probably unused" by now: >> >> - Atmel at76c502/at76c504/at76c506 is a PIO-only (PCMCIA, mini-PCI >> and Cardbus) 802.11b driver with incomplete CFG80211 support. >> The related at76c50x USB driver uses MAC80211 and remains. >> >> - Cisco Aironet is an 802.11b PCMCIA and mini-PCI with limited support >> for Cardbus DMA and for CFG80211. >> >> - HostAP is an ISA/PCMCIA style 802.11b driver supporting only >> wireless extensions, and some custom ioctls (already removed). >> Some devices include a legacy PCI bridge but no DMA. >> >> - Aviator/Raytheon is an early PCMCIA driver, apparently predating >> 802.11b and only supporting wireless extensions. >> >> - Planet WL3501 is another PCMCIA driver for pre-802.11b interfaces >> (2Mbit/s) with incomplete CFG80211 support >> >> - Zydas zd1201 is a USB 802.11b driver with limited support for >> CFG80211. >> >> - Orinoco is a PIO-only ISA/PCMCIA 802.11b device with extra bus >> interface connections for PCI/Cardbus/mini-PCI and a few >> pre-2002 Apple PowerMac variants. It supports both >> wireless extensions and CFG80211, but I could not tell if >> it requires using both. >> >> - Wireless RNDIS USB is a new-style CFG80211 driver for 802.11b >> and 802.11g USB hardware from around 2004 to 2006. This makes it >> more modern than any of the others, but Kalle already classified >> it as "legacy" in commit 298e50ad8eb8f ("wifi: move raycs, wl3501 >> and rndis_wlan to legacy directory"), so it stays with ray_cs and >> wl3501_cs. >> >> There are a few other drivers that are similar to these but that are >> more likely to still be needed, and are not moved here: >> >> - Intel ipw2x00 is a PCI bus-master device for 802.11a/b/g that was >> popular in "Centrino" branded laptops from 2003 to 2005, but it >> still requires wireless extensions. >> >> - Marvell Libertas is an 802.11a/b/g device with a number of bus >> interfaces (USB, SDIO, SPI, PCMCIA) and incomplete CFG80211 >> support. This one was used in the OLPC XO laptop and some other >> embedded devices that are still supported. >> >> - Some broadcom b43xx devices use the SSB bus that can be abstracted >> through PCMCIA. All of them use CFG80211. >> >> - The Sony Playstation 3 "gelic" ethernet driver contains a bridge >> and an 802.11b/g client chip that is controlled through a hypervisor >> interface from the OS, and it uses wireless extensions in the kernel >> driver. >> >> Link: https://lore.kernel.org/all/87imaeg4ar.fsf@codeaurora.org/ >> Signed-off-by: Arnd Bergmann > > Stuff in drivers/staging/ is to get code _into_ the main portion of the > kernel tree, not out. If these aren't being used, let's just drop them > entirely. > > What is the need to have them move to staging, only to have me delete > them in the next release after that (or after that?) Why delay and why > not just remove them now? We (the wireless folks) have been talking about dropping legacy drivers on and off for several years now. The problem is that we don't know which of them work and which not, for example IIRC someone reported recently that wl3501 still works. Personally I would be extremly happy to remove all the ancient drivers as that reduces the amount of code for us to maintain but is that the right thing to do for the users? I don't have an answer to that, comments very welcome. I have been also wondering if I should add warnings like this to every ancient driver to see if there are any users left: "wl3501 wireless driver will be removed in 2024. If the driver still works and you are using it send a report NOW to linux-wireless@vger.kernel.org to avoid the removal." But with the long release cycles the kernel and distros have I doubt waiting for a year is enough, it should be more like three years. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches