Kaynağa Gözat

usb: fix bogus AND of data and boolean in control message handling

It doesn't particularly hurt if someone sends a control message to the
data interface, but the AND here was definitely wrong, so just drop it.
H. Peter Anvin 3 yıl önce
ebeveyn
işleme
7912a488fa

+ 3 - 3
fpga/max80.qpf

@@ -19,14 +19,14 @@
 #
 # Quartus Prime
 # Version 21.1.0 Build 842 10/21/2021 SJ Lite Edition
-# Date created = 05:30:16  January 10, 2022
+# Date created = 06:01:26  January 10, 2022
 #
 # -------------------------------------------------------------------------- #
 
 QUARTUS_VERSION = "21.1"
-DATE = "05:30:16  January 10, 2022"
+DATE = "06:01:26  January 10, 2022"
 
 # Revisions
 
-PROJECT_REVISION = "v1"
 PROJECT_REVISION = "v2"
+PROJECT_REVISION = "v1"

BIN
fpga/output/v1.jic


BIN
fpga/output/v1.sof


BIN
fpga/output/v2.jic


BIN
fpga/output/v2.sof


+ 1 - 1
fpga/usb/usb_serial/src_v/usb_cdc_core.sv

@@ -961,7 +961,7 @@ module usb_cdc_core
 		    ctrl_ack_r      = setup_set_w && setup_no_data_w;
 		    set_with_data_r = setup_set_w && !setup_no_data_w;
 
-		    case (bRequest_w & ~wIndex_w[0])
+		    case (bRequest_w)
 		      `CDC_GET_LINE_CODING:
 			begin
 			   $display("CDC_GET_LINE_CODING");