USB: gadget: f_accessory: Clear previous strings on ACCESSORY_GET_PROTOCOL
authorMike Lockwood <lockwood@android.com>
Sun, 13 Mar 2011 00:59:12 +0000 (19:59 -0500)
committerMike Lockwood <lockwood@android.com>
Sun, 13 Mar 2011 01:19:25 +0000 (20:19 -0500)
commit30e18b848c25d4a90e3b6282cd32e19a2f0cd4dc
treed9b6ed54a8d2b78deb36f2d6b3ffab3a1cbd0381
parent6c778587651da91039ad09dea4a93988f1736843
USB: gadget: f_accessory: Clear previous strings on ACCESSORY_GET_PROTOCOL

Clearing strings on disconnect does not work since we may receive
a disconnect on some devices when transitioning into accessory mode.
We require an accessory to send ACCESSORY_GET_PROTOCOL before
sending any strings, so any strings from a previous session will be cleared.

Signed-off-by: Mike Lockwood <lockwood@android.com>
drivers/usb/gadget/f_accessory.c