[PATCH 6.1 060/119] USB: core: Add routines for endpoint checks in old drivers