On Fri, Feb 16, 2024 at 12:14 PM Philippe Mathieu-Daudé <phi...@linaro.org> wrote: > > On 13/2/24 16:49, Paolo Bonzini wrote: > > Allow boards to use the device creation functions even if USB itself > > is not available; of course the functions will fail inexorably, but > > this can be okay if the calls are conditional on the existence of > > some USB host controller device. This is for example the case for > > hw/mips/loongson3_virt.c. > > > > Acked-by: Richard Henderson <richard.hender...@linaro.org> > > Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> > > --- > > include/hw/usb.h | 27 ++++++++++++++++++++++++--- > > hw/usb/bus.c | 23 ----------------------- > > 2 files changed, 24 insertions(+), 26 deletions(-) > > See alternatives: > https://lore.kernel.org/qemu-devel/20240216110313.17039-10-phi...@linaro.org/ > https://lore.kernel.org/qemu-devel/20240216110313.17039-11-phi...@linaro.org/
That doesn't include usb_create_simple(), which is the one that matters the most here. Paolo