Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp328842pxb; Tue, 12 Apr 2022 03:02:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwD7WV3TXQdvp5aP+qnKkuDOTENrxh9Osry5yZY/ptQ06kN93fSLuHSSK6FVvwuATpeXz/Z X-Received: by 2002:a17:902:ce02:b0:151:a86d:dc2b with SMTP id k2-20020a170902ce0200b00151a86ddc2bmr37400685plg.57.1649757731062; Tue, 12 Apr 2022 03:02:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649757731; cv=none; d=google.com; s=arc-20160816; b=TMhnB0oxpNvZiO9JJqXmgz4X4I006gmu2zJL6PzrkOii4jARgEo2GE+zD5GtUcqEUA HI8+MvHn4yP6fRvwz2xVab6uThuw4oc+q2SpQQZVCFtZXbz/8D4h0JnymyUMRZmf8Q5T zoD9po0XplLIyXdzY3z+dYziCO4+jPtXbj09tHHZZxZK7PsQbjX0D2bzaifpoVOSSpDP bo2oHrLsnfqpLdeqvu7G+5qaCh5qHP0Y9SKyFv3J/dsRirZFpdudutHUfBV7QBnfUuXs qD3VdFuvTjobI2x2dT3mjnUw/4c8HMonHuhXZfkGptPwApaBswCtOgIUWI/I398QF+xZ nXEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=+eu2wQlB5vG4V8jFxSAFXM1pvVWmKleo0oxXp9ETggY=; b=lq/pYPVbV3mFjQlxRjKYLXpSda6QpxlcvFqjz4qYr88mj/GTxID5gtg4SPGA0vuMWt IyY1/O3HTlfec/zqY2Hx4WUniHCSui9C7HcrFjDeo96HsMbH4dZnBjrhVsrnpPd5xCD4 PrZBL6oxzRRAT28l1/khODIdN8Su4/ghvCCLanHNLu4qQsHj0+S18cr8yeesXaUYbxoj vKuBOc5QTaYM5ThRQmEIkqgBEmCcmnLHvcYjclDNvzj/9dgzNopKwbRwYzh9XYTp6/Wf ppzCgz+FTUpxvxWs4i01jTVtlRcOrlQxhwsV0qNULY3EBFzPxP5VvACm9MRgET/6AqSN dy3w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w16-20020a17090a529000b001c67621041bsi14357231pjh.110.2022.04.12.03.01.57; Tue, 12 Apr 2022 03:02:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350186AbiDKVsF (ORCPT + 99 others); Mon, 11 Apr 2022 17:48:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231344AbiDKVsE (ORCPT ); Mon, 11 Apr 2022 17:48:04 -0400 Received: from mslow1.mail.gandi.net (mslow1.mail.gandi.net [217.70.178.240]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC39A1A3B0; Mon, 11 Apr 2022 14:45:47 -0700 (PDT) Received: from relay4-d.mail.gandi.net (unknown [217.70.183.196]) by mslow1.mail.gandi.net (Postfix) with ESMTP id 69FA3C26B5; Mon, 11 Apr 2022 21:38:40 +0000 (UTC) Received: (Authenticated sender: frank@zago.net) by mail.gandi.net (Postfix) with ESMTPSA id 76453E0004; Mon, 11 Apr 2022 21:38:33 +0000 (UTC) Message-ID: <1fde1970-c7b7-a0a2-c68d-a3b26ec6621f@zago.net> Date: Mon, 11 Apr 2022 16:38:31 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH] HID: Add support for Mega World controller force feedback Content-Language: en-US To: Jiri Kosina Cc: Benjamin Tissoires , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220209052807.138007-1-frank@zago.net> From: Frank Zago In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/11/22 10:10, Jiri Kosina wrote: > On Tue, 8 Feb 2022, frank zago wrote: > >> This patch adds support for one of the several Mega World USB game >> controller with integrated force feedback. It is a HID based >> memory-less game controller, with a weak motor on the left, and a >> strong one on the right. >> >> Signed-off-by: frank zago >> --- >> drivers/hid/Kconfig | 14 ++++ >> drivers/hid/Makefile | 1 + >> drivers/hid/hid-ids.h | 3 + >> drivers/hid/hid-megaworld.c | 136 ++++++++++++++++++++++++++++++++++++ >> 4 files changed, 154 insertions(+) >> create mode 100644 drivers/hid/hid-megaworld.c >> >> diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig >> index f5544157576c..2344830d3680 100644 >> --- a/drivers/hid/Kconfig >> +++ b/drivers/hid/Kconfig >> @@ -684,6 +684,20 @@ config HID_MAYFLASH >> Say Y here if you have HJZ Mayflash PS3 game controller adapters >> and want to enable force feedback support. >> >> +config HID_MEGAWORLD >> + tristate "Mega World based game controller support" >> + depends on HID >> + help >> + Say Y here if you have a Mega World based game controller. >> + >> +config MEGAWORLD_FF >> + bool "Mega World based game controller force feedback support" >> + depends on HID_MEGAWORLD >> + select INPUT_FF_MEMLESS >> + help >> + Say Y here if you have a Mega World based game controller and want >> + to have force feedback support for it. >> + > > Hi Frank, > > as the *only* functionality provided by the driver seems to be the force > feedback, does it really make sense to decouple the two options? I don't think so, but that's what at least hid-tmff.c and hid-zpff.c are doing. I can rework the patch if you prefer to just have the HID_MEGAWORLD option. Frank.