Skip to content

cdba-power: implement all-off - #101

Open
brgl wants to merge 4 commits into
linux-msm:masterfrom
brgl:topic/cdba-power-all-off
Open

brgl wants to merge 4 commits into
linux-msm:masterfrom
brgl:topic/cdba-power-all-off

Conversation

@brgl

@brgl brgl commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Extend cdba-power with a command allowing to disable all configured boards at once. This is useful on boot of the cdba host where all boards get powered up. One can set up a one-shot systemd service that disables all the boards.

brgl added 4 commits October 12, 2026 11:13
We may want to ignore failures to open the tty, for instance: when
powering off all devices in a system that has fewer USB ports than are
needed to register all the consoles.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
We may want to ignore the failure to open the ftdi port, for instance in
situations where the system has fewer USB ports than are needed to
register all the consoles with multiple devices and all we want is to
just power them all off.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Provide a variant of device_open() that doesn't bail-out on failure to
open the console. This will be used by an upcoming new command of
cdba-power that allows to power-off all configured boards.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Extend cdba-power with a command allowing to disable all configured
boards at once. This is useful on boot of the cdba host where all boards
get powered up. One can set up a one-shot systemd service that disables
all the boards.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
@brgl
brgl force-pushed the topic/cdba-power-all-off branch from 5bc1a77 to 9f0ea65 Compare October 12, 2026 09:38
@brgl

brgl commented Oct 12, 2026

Copy link
Copy Markdown
Contributor Author

I extended the series with some changes that allow to use this on cdba hosts with few USB ports (RPi 4 has 32 total) on which we need to ignore all the consoles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant