Skip to content

dbus: platforms: softeners: move all universal specific logic out of FPGA trait#192

Draft
artiepoole wants to merge 3 commits into
artie/socket-hookfrom
artie/universal-subcommand
Draft

dbus: platforms: softeners: move all universal specific logic out of FPGA trait#192
artiepoole wants to merge 3 commits into
artie/socket-hookfrom
artie/universal-subcommand

Conversation

@artiepoole
Copy link
Copy Markdown
Collaborator

@artiepoole artiepoole commented May 19, 2026

adds 2 dbus methods:

  • StatusInterface::universal
  • ControlInterface::universal

removes 5 dbus methods:

  • StatusInterface::get_flags
  • StatusInterface::read_property
  • ControlInterface::set_flags
  • ControlInterface::write_property
  • ControlInterface::write_property_bytes

@artiepoole artiepoole force-pushed the artie/universal-subcommand branch 2 times, most recently from 10c7cdc to 582c708 Compare May 22, 2026 13:49
…FPGA trait

implements two new dbus methods:
- StatusInterface::universal
- ControlInterface::universal

functional changes:
- set/get flags now universal only
- read/write_property[_bytes] now universal only

Signed-off-by: Artie Poole <stuart.poole@canonical.com>
Signed-off-by: Artie Poole <stuart.poole@canonical.com>
Updates tests to work with the new universal and dfx-mgr top-level CLI
subcommands introduced in the last 3 commits.
Changes:
- daemon/tests: Update DBus proxy interfaces to use unified 'universal()'
  method instead of separate set_fpga_flags, write_property, read_property,
  etc. methods
- daemon/tests: Remove duplicate xilinx_dfx_mgr tests that are now covered
  by universal tests (set_fpga_flags, write_property, read_property,
  get_fpga_flags)
- tests/snap_testing: Add test_universal_command.py with tests for the new
  'universal' command (read/write operations)
- tests/snap_testing: Add test_dfx_mgr_command.py with tests for the new
  'dfx-mgr' command - they require running like `fpgad dfx-mgr -- <args>`
- tests/snap_testing: Add help tests for universal and dfx-mgr commands
- cli/README.md: Update universal command documentation to reflect actual
  subcommand names (read_property, write_flags, etc.)

Signed-off-by: Artie Poole <stuart.poole@canonical.com>
@artiepoole artiepoole force-pushed the artie/universal-subcommand branch from 582c708 to c55c9e2 Compare May 22, 2026 14:00
@artiepoole artiepoole changed the base branch from main to artie/socket-hook May 22, 2026 14:02
@artiepoole artiepoole force-pushed the artie/universal-subcommand branch from c55c9e2 to 37b11f2 Compare May 22, 2026 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant