git: 3f5054862a46 - main - Make sure the avr32dci_odevd structure is used. This fixes a compilation error.

Hans Petter Selasky hselasky at FreeBSD.org
Sat Jul 10 19:04:49 UTC 2021


The branch main has been updated by hselasky:

URL: https://cgit.FreeBSD.org/src/commit/?id=3f5054862a4603116bb872cf8b7b3cc946e93741

commit 3f5054862a4603116bb872cf8b7b3cc946e93741
Author:     Hans Petter Selasky <hselasky at FreeBSD.org>
AuthorDate: 2021-07-10 16:13:21 +0000
Commit:     Hans Petter Selasky <hselasky at FreeBSD.org>
CommitDate: 2021-07-10 17:57:52 +0000

    Make sure the avr32dci_odevd structure is used.
    This fixes a compilation error.
    
    MFC after:      1 week
    Sponsored by:   NVIDIA Networking
---
 sys/dev/usb/controller/avr32dci.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sys/dev/usb/controller/avr32dci.c b/sys/dev/usb/controller/avr32dci.c
index eaf0f8261b92..7cc5ca5d90c7 100644
--- a/sys/dev/usb/controller/avr32dci.c
+++ b/sys/dev/usb/controller/avr32dci.c
@@ -1690,6 +1690,12 @@ tr_handle_get_descriptor:
 		len = sizeof(avr32dci_devd);
 		ptr = (const void *)&avr32dci_devd;
 		goto tr_valid;
+	case UDESC_DEVICE_QUALIFIER:
+		if (value & 0xff)
+			goto tr_stalled;
+		len = sizeof(avr32dci_odevd);
+		ptr = (const void *)&avr32dci_odevd;
+		goto tr_valid;
 	case UDESC_CONFIG:
 		if (value & 0xff) {
 			goto tr_stalled;


More information about the dev-commits-src-all mailing list