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