Have you accidentally change a setting in the camera menu. Have you tried connecting the camera to another usb socket. Are you connecting the camera directly to the computer and not via a USB hub. Have you tried it connected to another computer as the fault could be with the USB cable. If it has worked in the past and everything else works via the USB I doubt it is the drivers.
Huawei P10 review