mbox series

[v9,0/8] AMD Sensor Fusion Hub driver refactored

Message ID 20210123134716.13414-1-mail@richard-neumann.de
Headers show
Series AMD Sensor Fusion Hub driver refactored | expand

Message

Richard Neumann Jan. 23, 2021, 1:47 p.m. UTC
From: Richard Neumann <mail@richard-neumann.de>

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