Closed SmithChart closed 1 year ago
@SmithChart I've tested the PR with the new USD-SD-Mux and it works just fine.
Rebased onto master
In general, why does
read_register
return a list if all callers use[0]
on the result?
Good point. This was introduced in https://github.com/linux-automation/usbsdmux/commit/c36df6096d367cbf81f38940691ef5df869d35d5 . Re-thinking this I have decided to do two things:
len
parameter and just return one register.@jluebbe Addressed your feedback. Please give it another look!
The USB-SD-Mux FAST is a next generation prototype of the USB-SD-Mux. This new generation contains a new I2C GPIO expander and also provides two external open-drain outputs.
This PR adds support for this new hardware to this tooling.
For co-existence of old and new USB-SD-Muxes this PR also adds support to automatically detect the version of the USB-SD-Mux. This feature will also help to catch cases where the tooling is accidentally used on a another SCSI device (e.g. a hard drive or generic card reader).