MLK-22357-3 usb: Clear the value of bEndpointAddress before refill it
authorSherry Sun <sherry.sun@nxp.com>
Wed, 31 Jul 2019 21:07:04 +0000 (17:07 -0400)
committerSherry Sun <sherry.sun@nxp.com>
Thu, 8 Aug 2019 17:12:57 +0000 (13:12 -0400)
commit9f9102968a777cfdcf0609a5435b35406f57124c
treeaf9e8aea6a0f32c3855268da5afb67955de567d8
parent2b6fd3da6fffae0732e8e91ef5c1f870ea393ca9
MLK-22357-3 usb: Clear the value of bEndpointAddress before refill it

For one usb controller driver, the transport endpoint address won't
change after the driver initialize. So the value of bEndpointAddress
have no need to be cleared.

But when more than one usb controller drivers are used at the same time,
different endpoints address is used by different controller driver
usually, it will cause confusion of endpoint address. So the value of
bEndpointAddress had better been cleared everytime before we refill
endpoint address to it.

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
drivers/usb/gadget/epautoconf.c