Remove unused usb functions after changing usb mode 99/227499/7
authorINSUN PYO <insun.pyo@samsung.com>
Thu, 12 Mar 2020 07:29:19 +0000 (16:29 +0900)
committerINSUN PYO <insun.pyo@samsung.com>
Mon, 16 Mar 2020 01:06:01 +0000 (01:06 +0000)
commit19877fd6f2488dca79d89c5b06f1673a624a5f32
tree134352d790ec23fb3f6ed45ecbbf2028b6c883ed
parent25b632db82163a339c23ffafc1095be225816b25
Remove unused usb functions after changing usb mode

After setting the new usb mode, the configfs functions that was not used remain.
For example, changing from rndis mode to sdb mode, /sys/kernel/config/usb_gadget/hal-gadget/rndis.default remains.

A functionfs has to do a few extra things.
 - The socket and service associated with functionfs must be terminated.
 - Umount /dev/usb-funcs/[sdb|mtp]/default
 - Delete /dev/usb-funcs/[sdb|mtp]/default recursively

Change-Id: I2d66f033babd5bea20cfc74d8bf23eb9a89c3be1
hw/usb_cfs_client_common.c