Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c76afea1 authored by Manu Gautam's avatar Manu Gautam
Browse files

usb: gadget: android: Claim StringIDs before functions during bind



If function_inits claim StringIDs during init then android_bind may
get different StringsIDs for SerialNumber, Product and Manufacturer
for android0 and android1. This is because functions_init are done
only once (for android0) and some functions e.g. mass-storage claim
StringID during init. As android driver is using same string table
for different instances, android1 bind overwrites IDs resulting in
device failing get_string_desc for SerialNum, Product, Manufacturer
for android0 as requested ID may not find a match.

Change-Id: I2544b222be05a4a27d078340515eafcfa54c2448
Signed-off-by: default avatarManu Gautam <mgautam@codeaurora.org>
parent f68526e9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment