[Toybox] Proposal: Add ucsicontrol (USB Type-C UCSI utility) to toybox

Rob Landley rob at landley.net
Sat Jul 18 18:06:25 UTC 2026


On 7/14/26 18:18, Rob Landley wrote:
> While I can turn the patch you just sent me into a relative patch 
> against the previous one myself, it's a bit awkward to do that while 
> still giving you proper attribution in the metadata. Could you do a 
> relative patch from previous version to current version that I can apply 
> on top of the first one without fudging the history? :)
...
>> Changes in v2:
...
> Sounds good. Happy to apply a relative patch on top of the first one.

I turned it into a relative patch myself, and applied it:

https://codeberg.org/landley/toybox/commit/0bb70e684254

https://landley.net/toybox/git/commit/0bb70e684254

(If your workflow still requires microsoft copilot/github I can push to 
there on an as-requested basis, but the project is migrating off there.)

>> Pls take look, new version.
> 
> I'd still like to have a test environment, if there's an easy way to do 
> that.

I'd still like to have a test environment.

I have an existing use case for commands to power down and power back up 
a USB port without physically unplugging it, if this tool can do that.

But it would also be nice if there was some sort of simulation test 
environment that would let me regression test with "make 
test_ucsicontrol", perhaps a kernel module to provide a dummy device or 
qemu usb device that understands these commands? (I'm aware both/either 
is a big lift.)

Thanks,

Rob


More information about the Toybox mailing list