From d4905012a8ed0e63932e591f508f450be5986876 Mon Sep 17 00:00:00 2001
From: FlareCoding <albert.slepak@gmail.com>
Date: Sat, 5 Oct 2024 14:11:15 -0400
Subject: [PATCH] removed device context log dumps

---
 efi/OVMF_VARS.fd                     | Bin 540672 -> 540672 bytes
 kernel/src/drivers/usb/xhci/xhci.cpp |  22 ----------------------
 2 files changed, 22 deletions(-)

diff --git a/efi/OVMF_VARS.fd b/efi/OVMF_VARS.fd
index 4e3c1dd67b586bd0b988454ad4424cbf7387a3bb..43e5817c721d5c299d5a338ccd4f4316efea0a64 100644
GIT binary patch
delta 78
zcmZo@P;3CA7RD`1O>&dh=__qtBF9w6wOJ|DiG^jaBm=|b4`v$M0|b~#_*nKqx$Ph1
cn6`hAW4>^?O@O6MfVEA4txbS^nE;0Y01=cK6951J

delta 56
zcmZo@P;3CA7RD`1O>)!a{8*H>FOg%a<7!WGW7?kN#ys!j_5v>^2iZ0OmNo&_HUYLa
K0rq7A90mXrLlE!)

diff --git a/kernel/src/drivers/usb/xhci/xhci.cpp b/kernel/src/drivers/usb/xhci/xhci.cpp
index d299c19..445f2ac 100644
--- a/kernel/src/drivers/usb/xhci/xhci.cpp
+++ b/kernel/src/drivers/usb/xhci/xhci.cpp
@@ -940,28 +940,6 @@ bool XhciDriver::_addressDevice(XhciDevice* device, bool bsr) {
         return false;
     }
 
-    if (m_64ByteContextSize) {
-        // Sanity-check the actual device context entry in DCBAA
-        XhciDeviceContext64* deviceContext = virtbase(m_dcbaa[device->slotId], XhciDeviceContext64);
-
-        kprint("    DeviceContext[slotId=%i] address:0x%llx slotState:%s epSate:%s maxPacketSize:%i\n",
-            device->slotId, deviceContext->slotContext.deviceAddress,
-            xhciSlotStateToString(deviceContext->slotContext.slotState),
-            xhciEndpointStateToString(deviceContext->controlEndpointContext.endpointState),
-            deviceContext->controlEndpointContext.maxPacketSize
-        );
-    } else {
-        // Sanity-check the actual device context entry in DCBAA
-        XhciDeviceContext32* deviceContext = virtbase(m_dcbaa[device->slotId], XhciDeviceContext32);
-
-        kprint("    DeviceContext[slotId=%i] address:0x%llx slotState:%s epSate:%s maxPacketSize:%i\n",
-            device->slotId, deviceContext->slotContext.deviceAddress,
-            xhciSlotStateToString(deviceContext->slotContext.slotState),
-            xhciEndpointStateToString(deviceContext->controlEndpointContext.endpointState),
-            deviceContext->controlEndpointContext.maxPacketSize
-        );
-    }
-
     return true;
 }