OSDN Git Service

usb: drop usb_host_dev_is_scsi_storage hook
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 24 Jun 2021 10:38:33 +0000 (12:38 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 9 Jul 2021 16:21:33 +0000 (18:21 +0200)
commitb7b2a60b01036c6e7c21e7dc41829c7b5f6011b4
treed5feef8607825f503e319186917f1d9d46abd6be
parentf0e48cbd791e88728fcea65366dbb6d9a63a16e5
usb: drop usb_host_dev_is_scsi_storage hook

Introduce an usb device flag instead, set it when usb-host looks at the
device descriptors anyway.  Also set it for emulated storage devices,
for consistency.  Add an inline helper function to check the flag.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Jose R. Ziviani <jziviani@suse.de>
Message-Id: <20210624103836.2382472-32-kraxel@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/ppc/spapr.c
hw/usb/dev-storage-bot.c
hw/usb/dev-storage-classic.c
hw/usb/dev-uas.c
hw/usb/host-libusb.c
hw/usb/host-stub.c
include/hw/usb.h