diff options
author | Maximilian Luz <luzmaximilian@gmail.com> | 2022-12-02 23:33:20 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2023-02-02 22:48:20 +0100 |
commit | 3f88b459a729ea397aa7cec9a7054a978882370a (patch) | |
tree | fdabe66e587d6da99e334264bc8c374dcb6c0aca /include/linux/surface_aggregator/controller.h | |
parent | 070b3098ddefdadcc6310878cf50ef09b380db1d (diff) | |
download | linux-3f88b459a729ea397aa7cec9a7054a978882370a.tar.gz linux-3f88b459a729ea397aa7cec9a7054a978882370a.tar.bz2 linux-3f88b459a729ea397aa7cec9a7054a978882370a.zip |
platform/surface: aggregator: Improve documentation and handling of message target and source IDs
The `tid_in` and `tid_out` fields of the serial hub protocol command
struct (struct ssh_command) are actually source and target IDs,
indicating the peer from which the message originated and the peer for
which it is intended.
Change the naming of those fields accordingly and improve the protocol
documentation. Additionally, introduce an enum containing all currently
known peers, i.e. targets and sources.
Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
Link: https://lore.kernel.org/r/20221202223327.690880-3-luzmaximilian@gmail.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'include/linux/surface_aggregator/controller.h')
-rw-r--r-- | include/linux/surface_aggregator/controller.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/surface_aggregator/controller.h b/include/linux/surface_aggregator/controller.h index d11a1c6e3186..8932bc0bae18 100644 --- a/include/linux/surface_aggregator/controller.h +++ b/include/linux/surface_aggregator/controller.h @@ -912,10 +912,10 @@ enum ssam_event_mask { }) #define SSAM_EVENT_REGISTRY_SAM \ - SSAM_EVENT_REGISTRY(SSAM_SSH_TC_SAM, 0x01, 0x0b, 0x0c) + SSAM_EVENT_REGISTRY(SSAM_SSH_TC_SAM, SSAM_SSH_TID_SAM, 0x0b, 0x0c) #define SSAM_EVENT_REGISTRY_KIP \ - SSAM_EVENT_REGISTRY(SSAM_SSH_TC_KIP, 0x02, 0x27, 0x28) + SSAM_EVENT_REGISTRY(SSAM_SSH_TC_KIP, SSAM_SSH_TID_KIP, 0x27, 0x28) #define SSAM_EVENT_REGISTRY_REG(tid)\ SSAM_EVENT_REGISTRY(SSAM_SSH_TC_REG, tid, 0x01, 0x02) |