Re: [PATCH v2 0/2] misc: mei: Add support for IVSC device

From: Hao Yao
Date: Wed Dec 06 2023 - 00:58:18 EST


Wentong,

On mainline v6.6, I cherry-picked IVSC/LCJA related patches and these v2 patches, added Intel IPU6 driver on Github, then made some changes on IPU6 HAL to auto link IVSC device. I tested the build on a Dell Latitude 7440 which is using HI556 camera sensor and it previews normally.

If it's properly, you can add my "Tested-by:" tag.

Tested-by: Hao Yao <hao.yao@xxxxxxxxx>

On 2023/12/4 08:55, Wentong Wu wrote:
The Intel visual sensing controller (IVSC) device is designed to
control the camera sharing between host IPU for media usage and
IVSC for context sensing (face detection).

IVSC is exposed to host as a SPI device and the protocol used
for communicating with host is MEI. This driver implements the
transport protocol and MEI hardware interfaces for IVSC device.

The firmware downloading for IVSC device is implemented as well.

---
v2:
- change to `depends on INTEL_MEI_VSC_HW` for INTEL_MEI_VSC Kconfig
- remove MODULE_ALIAS and add MODULE_DEVICE_TABLE in platform-vsc.c

Wentong Wu (2):
mei: Add transport driver for IVSC device
mei: Add MEI hardware support for IVSC device

drivers/misc/mei/Kconfig | 24 ++
drivers/misc/mei/Makefile | 7 +
drivers/misc/mei/platform-vsc.c | 450 +++++++++++++++++++++
drivers/misc/mei/vsc-fw-loader.c | 822 +++++++++++++++++++++++++++++++++++++++
drivers/misc/mei/vsc-tp.c | 555 ++++++++++++++++++++++++++
drivers/misc/mei/vsc-tp.h | 50 +++
6 files changed, 1908 insertions(+)
create mode 100644 drivers/misc/mei/platform-vsc.c
create mode 100644 drivers/misc/mei/vsc-fw-loader.c
create mode 100644 drivers/misc/mei/vsc-tp.c
create mode 100644 drivers/misc/mei/vsc-tp.h