iPhone only detected in iTunes if connected through external USB hub
iPhone is not detected in iTunes and only charges if plugged in to PC using motherboard's USB ports. The "trust this device" dialogue appears every time on phone and accepting it doesn't do anything. I tried different cables still the problem persists. The only thing that works is if I connect my iPhone through an external USB hub it is detected in iTunes. Also the "trust this device" dialogue appears only for first connection by external hub.
I tried restarting devices, resetting privacy and location setting on iPhone and reinstalling all drivers.
iPhone model: 13 Pro 128GB (A2638)
iTunes Version: 12.12.3.5
Operating System: Windows 10 Pro 21H2 19044.1645
Motherboard: MSI B450 Tomahawk Max
BIOS version: 7C02v3B
iPhone 13 Pro, iOS 15