I'm trying to make a embedded device work as a MTP device, using USB gadget driver.
I know have Android switched from mass storage gadget to MTP gadget for quite a while, and found the source code for MTP gadget driver in a few Android repositories.
However in the mainline kernel code I didn't find that particular file, nor equivalents.
But I did find patches for MTP gadget driver submitted for RFC in 2010.
Question:
Why mainline kernel does not accept this patch, and doesn't provide any other implementation of MTP gadget, either, but Android kernel provides it?
Is this because of technical difficulty or other reasons, like there is a better way to do it?
If I want to enable USB MTP gadget on my devices(one with TI OMAP3730 SoC running 2.6.37 kernel and another with NXP/Freescale IMX6 SoC, running 3.14 kernel), which version of the MTP gadget shall I use for backport?