OSDN Git Service

ANDROID: usb: gadget: f_accessory: assign no-op request complete callbacks
authorBadhri Jagan Sridharan <Badhri@google.com>
Fri, 21 Jul 2017 21:58:16 +0000 (14:58 -0700)
committerAmit Pundir <amit.pundir@linaro.org>
Tue, 14 Aug 2018 12:17:11 +0000 (17:47 +0530)
commita88f3784b2a61f1e59a573f7ac54d06dd2dc1a1d
tree29164623099987dd38fe73f344df71b1f66c73e5
parenta04563d91eaa552b14297db407c02045ce49b6ae
ANDROID: usb: gadget: f_accessory: assign no-op request complete callbacks

The req->complete seems to presist the callback pointer for
the control requests. This causes the serial of the accessory
to be overridden when an accessory function specific out
control request is issued right after the  ACCESSORY_SEND_STRING
control request. Therefore, assign a no-op req complete function
when nothing needs to be done once the request is completed.

Signed-off-by: Badhri Jagan Sridharan <Badhri@google.com>
Bug: 63867169
Change-Id: I78c1602e9a044b8718b270b8a068cf5afc83f984
drivers/usb/gadget/function/f_accessory.c