You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/hw/usb
Guenter Roeck b2cc699979 usb-hub: Fix handling port power control messages
The ClearPortFeature control message fails for PORT_POWER because there
is no break; at the end of the case statement, causing it to fall through
to the failure handler. Add the missing break; to solve the problem.

Fixes: 1cc403eb21 ("usb-hub: emulate per port power switching")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20241112170152.217664-11-linux@roeck-us.net>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
2 weeks ago
..
Kconfig hw/usb: Remove MUSB USB host controller 2 months ago
bus-stub.c hw/usb: move stubs out of stubs/ 8 months ago
bus.c hw/usb/bus.c: PCAP adding 0xA in Windows version 9 months ago
canokey.c hw/usb/canokey: change license to GPLv2+ 1 year ago
canokey.h hw/usb/canokey: change license to GPLv2+ 1 year ago
ccid-card-emulated.c hw/usb: spelling fixes 1 year ago
ccid-card-passthru.c hw/usb: Constify VMState 11 months ago
ccid.h Use OBJECT_DECLARE_TYPE when possible 4 years ago
chipidea.c hw: Do not include qemu/log.h if it is not necessary 4 years ago
combined-packet.c usb: limit combined packets to 1 MiB (CVE-2021-3527) 4 years ago
core.c usb: add pcap support. 4 years ago
desc-msos.c hw/usb: Fix typo in comments and print 3 years ago
desc.c hw/usb: Silence compiler warnings in USB code when compiling with -Wshadow 1 year ago
desc.h usb: allow max 8192 bytes for desc 3 years ago
dev-audio.c usb-audio: Fix invalid values in AudioControl descriptors 8 months ago
dev-hid.c hw/usb: Constify VMState 11 months ago
dev-hub.c usb-hub: Fix handling port power control messages 2 weeks ago
dev-mtp.c hw/usb/dev-mtp: Correctly report free space 6 months ago
dev-network.c hw/usb/dev-network: Remove unused struct 'rndis_config_parameter' 7 months ago
dev-serial.c usb: remove support for -usbdevice parameters 4 years ago
dev-smartcard-reader.c hw/usb: Constify VMState 11 months ago
dev-storage-bot.c Don't include headers already included by qemu/osdep.h 2 years ago
dev-storage-classic.c usb-storage: Fix BlockConf defaults 8 months ago
dev-storage.c hw/usb: Constify VMState 11 months ago
dev-uas.c hw/usb: Constify VMState 11 months ago
dev-wacom.c hw/usb: fix tab indentation 2 years ago
hcd-dwc2.c hw/usb/hcd-dwc2: Handle invalid address access in read and write functions 6 months ago
hcd-dwc2.h Clean up header guards that don't match their file name 3 years ago
hcd-dwc3.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
hcd-ehci-pci.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
hcd-ehci-sysbus.c hw/usb/hcd-ehci-sysbus: Prefer DEFINE_TYPES() macro 4 weeks ago
hcd-ehci.c hw/usb/ehci: Rename NB_PORTS -> EHCI_PORTS 10 months ago
hcd-ehci.h hw/usb/ehci: Rename NB_PORTS -> EHCI_PORTS 10 months ago
hcd-ohci-pci.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
hcd-ohci-sysbus.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
hcd-ohci.c hw/usb/hcd-ohci: Fix ohci_service_td: accept zero-length TDs where CBP=BE+1 6 months ago
hcd-ohci.h hw/usb/ohci: Use OHCIState type definition 2 years ago
hcd-uhci.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
hcd-uhci.h hw/usb/uhci: Rename NB_PORTS -> UHCI_PORTS 10 months ago
hcd-xhci-nec.c hw/usb/hcd-xhci: Remove XHCI_FLAG_SS_FIRST flag 6 months ago
hcd-xhci-pci.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
hcd-xhci-pci.h include/hw/pci: Split pci_device.h off pci.h 2 years ago
hcd-xhci-sysbus.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
hcd-xhci-sysbus.h usb/xhci: add include/hw/usb/xhci.h header file 4 years ago
hcd-xhci.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
hcd-xhci.h hw/usb/hcd-xhci: Remove XHCI_FLAG_SS_FIRST flag 6 months ago
host-libusb.c hw/usb/host-libusb: Get rid of qemu_open_old() 5 months ago
imx-usb-phy.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
libhw.c dma: Let dma_memory_map() take MemTxAttrs argument 3 years ago
meson.build hw/usb: Remove MUSB USB host controller 2 months ago
pcap.c usb/pcap: set flag_setup 4 years ago
quirks-ftdi-ids.h hw/usb: Fix typo in comments and print 3 years ago
quirks-pl2303-ids.h hw/usb: fix tab indentation 2 years ago
quirks.c
quirks.h hw/usb: spelling fixes 1 year ago
redirect.c migration 1st pull for 9.0 11 months ago
trace-events hw/usb/hcd-ohci: Fix ohci_service_td: accept zero-length TDs where CBP=BE+1 6 months ago
trace.h
u2f-emulated.c hw/usb: Fix typo in comments and print 3 years ago
u2f-passthru.c hw/usb/u2f-passthru: Get rid of qemu_open_old() 5 months ago
u2f.c hw/usb: Constify VMState 11 months ago
u2f.h hw/usb/u2f: Declare QOM macros using OBJECT_DECLARE_TYPE() 2 years ago
vt82c686-uhci-pci.c hw/usb/vt82c686-uhci-pci: Use ISA instead of PCI interrupts 1 year ago
xen-usb.c hw/xen: Make XenDevOps structures const 6 months ago
xlnx-usb-subsystem.c hw: Do not include qemu/log.h if it is not necessary 4 years ago
xlnx-versal-usb2-ctrl-regs.c hw, target: Add ResetType argument to hold and exit phase methods 7 months ago