diff options
author | Maximilian Luz <[email protected]> | 2020-12-21 19:39:52 +0100 |
---|---|---|
committer | Hans de Goede <[email protected]> | 2021-01-06 23:45:33 +0100 |
commit | 44b84ee7b437dd7f869341b4b671963161a34a9f (patch) | |
tree | 7faf78c2795d9c3e42590430a93b9fa345e9d407 /drivers/platform/surface/aggregator/controller.c | |
parent | c167b9c7e3d6131b4a4865c112a3dbc86d2e997d (diff) |
platform/surface: aggregator: Add control packet allocation caching
Surface Serial Hub communication is, in its core, packet based. Each
sequenced packet requires to be acknowledged, via an ACK-type control
packet. In case invalid data has been received by the driver, a NAK-type
(not-acknowledge/negative acknowledge) control packet is sent,
triggering retransmission.
Control packets are therefore a core communication primitive and used
frequently enough (with every sequenced packet transmission sent by the
embedded controller, including events and request responses) that it may
warrant caching their allocations to reduce possible memory
fragmentation.
Signed-off-by: Maximilian Luz <[email protected]>
Reviewed-by: Hans de Goede <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'drivers/platform/surface/aggregator/controller.c')
0 files changed, 0 insertions, 0 deletions