Only advertise a single CDC for single board configurations
Advertising two CDC endpoints when a single CS board is present is
a bit silly, specially considering that connecting to the absent
port leads to undesirable effects...
Instead, account for the present ports early by immediately probing
for the I2C PUPs, and keep track of which ports are alive. Then
make sure that we only advertise a single CDC configuration when
only a single CS board is present.
Finally, map all single-board configurations to the first CDC port,
irrespective of the board being P0 or P1. This allows single boards
configured with the alternate configuration (for random reasons) to
be able to use ttyACM0.
Also update the README file.
Signed-off-by: Marc Zyngier <maz@kernel.org>
5 files changed