Re: [PATCH 2/5] usb: drop usb_host_dev_is_scsi_storage hook

2021-06-22 Thread David Gibson
On Tue, Jun 22, 2021 at 02:49:12PM +0200, Gerd Hoffmann wrote: > 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: G

[PATCH 2/5] usb: drop usb_host_dev_is_scsi_storage hook

2021-06-22 Thread Gerd Hoffmann
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 --- include/hw/usb.h | 7 ++- hw/ppc/spap