Skip to content

Commit

Permalink
platform/surface: aggregator_registry: Fix target-ID of base-hub
Browse files Browse the repository at this point in the history
The target ID of the base hub is currently set to KIP (keyboard/
peripherals). However, even though it manages such devices with the KIP
target ID, the base hub itself is actually accessed via the SAM target
ID. So set it accordingly.

Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
  • Loading branch information
qzed committed Nov 5, 2022
1 parent 1a55761 commit 351805f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/platform/surface/surface_aggregator_hub.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ static const struct ssam_hub_desc kip_hub = {

static const struct ssam_device_id ssam_hub_match[] = {
{ SSAM_VDEV(HUB, SAM, SSAM_SSH_TC_KIP, 0x00), (unsigned long)&kip_hub },
{ SSAM_VDEV(HUB, KIP, SSAM_SSH_TC_BAS, 0x00), (unsigned long)&base_hub },
{ SSAM_VDEV(HUB, SAM, SSAM_SSH_TC_BAS, 0x00), (unsigned long)&base_hub },
{ }
};
MODULE_DEVICE_TABLE(ssam, ssam_hub_match);
Expand Down
2 changes: 1 addition & 1 deletion drivers/platform/surface/surface_aggregator_registry.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ static const struct software_node ssam_node_hub_kip = {

/* Base device hub (devices attached to Surface Book 3 base). */
static const struct software_node ssam_node_hub_base = {
.name = "ssam:00:00:02:11:00",
.name = "ssam:00:00:01:11:00",
.parent = &ssam_node_root,
};

Expand Down

0 comments on commit 351805f

Please sign in to comment.