[PATCH v3 openEuler-22.03-LTS-SP1 1/2] USB: core: Add routines for endpoint checks in old drivers