> With both host_role and device_role negotiated, a port's own role is
> ambiguous (host|device) - determining it requires more than reading
> the two feature bits. Introduce a minimal OTG command/event queue
> pair (otg_vq_base, otg_vqueues[], otg_init()/otg_deinit()) and
> otg_get_role(), a synchronous VIRTIO_USB_CMD_OTG_GET_ROLE request/
> response exchange, and query every port's role individually during
> probe instead of the alternative of overloading the config space
> ports field with role bits.
> 
> This replaces the previous commit's DEVICE-only placeholder for the
> both-roles-negotiated case with the real per-port answer.
> 
> Signed-off-by: Igor Skalkin <[email protected]>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review ยท 
https://sashiko.dev/#/patchset/[email protected]?part=4


Reply via email to