Skip to content

usb: host: class: support for usb host hub class - #99735

Open
AidenHu wants to merge 6 commits into
zephyrproject-rtos:mainfrom
nxp-upstream:usb_host_hub_class_enablement
Open

usb: host: class: support for usb host hub class#99735
AidenHu wants to merge 6 commits into
zephyrproject-rtos:mainfrom
nxp-upstream:usb_host_hub_class_enablement

usb: host: hub: implement usb host hub class

caad07c
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Jul 30, 2026 in 22m 9s

Annotations

Check failure on line 152 in subsys/usb/host/class/usbh_hub.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 33 to the 25 allowed.

See more on https://sonarcloud.io/project/issues?id=zephyrproject-rtos_zephyr&issues=AZ9gSD3qZTp61jSJGkP3&open=AZ9gSD3qZTp61jSJGkP3&pullRequest=99735

Check failure on line 1025 in subsys/usb/host/class/usbh_hub.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

cast from 'const struct usb_desc_header *' to 'void *' drops const qualifier

See more on https://sonarcloud.io/project/issues?id=zephyrproject-rtos_zephyr&issues=AZ7OhuDirGk-QTXljx6K&open=AZ7OhuDirGk-QTXljx6K&pullRequest=99735

Check failure on line 838 in subsys/usb/host/class/usbh_hub.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This goto statement must be replaced by a standard iteration statement.

See more on https://sonarcloud.io/project/issues?id=zephyrproject-rtos_zephyr&issues=AZ7OhuDirGk-QTXljx6Q&open=AZ7OhuDirGk-QTXljx6Q&pullRequest=99735

Check warning on line 302 in subsys/usb/host/class/usbh_hub.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Value stored to 'dev_desc' during its initialization is never read

See more on https://sonarcloud.io/project/issues?id=zephyrproject-rtos_zephyr&issues=AZ7OhuDirGk-QTXljx6R&open=AZ7OhuDirGk-QTXljx6R&pullRequest=99735

Check warning on line 1076 in subsys/usb/host/class/usbh_hub.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Value stored to 'product_id' is never read

See more on https://sonarcloud.io/project/issues?id=zephyrproject-rtos_zephyr&issues=AZ-x323PcmGltdk9cLOX&open=AZ-x323PcmGltdk9cLOX&pullRequest=99735

Check warning on line 1075 in subsys/usb/host/class/usbh_hub.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Value stored to 'vendor_id' is never read

See more on https://sonarcloud.io/project/issues?id=zephyrproject-rtos_zephyr&issues=AZ-x323PcmGltdk9cLOW&open=AZ-x323PcmGltdk9cLOW&pullRequest=99735

Check warning on line 179 in subsys/usb/host/class/usbh_hub.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Declare the variable "port_index" inside the loop.

See more on https://sonarcloud.io/project/issues?id=zephyrproject-rtos_zephyr&issues=AZ7OhuDirGk-QTXljx6M&open=AZ7OhuDirGk-QTXljx6M&pullRequest=99735

Check warning on line 1074 in subsys/usb/host/class/usbh_hub.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Value stored to 'level' is never read

See more on https://sonarcloud.io/project/issues?id=zephyrproject-rtos_zephyr&issues=AZ-x323PcmGltdk9cLOV&open=AZ-x323PcmGltdk9cLOV&pullRequest=99735

Check failure on line 418 in subsys/usb/host/class/usbh_hub.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 166 to the 25 allowed.

See more on https://sonarcloud.io/project/issues?id=zephyrproject-rtos_zephyr&issues=AZ7OhuDirGk-QTXljx6O&open=AZ7OhuDirGk-QTXljx6O&pullRequest=99735