From: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
To: jikos@kernel.org, jic23@kernel.org
Cc: linux-input@vger.kernel.org, linux-iio@vger.kernel.org,
srinivas.pandruvada@linux.intel.com
Subject: [PATCH v4 0/7] Intel Integrated Sensor Hub Support (ISH)
Date: Sun, 7 Aug 2016 02:25:32 -0700 [thread overview]
Message-ID: <1470561939-14278-1-git-send-email-srinivas.pandruvada@linux.intel.com> (raw)
Change log
v4:
- Replace Bus PM suspend/resume callbacks to pm_ops calls to support callbacks from hibernate as pointer by Rafael
- Fix kernel doc style comments: Now every function has kernel doc header
- All checkpatch errors are resolved
- Function returning just a single value with no users of return value to void
- reference_count in struct ishtp_cl_device changed to bool as pointed by Ooi, Joyce
- auto module load glue logic as suggested by Ooi, Joyce
- Fix possible kernel warnings during module removal in ishtp
- Remove devices during ish-pci module removal
- Add Original-author tag
- Add MAINTAINER entry
v3:
- Rebased to linux-next as there are some new bus ids are added to linux-next
- Documentation changes suggested by Jonathan
- The PCI device name for BXTP is changed to APL
- Added module parameter to enable DMA as some older FW
have issues in DMA support.
- On resume just restart to resume faster insted of reset for
S3 compliant platforms
Thanks to Grant Likely and Atri Bhattacharya, Rann Bar and Ooi Joyce for test.
I will add Tested-by to commits for the final version of the patches.
v2:
- Overview in documentation show analogy with usbhid implementation
- sparse errors for statics. Also pointed by Jiri
- Clearly marking exported function header file. Clean up all exports
unused inteface functions
- Changed to tristate from boolean as pointed by Jiri:
this required remove/unload functions
- Prevent crash when ISH enabled on non supported platform
- Break client.c to smaller part by seprating buffer allocations
- move bus register/unregister to ishtp module
- There is only one config symbol INTEL_ISH_HID, removed silent
config for TRANSPORT and IPC
Starting from Cherrytrail, multiple generation of Intel processors offers
on package sensor hub. Several recent tablets, 2-in-1 convertible laptops
are using ISH instead of external sensor hubs. This resulted in lack of
support of sensor function like device rotation and auto backlight
adjustment.
In addition, depending on the OEM implementation, support of ISH is required
to support low power sleep states.
The support of ISH on Linux platforms is not new. Android platforms with
Intel SoCs had this support for a while submitted by Daniel Drubin.
This patcheset is reusing most of those changes with clean up and
removing Android platform specific changes.
The user mode ABI is still same as external sensor hubs using Linux
IIO. So existing user mode software should still work.
This series primarily brings in new HID transport used in ISH.
Thanks to the community members who tested RFC patches and provided
feedback.
For users testing on Linux distributions using IIO sensor proxy,
a short term work around is required till we have debugged this issue.
In systemd unit file iio-sensor-proxy.service
In the section "[Unit]" add
After=multi-user.target
Srinivas Pandruvada (7):
Documentation: hid: Intel ISH HID document
hid: intel_ish-hid: ISH Transport layer
hid: intel-ish-hid: ipc layer
hid: intel-ish-hid: ISH HID client driver
iio: hid-sensors: use asynchronous resume
hid: hid-sensor-hub: Add ISH quirk
MAINTAINERS: Add Intel ISH
Documentation/hid/intel-ish-hid.txt | 454 +++++++++
MAINTAINERS | 7 +
drivers/hid/Kconfig | 2 +
drivers/hid/Makefile | 2 +
drivers/hid/hid-sensor-hub.c | 4 +
drivers/hid/intel-ish-hid/Kconfig | 17 +
drivers/hid/intel-ish-hid/Makefile | 22 +
drivers/hid/intel-ish-hid/ipc/hw-ish-regs.h | 220 ++++
drivers/hid/intel-ish-hid/ipc/hw-ish.h | 71 ++
drivers/hid/intel-ish-hid/ipc/ipc.c | 882 ++++++++++++++++
drivers/hid/intel-ish-hid/ipc/pci-ish.c | 333 +++++++
drivers/hid/intel-ish-hid/ipc/utils.h | 64 ++
drivers/hid/intel-ish-hid/ishtp-hid-client.c | 978 ++++++++++++++++++
drivers/hid/intel-ish-hid/ishtp-hid.c | 246 +++++
drivers/hid/intel-ish-hid/ishtp-hid.h | 182 ++++
drivers/hid/intel-ish-hid/ishtp/bus.c | 791 +++++++++++++++
drivers/hid/intel-ish-hid/ishtp/bus.h | 114 +++
drivers/hid/intel-ish-hid/ishtp/client-buffers.c | 258 +++++
drivers/hid/intel-ish-hid/ishtp/client.c | 1054 ++++++++++++++++++++
drivers/hid/intel-ish-hid/ishtp/client.h | 182 ++++
drivers/hid/intel-ish-hid/ishtp/dma-if.c | 175 ++++
drivers/hid/intel-ish-hid/ishtp/hbm.c | 1032 +++++++++++++++++++
drivers/hid/intel-ish-hid/ishtp/hbm.h | 321 ++++++
drivers/hid/intel-ish-hid/ishtp/init.c | 115 +++
drivers/hid/intel-ish-hid/ishtp/ishtp-dev.h | 277 +++++
.../iio/common/hid-sensors/hid-sensor-trigger.c | 21 +-
include/linux/hid-sensor-hub.h | 1 +
include/trace/events/intel_ish.h | 30 +
include/uapi/linux/input.h | 1 +
29 files changed, 7855 insertions(+), 1 deletion(-)
create mode 100644 Documentation/hid/intel-ish-hid.txt
create mode 100644 drivers/hid/intel-ish-hid/Kconfig
create mode 100644 drivers/hid/intel-ish-hid/Makefile
create mode 100644 drivers/hid/intel-ish-hid/ipc/hw-ish-regs.h
create mode 100644 drivers/hid/intel-ish-hid/ipc/hw-ish.h
create mode 100644 drivers/hid/intel-ish-hid/ipc/ipc.c
create mode 100644 drivers/hid/intel-ish-hid/ipc/pci-ish.c
create mode 100644 drivers/hid/intel-ish-hid/ipc/utils.h
create mode 100644 drivers/hid/intel-ish-hid/ishtp-hid-client.c
create mode 100644 drivers/hid/intel-ish-hid/ishtp-hid.c
create mode 100644 drivers/hid/intel-ish-hid/ishtp-hid.h
create mode 100644 drivers/hid/intel-ish-hid/ishtp/bus.c
create mode 100644 drivers/hid/intel-ish-hid/ishtp/bus.h
create mode 100644 drivers/hid/intel-ish-hid/ishtp/client-buffers.c
create mode 100644 drivers/hid/intel-ish-hid/ishtp/client.c
create mode 100644 drivers/hid/intel-ish-hid/ishtp/client.h
create mode 100644 drivers/hid/intel-ish-hid/ishtp/dma-if.c
create mode 100644 drivers/hid/intel-ish-hid/ishtp/hbm.c
create mode 100644 drivers/hid/intel-ish-hid/ishtp/hbm.h
create mode 100644 drivers/hid/intel-ish-hid/ishtp/init.c
create mode 100644 drivers/hid/intel-ish-hid/ishtp/ishtp-dev.h
create mode 100644 include/trace/events/intel_ish.h
--
2.7.4
next reply other threads:[~2016-08-07 9:25 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-07 9:25 Srinivas Pandruvada [this message]
2016-08-07 9:25 ` [PATCH v4 1/7] Documentation: hid: Intel ISH HID document Srinivas Pandruvada
2016-08-07 9:25 ` [PATCH v4 2/7] hid: intel_ish-hid: ISH Transport layer Srinivas Pandruvada
2016-08-07 9:25 ` [PATCH v4 3/7] hid: intel-ish-hid: ipc layer Srinivas Pandruvada
[not found] ` <1470561939-14278-1-git-send-email-srinivas.pandruvada-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2016-08-07 9:25 ` [PATCH v4 4/7] hid: intel-ish-hid: ISH HID client driver Srinivas Pandruvada
2016-08-07 9:25 ` Srinivas Pandruvada
2016-08-07 9:25 ` [PATCH v4 7/7] MAINTAINERS: Add Intel ISH Srinivas Pandruvada
2016-08-07 9:25 ` Srinivas Pandruvada
2016-08-17 9:17 ` [PATCH v4 0/7] Intel Integrated Sensor Hub Support (ISH) Jiri Kosina
2016-08-17 9:17 ` Jiri Kosina
2016-08-07 9:25 ` [PATCH v4 5/7] iio: hid-sensors: use asynchronous resume Srinivas Pandruvada
2016-08-07 10:15 ` Jiri Kosina
[not found] ` <alpine.LNX.2.00.1608071214500.22028-YHPUNQjx9ReKbouaWp301Q@public.gmane.org>
2016-08-15 14:07 ` Jonathan Cameron
2016-08-15 14:07 ` Jonathan Cameron
[not found] ` <884e74df-569e-8218-fbda-f9c7ecfe1e5a-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2016-08-15 14:52 ` Jonathan Cameron
2016-08-15 14:52 ` Jonathan Cameron
[not found] ` <af2d1c90-a0ec-0888-8048-76463bf98ece-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2016-08-15 15:45 ` Dmitry Torokhov
2016-08-15 15:45 ` Dmitry Torokhov
[not found] ` <CAKdAkRS-sVHqQ1tUZWVxNTfX5=ZxFzbCAxvsJPHV4=85mdEeRA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-08-15 15:49 ` Jonathan Cameron
2016-08-15 15:49 ` Jonathan Cameron
2016-08-15 16:42 ` Srinivas Pandruvada
[not found] ` <1471279360.20508.20.camel-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2016-08-15 17:14 ` Dmitry Torokhov
2016-08-15 17:14 ` Dmitry Torokhov
[not found] ` <CAKdAkRRjh+21qOzq28=vSX59RcZsMOAt3pTUhjw4wXdpXXQg-w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-08-15 17:29 ` Srinivas Pandruvada
2016-08-15 17:29 ` Srinivas Pandruvada
2016-08-15 17:53 ` Dmitry Torokhov
2016-08-15 18:24 ` Srinivas Pandruvada
2016-08-15 18:24 ` Srinivas Pandruvada
2016-08-07 9:25 ` [PATCH v4 6/7] hid: hid-sensor-hub: Add ISH quirk Srinivas Pandruvada
2016-08-07 17:03 ` [PATCH v4 0/7] Intel Integrated Sensor Hub Support (ISH) Atri Bhattacharya
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1470561939-14278-1-git-send-email-srinivas.pandruvada@linux.intel.com \
--to=srinivas.pandruvada@linux.intel.com \
--cc=jic23@kernel.org \
--cc=jikos@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-input@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.