Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usb: dwc2: hcd: add missing ifdeffery for hsotg->test_mode #25

Conversation

thom24
Copy link

@thom24 thom24 commented Jun 7, 2024

In the struct dwc2_hsotg, the test_mode member is only present in gadget or dual role mode.

Add a ifdeffery to fix a compile issue if the driver is built in host mode only.

Fixes: da4d738 ("usb: dwc2: hcd: initialize hsotg->test_mode upon USB_PORT_FEAT_TEST")

In the struct dwc2_hsotg, the test_mode member is only present in gadget or
dual role mode.

Add a ifdeffery to fix a compile issue if the driver is built in
host mode only.

Fixes: da4d738 ("usb: dwc2: hcd: initialize hsotg->test_mode upon USB_PORT_FEAT_TEST")
Signed-off-by: Thomas Richard <thomas.richard@bootlin.com>
@ST-dot-com
Copy link

This pull request has been refused, the Contribution License Agreement must be signed.

@ST-dot-com ST-dot-com closed this Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants