You have a significant number of USB ports disabled in your USBMap.kext, maybe this is why you have lost use of the front panel USB2 ports and some of your rear USB3 ports.
You need to be aware that the 15 port limit imposed by Apple is for each USB controller. All native Apple systems work within this limit usually with a max of 2 x USB controllers.
Your MSI board has 4 x USB controllers, none of these exceed the 15 port limit, so you have no logical reason for disabling any of the USB ports in your system.
The following ports have been disabled under each controller.
XH00 controller
SS01, SS02, SS04 & SS05 all are physical USB3 ports, highlighted in Red box.
HS03 - virtual USB2 port served from physical USB3 port, highlighted in Red box.
XHC0 controller
HS01, SS01 & SS02 are all disabled and again you have set them as USB3 virtual and physical ports
HS02 is active but is set as physical USB2 (0), which makes no sense seeing as the other three in this controller are set as USB2!
XHC1 controller
SS01 is disabled as highlighted in Red box.
This controller has a mixed bag of port types associated with the 4 x USB ports, none of which match.
XHC2 controller
HS01 is disabled, it is the only port under this controller.
If you have worked to keep within the 15 port limit, which I would guess you have, then this is wrong for your system. You don't need to disable any ports to keep within this limit as your system has 4 x USB controllers.
These are the USB ports available on your MSI Pro X670-P WiFi motherboard, with the connector type for each set indicated by the number in brackets, i.e. (3) for USB3.
- 4x USB 2.0 (Front) - Connector type 'Internal' (255) Does your case have 4 x USB2 physical ports? If not then not all of these internal ports will be needed.
- 4x USB 3.2 Gen1 Type A (Rear) - Connector type USB3 (3) (4 x virtual USB2 & 4 x physical USB3)
- 4x USB 3.2 Gen1 Type A (Front) - Connector type USB3 (3) (4 x virtual USB2 & 4 x physical USB3)
- 2x USB 3.2 Gen2 Type A (Rear) - Connector type USB3 (3) (2 x virtual USB2 & 2 x physical USB3)
- 1x USB 3.2 Gen2 Type C (Rear) - Connector type Type-c+sw (9) (1 x virtual USB2 & 1 x physical Type-c)
- 1x USB 3.2 Gen2 Type C (Front) Connector type Type-c (10) (2 x virtual USB2 & 2 x physical Type-c)
- 1x USB 3.2 Gen2x2 Type C (Rear) - Connector type Type-c+sw (9) (1x virtual USB2 & 1 x physical Type-c)
From experience and reviewing the specifications for your motherboard I would add at the following:
- Your motherboard will also have a USB2 (Internal - 255) port connected to the M.2 connector serving the WiFi/BT module. This should be discoverable and set as (255).
- Your motherboard doesn't contain any physical USB2 ports, so none of the ports in your USBMap.kext should be set with connector type USB2 (0).
- You have 4 UB2 ports served from the internal headers (two headers each serving two ports) Plus the port from the WiFi/BT M.2 connector, meaning you should have a maximum of 5 x ports set with connector type Internal (255).
- You have a maximum of 10 physical USB3 ports available, depending on your front case configuration. This means:
- you could have 20 x ports set as USB3 (3). These would be made up oas follows:
- 10 x physical USB3 ports, plus
- 10 x virtual USB2 ports, served from the USB3 physical ports.
- All of these virtual and physical ports should be set a USB3 with connector type (3).
- You have probably got 2 x Type-C ports that when tested using the flipped device, result in the same port number being highlighted. This would mean they should both be set with connector type 'Type-C Plus Switch' (9). Including the USB2 virtual ports associated with each port, if you included and detected them.
- If you use the internal Type-c connector at the front of your case, this is likely to provide a Type-C port connection, where the using the flipped device test results in two different ports being highlighted, depending on which orientation is inserted in the front Type-C port. These should be set with connector type - 'Type-C' (10), including the virtual USB2 ports if you included them in your USBMap.kext.
You need to go back and discover all the ports again, and make sure that the correct Connector Type is associated with each port.
You also need to ensure that you use the option to 'Enable all Populated Ports' this is Option 'P' and the 'Disable all empty ports' option 'D' during the Create & Edit kext phase.
You would also be advised to add details/comments for each port, as it makes life easier when troubleshooting the kext, after you have exported it. This is done by making use of the options at the base of the terminal window, highlighted in Blue box.
USBMap options during Create and Edit phase.
You can select each port and add a comment, as shown in the example below.
The Magenta coloured text below each port was added by me, using the custom name option, i.e.C:23:Rear top USB3/2 left.
Hope this gives you some idea of what you need to do to fix your USBMap.kext.