* [PATCH 0/2] Enhance ISH Device Table and Add Wildcat Lake Support
@ 2025-06-10 2:01 Zhang Lixu
2025-06-10 2:01 ` [PATCH 1/2] hid: intel-ish-hid: Use PCI_DEVICE_DATA() macro for ISH device table Zhang Lixu
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Zhang Lixu @ 2025-06-10 2:01 UTC (permalink / raw)
To: linux-input, srinivas.pandruvada, jikos, benjamin.tissoires
Cc: lixu.zhang, even.xu, zhifeng.wang, selina.wang
This patch series aims to improve the Intel ISH (Integrated Sensor Hub) driver
by enhancing code readability and expanding device support. The first patch
replaces the usage of PCI_VDEVICE() with the PCI_DEVICE_DATA() macro in the
ISH PCI device table, which simplifies the code and improves maintainability.
The second patch adds support for the Wildcat Lake platform by including its
PCI device ID in the ISH driver.
Zhang Lixu (2):
hid: intel-ish-hid: Use PCI_DEVICE_DATA() macro for ISH device table
HID: intel-ish-hid: ipc: Add Wildcat Lake PCI device ID
drivers/hid/intel-ish-hid/ipc/hw-ish.h | 1 +
drivers/hid/intel-ish-hid/ipc/pci-ish.c | 12 +++++++++---
2 files changed, 10 insertions(+), 3 deletions(-)
--
2.43.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] hid: intel-ish-hid: Use PCI_DEVICE_DATA() macro for ISH device table
2025-06-10 2:01 [PATCH 0/2] Enhance ISH Device Table and Add Wildcat Lake Support Zhang Lixu
@ 2025-06-10 2:01 ` Zhang Lixu
2025-06-10 2:01 ` [PATCH 2/2] HID: intel-ish-hid: ipc: Add Wildcat Lake PCI device ID Zhang Lixu
2025-06-10 19:55 ` [PATCH 0/2] Enhance ISH Device Table and Add Wildcat Lake Support Jiri Kosina
2 siblings, 0 replies; 4+ messages in thread
From: Zhang Lixu @ 2025-06-10 2:01 UTC (permalink / raw)
To: linux-input, srinivas.pandruvada, jikos, benjamin.tissoires
Cc: lixu.zhang, even.xu, zhifeng.wang, selina.wang
Replace the usage of PCI_VDEVICE() with driver_data assignment in the ISH
PCI device table with the PCI_DEVICE_DATA() macro. This improves code
readability.
Signed-off-by: Zhang Lixu <lixu.zhang@intel.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
---
drivers/hid/intel-ish-hid/ipc/pci-ish.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/hid/intel-ish-hid/ipc/pci-ish.c b/drivers/hid/intel-ish-hid/ipc/pci-ish.c
index ff0fc8010072..0db41ed74a14 100644
--- a/drivers/hid/intel-ish-hid/ipc/pci-ish.c
+++ b/drivers/hid/intel-ish-hid/ipc/pci-ish.c
@@ -67,9 +67,9 @@ static const struct pci_device_id ish_pci_tbl[] = {
{PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_ISH_MTL_P)},
{PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_ISH_ARL_H)},
{PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_ISH_ARL_S)},
- {PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_ISH_LNL_M), .driver_data = ISHTP_DRIVER_DATA_LNL_M},
- {PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_ISH_PTL_H), .driver_data = ISHTP_DRIVER_DATA_PTL},
- {PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_ISH_PTL_P), .driver_data = ISHTP_DRIVER_DATA_PTL},
+ {PCI_DEVICE_DATA(INTEL, ISH_LNL_M, ISHTP_DRIVER_DATA_LNL_M)},
+ {PCI_DEVICE_DATA(INTEL, ISH_PTL_H, ISHTP_DRIVER_DATA_PTL)},
+ {PCI_DEVICE_DATA(INTEL, ISH_PTL_P, ISHTP_DRIVER_DATA_PTL)},
{}
};
MODULE_DEVICE_TABLE(pci, ish_pci_tbl);
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] HID: intel-ish-hid: ipc: Add Wildcat Lake PCI device ID
2025-06-10 2:01 [PATCH 0/2] Enhance ISH Device Table and Add Wildcat Lake Support Zhang Lixu
2025-06-10 2:01 ` [PATCH 1/2] hid: intel-ish-hid: Use PCI_DEVICE_DATA() macro for ISH device table Zhang Lixu
@ 2025-06-10 2:01 ` Zhang Lixu
2025-06-10 19:55 ` [PATCH 0/2] Enhance ISH Device Table and Add Wildcat Lake Support Jiri Kosina
2 siblings, 0 replies; 4+ messages in thread
From: Zhang Lixu @ 2025-06-10 2:01 UTC (permalink / raw)
To: linux-input, srinivas.pandruvada, jikos, benjamin.tissoires
Cc: lixu.zhang, even.xu, zhifeng.wang, selina.wang
Add device ID of Wildcat Lake into ishtp support list.
Signed-off-by: Zhang Lixu <lixu.zhang@intel.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
---
drivers/hid/intel-ish-hid/ipc/hw-ish.h | 1 +
drivers/hid/intel-ish-hid/ipc/pci-ish.c | 6 ++++++
2 files changed, 7 insertions(+)
diff --git a/drivers/hid/intel-ish-hid/ipc/hw-ish.h b/drivers/hid/intel-ish-hid/ipc/hw-ish.h
index 07e90d51f073..fa5d68c36313 100644
--- a/drivers/hid/intel-ish-hid/ipc/hw-ish.h
+++ b/drivers/hid/intel-ish-hid/ipc/hw-ish.h
@@ -38,6 +38,7 @@
#define PCI_DEVICE_ID_INTEL_ISH_LNL_M 0xA845
#define PCI_DEVICE_ID_INTEL_ISH_PTL_H 0xE345
#define PCI_DEVICE_ID_INTEL_ISH_PTL_P 0xE445
+#define PCI_DEVICE_ID_INTEL_ISH_WCL 0x4D45
#define REVISION_ID_CHT_A0 0x6
#define REVISION_ID_CHT_Ax_SI 0x0
diff --git a/drivers/hid/intel-ish-hid/ipc/pci-ish.c b/drivers/hid/intel-ish-hid/ipc/pci-ish.c
index 0db41ed74a14..c57483224db6 100644
--- a/drivers/hid/intel-ish-hid/ipc/pci-ish.c
+++ b/drivers/hid/intel-ish-hid/ipc/pci-ish.c
@@ -27,10 +27,12 @@ enum ishtp_driver_data_index {
ISHTP_DRIVER_DATA_NONE,
ISHTP_DRIVER_DATA_LNL_M,
ISHTP_DRIVER_DATA_PTL,
+ ISHTP_DRIVER_DATA_WCL,
};
#define ISH_FW_GEN_LNL_M "lnlm"
#define ISH_FW_GEN_PTL "ptl"
+#define ISH_FW_GEN_WCL "wcl"
#define ISH_FIRMWARE_PATH(gen) "intel/ish/ish_" gen ".bin"
#define ISH_FIRMWARE_PATH_ALL "intel/ish/ish_*.bin"
@@ -42,6 +44,9 @@ static struct ishtp_driver_data ishtp_driver_data[] = {
[ISHTP_DRIVER_DATA_PTL] = {
.fw_generation = ISH_FW_GEN_PTL,
},
+ [ISHTP_DRIVER_DATA_WCL] = {
+ .fw_generation = ISH_FW_GEN_WCL,
+ },
};
static const struct pci_device_id ish_pci_tbl[] = {
@@ -70,6 +75,7 @@ static const struct pci_device_id ish_pci_tbl[] = {
{PCI_DEVICE_DATA(INTEL, ISH_LNL_M, ISHTP_DRIVER_DATA_LNL_M)},
{PCI_DEVICE_DATA(INTEL, ISH_PTL_H, ISHTP_DRIVER_DATA_PTL)},
{PCI_DEVICE_DATA(INTEL, ISH_PTL_P, ISHTP_DRIVER_DATA_PTL)},
+ {PCI_DEVICE_DATA(INTEL, ISH_WCL, ISHTP_DRIVER_DATA_WCL)},
{}
};
MODULE_DEVICE_TABLE(pci, ish_pci_tbl);
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] Enhance ISH Device Table and Add Wildcat Lake Support
2025-06-10 2:01 [PATCH 0/2] Enhance ISH Device Table and Add Wildcat Lake Support Zhang Lixu
2025-06-10 2:01 ` [PATCH 1/2] hid: intel-ish-hid: Use PCI_DEVICE_DATA() macro for ISH device table Zhang Lixu
2025-06-10 2:01 ` [PATCH 2/2] HID: intel-ish-hid: ipc: Add Wildcat Lake PCI device ID Zhang Lixu
@ 2025-06-10 19:55 ` Jiri Kosina
2 siblings, 0 replies; 4+ messages in thread
From: Jiri Kosina @ 2025-06-10 19:55 UTC (permalink / raw)
To: Zhang Lixu
Cc: linux-input, srinivas.pandruvada, benjamin.tissoires, even.xu,
zhifeng.wang, selina.wang
On Tue, 10 Jun 2025, Zhang Lixu wrote:
> This patch series aims to improve the Intel ISH (Integrated Sensor Hub) driver
> by enhancing code readability and expanding device support. The first patch
> replaces the usage of PCI_VDEVICE() with the PCI_DEVICE_DATA() macro in the
> ISH PCI device table, which simplifies the code and improves maintainability.
> The second patch adds support for the Wildcat Lake platform by including its
> PCI device ID in the ISH driver.
>
> Zhang Lixu (2):
> hid: intel-ish-hid: Use PCI_DEVICE_DATA() macro for ISH device table
> HID: intel-ish-hid: ipc: Add Wildcat Lake PCI device ID
>
> drivers/hid/intel-ish-hid/ipc/hw-ish.h | 1 +
> drivers/hid/intel-ish-hid/ipc/pci-ish.c | 12 +++++++++---
> 2 files changed, 10 insertions(+), 3 deletions(-)
As this is pretty much a device ID(s) addition, I've now queued this in
hid.git#for-6.16/upstream-fixes.
Thanks,
--
Jiri Kosina
SUSE Labs
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-06-10 19:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-10 2:01 [PATCH 0/2] Enhance ISH Device Table and Add Wildcat Lake Support Zhang Lixu
2025-06-10 2:01 ` [PATCH 1/2] hid: intel-ish-hid: Use PCI_DEVICE_DATA() macro for ISH device table Zhang Lixu
2025-06-10 2:01 ` [PATCH 2/2] HID: intel-ish-hid: ipc: Add Wildcat Lake PCI device ID Zhang Lixu
2025-06-10 19:55 ` [PATCH 0/2] Enhance ISH Device Table and Add Wildcat Lake Support Jiri Kosina
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).