USB: add new routine for checking port-resume type