summaryrefslogtreecommitdiff
path: root/tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorBilly Tsai <billy_tsai@aspeedtech.com>2026-01-23 17:26:28 +0800
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>2026-01-27 11:17:25 +0100
commita3d37e0cccf530a1bad377b3503d6af757f532c4 (patch)
tree5ebbc85636dcd306ab9d3083cfa0adac0c319ce5 /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git
parent5928e0d1f66112b49869c83ed8f1cc9db3df69e5 (diff)
gpio: aspeed-sgpio: Create llops to handle hardware access
Add low-level operations (llops) to abstract the register access for SGPIO registers. With this abstraction layer, the driver can separate the hardware and software logic, making it easier to extend the driver to support different hardware register layouts. The llops abstraction changes the programming semantics from bitmask-based writes to a value-based interface. Instead of passing a pre-shifted bitmask to the caller, the driver now passes: - the GPIO offset, and - the value to be set (0 or 1), and the llops helpers are responsible for deriving the correct register and bit position internally. As a result, assignments such as: type0 = 1; type1 = 1; type2 = 1; do not represent a behavioral change. They indicate that the bit corresponding to the given GPIO offset should be set, with the actual bit manipulation handled by llops. Reviewed-by: Linus Walleij <linusw@kernel.org> Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com> Link: https://lore.kernel.org/r/20260123-upstream_sgpio-v2-3-69cfd1631400@aspeedtech.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions