From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C9944606A31C for ; Sun, 29 Nov 2026 11:26:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=soSWA9bf Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4jclGH3rWSz2yQJ; Sun, 29 Nov 2026 22:26:15 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip="2a00:1450:4864:20::231" ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1795946665; cv=none; b=gpy0vTOt9ljo2Sf9CK0J8xcaPByzwqtkk6J7PpkWVhdTIxwWsNYTF7rhdjLPad1GMqE8n2azvY49BsreW7uIjT6DMn7EhN5+xSDl31MKgvXnf3o1VlHV8Mh2QYHU7yZBqJO4LSpjhxP7e3pbp21XJQ5vhEnUS+4Rm/e9zQiL70jTLSh3vnt6AqOxI+z5er3QJMVNBsY8X31VSxCpaF1/T+SfnE1OYfSS3Zr7v3s/bbgTp2nPYY/tXezSOUQZ/A3B7sSlyFRgDLT1XJCBQzXKxZ19MBQL5KCayniEQvsP1sfMaDKHFuTbICookeJ/HT0bLeITmiGocejc5YH1tUFNwg== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1795946665; c=relaxed/relaxed; bh=06+NPpqn5G8Ro/Gm5QXDgo5VblblhgCPMQPCIgaBL/k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Hi460UTv9cwCzFuIgRL78gQnDcvkDYeVxCeIXmmTu3iPQTnSzsb+tnn7aq8vvyrpOoudU+iUwdsr4KEMMShUYm9vCXCVagyO0uPJtfqjankSYVlvAvy8k6iKuqIqQJlphvylyTnsR2E7pmzs9bVVr9Ij0fwfWr306JgsUE/W0DN2QSpk2bTVwcxHpAhsuE1Ccgu/spfC8ub8flyiBstp5RWlZOCEv7XN+OTD6Ekk9BbjAPoVGXa0oAGboaFN3qrEi0fX+K+mGYU2YlULaeoLC0M6IohT/qRc+/0J+ASDCoJWvfWrclSJlMotz0QjPiowDI/aNJSyZG5LCszewh4Jyg== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=soSWA9bf; dkim-atps=neutral; spf=pass (client-ip=2a00:1450:4864:20::231; helo=mail-lj1-x231.google.com; envelope-from=naranjo.manuel@gmail.com; receiver=lists.ozlabs.org) smtp.mailfrom=gmail.com Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=soSWA9bf; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2a00:1450:4864:20::231; helo=mail-lj1-x231.google.com; envelope-from=naranjo.manuel@gmail.com; receiver=lists.ozlabs.org) Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4jcjRr1rt0z2xKx for ; Sun, 29 Nov 2026 21:04:24 +1100 (AEDT) Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-3ae85add512so80387211fa.0 for ; Sun, 29 Nov 2026 02:04:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795946660; x=1796551460; darn=lists.ozlabs.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=06+NPpqn5G8Ro/Gm5QXDgo5VblblhgCPMQPCIgaBL/k=; b=soSWA9bfGvWaeab12xXb0RxJhBjkV5+O83mkzERGYwja28f231lRsjvfl0j1v6oz7E 5RY96qnUDKxvCkb5bkDiTpArKpHabLhpefo0YJ1oQQjG7vDHAapXIh1dq47GcO+vDGDw tgcG6s4BLFIPxz8Eer91u3C+3oO+dZ9/cq/MKozAeQmr0s3PZUH6bDCDVGVhWY6NesLp +vk4NyJzw4sfK1Ya3R2zIOU6iJOtVFNWXSu58ff4lljsdhiGemkGeRdyr14wCfwe02UA Teac5eJuzfBJVO3sxqr7JKeDjW9ZWxxo4dWNKNJLOJEUK9Arcbk5EhK3vHKu0x+XIRJ6 Eyhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795946660; x=1796551460; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=06+NPpqn5G8Ro/Gm5QXDgo5VblblhgCPMQPCIgaBL/k=; b=dY2LgIs6gJZqxUKeNHom3hN4eshobMkrAzltAAGkBkOdZJFDrq2OW6x7RIjxPvijaH mY9UdE3ZKEvrlJEHvGsqUlSiBdr1gk2nqX+ojxwcplDMBL+rzw7xNJ0z4j54yRByjsMI SImo9FF+9cbYEd3rHui97DL3CRQlkcxo81D2nXPNK9sbiDS+8FVFSqrKypsT1ffDcBr0 25iIkDtcEG31h1ONMK/axs10+krtE1YyPjXkNEPqbr/kkD98zA0NjRqPGq/YP7zAsfgA 89SBQhDNNcDXGhDW0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0:465:3fb2 with SMTP id 2adb3069b0e04-5c1bc691013mr8058648e87.3.1795946660016; Sun, 29 Nov 2026 02:04:20 -0800 (PST) Received: from ubuntu-mnaranjo-hetzner.taild673f0.ts.net (static.121.93.109.65.clients.your-server.de. [65.109.93.121]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5c1bd0419c2sm7186887e87.52.2026.11.29.02.04.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 02:04:19 -0800 (PST) From: Manuel Naranjo To: Johan Hovold , Greg Kroah-Hartman , Jiri Kosina , Benjamin Tissoires Cc: linux-usb@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Bogendoerfer , Madhavan Srinivasan , linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Manuel Naranjo Subject: [PATCH 1/2] USB: serial: remove aircable driver Date: Sun, 29 Nov 2026 11:03:52 +0100 Message-ID: <20261129100353.3055950-2-naranjo.manuel@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261129100353.3055950-1-naranjo.manuel@gmail.com> References: <20261129100353.3055950-1-naranjo.manuel@gmail.com> X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , Precedence: list X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Remove the aircable USB serial driver for AIRcable USB Bluetooth dongles. The AIRcable USB hardware was last sold over 20 years ago and is no longer available or testable. As the original author of the driver, remove it along with its Kconfig, Makefile, and defconfig entries. Signed-off-by: Manuel Naranjo --- arch/mips/configs/mtx1_defconfig | 1 - arch/powerpc/configs/ppc6xx_defconfig | 1 - drivers/usb/serial/Kconfig | 8 -- drivers/usb/serial/Makefile | 1 - drivers/usb/serial/aircable.c | 160 -------------------------- 5 files changed, 171 deletions(-) delete mode 100644 drivers/usb/serial/aircable.c diff --git a/arch/mips/configs/mtx1_defconfig b/arch/mips/configs/mtx1_defconfig index 095176c3d..326b7a59b 100644 --- a/arch/mips/configs/mtx1_defconfig +++ b/arch/mips/configs/mtx1_defconfig @@ -465,7 +465,6 @@ CONFIG_USB_MDC800=m CONFIG_USB_MICROTEK=m CONFIG_USB_SERIAL=m CONFIG_USB_SERIAL_GENERIC=y -CONFIG_USB_SERIAL_AIRCABLE=m CONFIG_USB_SERIAL_ARK3116=m CONFIG_USB_SERIAL_BELKIN=m CONFIG_USB_SERIAL_WHITEHEAT=m diff --git a/arch/powerpc/configs/ppc6xx_defconfig b/arch/powerpc/configs/ppc6xx_defconfig index 8aab229fb..e77696a42 100644 --- a/arch/powerpc/configs/ppc6xx_defconfig +++ b/arch/powerpc/configs/ppc6xx_defconfig @@ -819,7 +819,6 @@ CONFIG_USB_MICROTEK=m CONFIG_USB_USS720=m CONFIG_USB_SERIAL=m CONFIG_USB_SERIAL_GENERIC=y -CONFIG_USB_SERIAL_AIRCABLE=m CONFIG_USB_SERIAL_ARK3116=m CONFIG_USB_SERIAL_BELKIN=m CONFIG_USB_SERIAL_CH341=m diff --git a/drivers/usb/serial/Kconfig b/drivers/usb/serial/Kconfig index ef8d1c73c..2d163003b 100644 --- a/drivers/usb/serial/Kconfig +++ b/drivers/usb/serial/Kconfig @@ -76,14 +76,6 @@ config USB_SERIAL_SIMPLE To compile this driver as a module, choose M here: the module will be called usb-serial-simple. -config USB_SERIAL_AIRCABLE - tristate "USB AIRcable Bluetooth Dongle Driver" - help - Say Y here if you want to use USB AIRcable Bluetooth Dongle. - - To compile this driver as a module, choose M here: the module - will be called aircable. - config USB_SERIAL_ARK3116 tristate "USB ARK Micro 3116 USB Serial Driver" help diff --git a/drivers/usb/serial/Makefile b/drivers/usb/serial/Makefile index c7bb1a881..3936bead1 100644 --- a/drivers/usb/serial/Makefile +++ b/drivers/usb/serial/Makefile @@ -11,7 +11,6 @@ usbserial-y := usb-serial.o generic.o bus.o usbserial-$(CONFIG_USB_SERIAL_CONSOLE) += console.o -obj-$(CONFIG_USB_SERIAL_AIRCABLE) += aircable.o obj-$(CONFIG_USB_SERIAL_ARK3116) += ark3116.o obj-$(CONFIG_USB_SERIAL_BELKIN) += belkin_sa.o obj-$(CONFIG_USB_SERIAL_CH341) += ch341.o diff --git a/drivers/usb/serial/aircable.c b/drivers/usb/serial/aircable.c deleted file mode 100644 index 2a76f1f0e..000000000 --- a/drivers/usb/serial/aircable.c +++ /dev/null @@ -1,160 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -/* - * AIRcable USB Bluetooth Dongle Driver. - * - * Copyright (C) 2010 Johan Hovold - * Copyright (C) 2006 Manuel Francisco Naranjo (naranjo.manuel@gmail.com) - * - * The device works as an standard CDC device, it has 2 interfaces, the first - * one is for firmware access and the second is the serial one. - * The protocol is very simply, there are two possibilities reading or writing. - * When writing the first urb must have a Header that starts with 0x20 0x29 the - * next two bytes must say how much data will be sent. - * When reading the process is almost equal except that the header starts with - * 0x00 0x20. - * - * The device simply need some stuff to understand data coming from the usb - * buffer: The First and Second byte is used for a Header, the Third and Fourth - * tells the device the amount of information the package holds. - * Packages are 60 bytes long Header Stuff. - * When writing to the device the first two bytes of the header are 0x20 0x29 - * When reading the bytes are 0x00 0x20, or 0x00 0x10, there is an strange - * situation, when too much data arrives to the device because it sends the data - * but with out the header. I will use a simply hack to override this situation, - * if there is data coming that does not contain any header, then that is data - * that must go directly to the tty, as there is no documentation about if there - * is any other control code, I will simply check for the first - * one. - * - * I have taken some info from a Greg Kroah-Hartman article: - * http://www.linuxjournal.com/article/6573 - * And from Linux Device Driver Kit CD, which is a great work, the authors taken - * the work to recompile lots of information an knowledge in drivers development - * and made it all available inside a cd. - * URL: http://kernel.org/pub/linux/kernel/people/gregkh/ddk/ - * - */ - -#include -#include -#include -#include -#include -#include -#include - -/* Vendor and Product ID */ -#define AIRCABLE_VID 0x16CA -#define AIRCABLE_USB_PID 0x1502 - -/* Protocol Stuff */ -#define HCI_HEADER_LENGTH 0x4 -#define TX_HEADER_0 0x20 -#define TX_HEADER_1 0x29 -#define RX_HEADER_0 0x00 -#define RX_HEADER_1 0x20 -#define HCI_COMPLETE_FRAME 64 - -/* rx_flags */ -#define THROTTLED 0x01 -#define ACTUALLY_THROTTLED 0x02 - -#define DRIVER_AUTHOR "Naranjo, Manuel Francisco , Johan Hovold " -#define DRIVER_DESC "AIRcable USB Driver" - -/* ID table that will be registered with USB core */ -static const struct usb_device_id id_table[] = { - { USB_DEVICE(AIRCABLE_VID, AIRCABLE_USB_PID) }, - { }, -}; -MODULE_DEVICE_TABLE(usb, id_table); - -static int aircable_prepare_write_buffer(struct usb_serial_port *port, - void *dest, size_t size) -{ - int count; - unsigned char *buf = dest; - - count = kfifo_out_locked(&port->write_fifo, buf + HCI_HEADER_LENGTH, - size - HCI_HEADER_LENGTH, &port->lock); - buf[0] = TX_HEADER_0; - buf[1] = TX_HEADER_1; - put_unaligned_le16(count, &buf[2]); - - return count + HCI_HEADER_LENGTH; -} - -static int aircable_calc_num_ports(struct usb_serial *serial, - struct usb_serial_endpoints *epds) -{ - /* Ignore the first interface, which has no bulk endpoints. */ - if (epds->num_bulk_out == 0) { - dev_dbg(&serial->interface->dev, - "ignoring interface with no bulk-out endpoints\n"); - return -ENODEV; - } - - return 1; -} - -static int aircable_process_packet(struct usb_serial_port *port, - int has_headers, char *packet, int len) -{ - if (has_headers) { - len -= HCI_HEADER_LENGTH; - packet += HCI_HEADER_LENGTH; - } - if (len <= 0) { - dev_dbg(&port->dev, "%s - malformed packet\n", __func__); - return 0; - } - - tty_insert_flip_string(&port->port, packet, len); - - return len; -} - -static void aircable_process_read_urb(struct urb *urb) -{ - struct usb_serial_port *port = urb->context; - char *data = urb->transfer_buffer; - int has_headers; - int count; - int len; - int i; - - has_headers = (urb->actual_length > 2 && data[0] == RX_HEADER_0); - - count = 0; - for (i = 0; i < urb->actual_length; i += HCI_COMPLETE_FRAME) { - len = min_t(int, urb->actual_length - i, HCI_COMPLETE_FRAME); - count += aircable_process_packet(port, has_headers, - &data[i], len); - } - - if (count) - tty_flip_buffer_push(&port->port); -} - -static struct usb_serial_driver aircable_device = { - .driver = { - .name = "aircable", - }, - .id_table = id_table, - .bulk_out_size = HCI_COMPLETE_FRAME, - .calc_num_ports = aircable_calc_num_ports, - .process_read_urb = aircable_process_read_urb, - .prepare_write_buffer = aircable_prepare_write_buffer, - .throttle = usb_serial_generic_throttle, - .unthrottle = usb_serial_generic_unthrottle, -}; - -static struct usb_serial_driver * const serial_drivers[] = { - &aircable_device, NULL -}; - -module_usb_serial_driver(serial_drivers, id_table); - -MODULE_AUTHOR(DRIVER_AUTHOR); -MODULE_DESCRIPTION(DRIVER_DESC); -MODULE_LICENSE("GPL v2"); -- 2.53.0