Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1790538pxb; Sat, 23 Jan 2021 05:51:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJyyS1BoS5TVIzQAx82zYrPhd2gDum9LtqJGVnbqcxt8mJouofge9flD/DNOPWE5C//8MLd6 X-Received: by 2002:a05:6402:5246:: with SMTP id t6mr6931690edd.62.1611409916577; Sat, 23 Jan 2021 05:51:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611409916; cv=none; d=google.com; s=arc-20160816; b=jw9SsXxI0Plnmbvoo7dC5gLNaKAzz83SeoIoTJ3LsnTtci97lcvtSEH2Iz8qIWAPj/ vx6bCVjK4nQo2/VjsJP7ZhvEHiaXZ9kag+rYY82ogfR4HDCW4E36raWvW68USbyVue03 rFNTZtoDWygRTc1rPyt+BirVZiF63XxvAIYOA+AH893tpLESI2WvZjD5rH+YqeeASvPM ZdpgK/4rlQzNDfgJ2vfd9GT/wbs/5OsoXyYTxO+Q4Yu43+C10Pa/y3X0XjcKd7lY4pIi g1fKrHEGgI59J8069wa6sJmbSHIxSscuQez5pnbi/PYb5d7spRdVEh6EN4IBZJpclezE XuLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from; bh=NOJTWR/r/EKAx59DBRF4pJfxUGxmzCFdbxvF6NfxvdY=; b=Q9jD33zgzGCzcVr+URk/d3KED/uVhqHK11oYEIkjVqAspJ5FFSu+44BzLNzmC+ldTS wx5blzD31XVv0kMWFUMdK/mWWWAfMDQ6UOw2n+8s5c5jDL+VcQFQmn/zh69MykPpm4Ky Bwk4RlMhZjzQmZUSnWMVARYIhMOwS7mvPFYrKmYGdU5vAdUdXGSDgX4+HPXQCX7AZ1Xi j8RUDLfYO35d6ZksgcBs1cxSk/3/OH77SC0A3gpjIHbisL64LlmgoHBrcVqHfSPzEOab ox0GI3yu2pTOCvvmK8Sqenj+O/yCtzDDSSN8CU6RWJPfzwmRjZAY6NmYMqXVWOVhOZXX Q8FA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z13si4966827edb.473.2021.01.23.05.51.31; Sat, 23 Jan 2021 05:51:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725889AbhAWNuE (ORCPT + 99 others); Sat, 23 Jan 2021 08:50:04 -0500 Received: from mout.kundenserver.de ([212.227.126.133]:45419 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725274AbhAWNuB (ORCPT ); Sat, 23 Jan 2021 08:50:01 -0500 Received: from envy.fritz.box ([82.207.207.243]) by mrelayeu.kundenserver.de (mreue011 [213.165.67.97]) with ESMTPSA (Nemesis) id 1MplHR-1lmnYA40ab-00qBul; Sat, 23 Jan 2021 14:47:20 +0100 From: mail@richard-neumann.de To: nehal-bakulchandra.shah@amd.com, sandeep.singh@amd.com, mail@richard-neumann.de, corbet@lwn.net, jikos@kernel.org, benjamin.tissoires@redhat.com, linux-input@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v9 0/8] AMD Sensor Fusion Hub driver refactored Date: Sat, 23 Jan 2021 14:47:08 +0100 Message-Id: <20210123134716.13414-1-mail@richard-neumann.de> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:RUKlQ+79S0Ma3wPGEYyRt3mL/To018TmsD/nvA1k2V1LMXN0UR2 jkr2uBWk2fCOCsJxMkH9YvYzc9o1krN0Wzvcif9A3+KZF1wF77mB6ZR0k9MYWUnesAsL7yp Ob8LJK/v2unxabvO8AwTGOH9k93DPts+BZw7ycqviwzyCbUGclkuPpYRTQnKOyb1pg1EXHV xHxbCX+2IHlBdfOUlMTxA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:QkjgghGme1A=:DAP0Shfn9sx4QZ7uADDyEh qHkvrKrTk73faoF3/vU7K4S8ycOF/Ksw7YFughStCf/YzfWLj59rY3tJ1kLiWzFRoDRBWu5g7 xMrYC3vmN7146dSKGMyD31S/VWZImvLe1WGuSMXLKcg6yWtJFArl4GlkufIqjV+cgtbXLMvw/ CetSHEMZ03cRABNvdCyd9gG1QdiDLp5Lp12JetvzWGJZ8UEk3qSKDOsVW+yscnVIQfaJxmwE0 wKeR67h9qxaS9f+HGA0mMeFD8Bg08kgjcHUNnxzjlWBezSu2xgdDD7qP6TmVBQ84YEG2Djq7V KRrPg88nLQRhQFu7gdBnbTjKVvWqwLqErQKTNx93Pq3yfjp2PtV7UbZt67NJRAajOmwYvWN9A ytyy1KcVJPm2JkenZBUPD1HKZEsYNKHAFXKOpfUi3ZbFmIcZG0mYgcqm9YwQdUq2valHZJGqT R9ptdzga4g== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Richard Neumann This patch series contains a refactored version of AMD's Sensor Fusion Hub driver. Core changes are: * Flattened out source code structure. * Strict separation of driver parts: - PCI device driver - Platform driver - HID low-level driver * Implemented HID low-level driver as per API description with appropriate functions: - start / stop - open / close - parse - raw_request * Added meta information to the respective HID devices. - sensor type - bus type - physical device name Richard Neumann (8): Updated MAINTAINERS Updated documentation Updated Kconfig Updated Makefile Refactored HID descriptor and report generators. Refactored HID LL driver. Refactored platform driver Refactored PCIe driver Documentation/hid/amd-sfh-hid.rst | 275 +++++++------- MAINTAINERS | 1 + drivers/hid/amd-sfh-hid/Kconfig | 4 +- drivers/hid/amd-sfh-hid/Makefile | 14 +- ...eport_desc.h => amd-sfh-hid-descriptors.h} | 51 ++- drivers/hid/amd-sfh-hid/amd-sfh-hid-ll-drv.c | 175 +++++++++ drivers/hid/amd-sfh-hid/amd-sfh-hid-ll-drv.h | 41 ++ drivers/hid/amd-sfh-hid/amd-sfh-hid-reports.c | 354 ++++++++++++++++++ drivers/hid/amd-sfh-hid/amd-sfh-hid-reports.h | 102 +++++ drivers/hid/amd-sfh-hid/amd-sfh-pci.c | 226 +++++++++++ drivers/hid/amd-sfh-hid/amd-sfh-pci.h | 112 ++++++ drivers/hid/amd-sfh-hid/amd-sfh-plat.c | 327 ++++++++++++++++ drivers/hid/amd-sfh-hid/amd-sfh-plat.h | 38 ++ drivers/hid/amd-sfh-hid/amd_sfh_client.c | 246 ------------ drivers/hid/amd-sfh-hid/amd_sfh_hid.c | 174 --------- drivers/hid/amd-sfh-hid/amd_sfh_hid.h | 67 ---- drivers/hid/amd-sfh-hid/amd_sfh_pcie.c | 152 -------- drivers/hid/amd-sfh-hid/amd_sfh_pcie.h | 79 ---- .../hid_descriptor/amd_sfh_hid_desc.c | 224 ----------- .../hid_descriptor/amd_sfh_hid_desc.h | 107 ------ 20 files changed, 1539 insertions(+), 1230 deletions(-) rename drivers/hid/amd-sfh-hid/{hid_descriptor/amd_sfh_hid_report_desc.h => amd-sfh-hid-descriptors.h} (95%) create mode 100644 drivers/hid/amd-sfh-hid/amd-sfh-hid-ll-drv.c create mode 100644 drivers/hid/amd-sfh-hid/amd-sfh-hid-ll-drv.h create mode 100644 drivers/hid/amd-sfh-hid/amd-sfh-hid-reports.c create mode 100644 drivers/hid/amd-sfh-hid/amd-sfh-hid-reports.h create mode 100644 drivers/hid/amd-sfh-hid/amd-sfh-pci.c create mode 100644 drivers/hid/amd-sfh-hid/amd-sfh-pci.h create mode 100644 drivers/hid/amd-sfh-hid/amd-sfh-plat.c create mode 100644 drivers/hid/amd-sfh-hid/amd-sfh-plat.h delete mode 100644 drivers/hid/amd-sfh-hid/amd_sfh_client.c delete mode 100644 drivers/hid/amd-sfh-hid/amd_sfh_hid.c delete mode 100644 drivers/hid/amd-sfh-hid/amd_sfh_hid.h delete mode 100644 drivers/hid/amd-sfh-hid/amd_sfh_pcie.c delete mode 100644 drivers/hid/amd-sfh-hid/amd_sfh_pcie.h delete mode 100644 drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c delete mode 100644 drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.h -- 2.30.0