From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752633AbcAWKfL (ORCPT ); Sat, 23 Jan 2016 05:35:11 -0500 Received: from devoid-pointer.net ([31.31.77.140]:34684 "EHLO smtp.devoid-pointer.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751735AbcAWKfG (ORCPT ); Sat, 23 Jan 2016 05:35:06 -0500 From: =?UTF-8?q?Michal=20Mal=C3=BD?= To: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Cc: dmitry.torokhov@gmail.com, jikos@kernel.org, elias.vds@gmail.com, edwin@velds.nl, simon@mungewell.org, =?UTF-8?q?Michal=20Mal=C3=BD?= Subject: [PATCH 0/2] Add a skeleton module to perform a basic initialization on certain USB devices Date: Sat, 23 Jan 2016 11:35:09 +0100 Message-Id: <1453545311-5721-1-git-send-email-madcatxster@devoid-pointer.net> X-Mailer: git-send-email 2.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This mini series adds a simple skeleton module whose only purpose is to bring devices that at first appear as a generic USB device into another mode that can be handled by a more specific subsystem. This patch was originally requested by Dmitry, reasoning that loading the entire xpad module just to switch a Logitech G920 wheel into HID mode is excessive and does not make much sense. The module can be extended to handle any other USB device that might require such a switch. Signed-off-by: Michal Malý Michal Malý (2): Add usb_skelswitch skeleton module to do basic initialization of devices that at first appear as a generic USB device. Use usb_skelswitch module to switch Logitech G920 Racing Wheel to HID mode. drivers/usb/Kconfig | 2 + drivers/usb/common/Kconfig | 17 +++++ drivers/usb/common/Makefile | 2 + drivers/usb/common/usb-skelswitch.c | 141 ++++++++++++++++++++++++++++++++++++ 4 files changed, 162 insertions(+) create mode 100644 drivers/usb/common/Kconfig create mode 100644 drivers/usb/common/usb-skelswitch.c -- 2.7.0