[PATCH] FunctionFS based PTP-Gadget driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


I've ported PTP usb gadget driver created once by Guennadi Liakhovetski
from gadgetfs interface to the new functionfs interface introduced a few
months ago. I've based my work on the sources that are available on

With functionfs interface one can create usb multifunction composite
gadget with some functions implemented in kernel space (like USB
Ethernet) and other (like the PTP) in userspace.

I've tested the new driver with WindowsXP SP3, Windows Vista and Windows
7. I've managed to get it working together with other usb functions:
RNDIS, Serial ACM and Mass Storage.

To Guennadi: is it possible to create a separate branch on your PTP
driver git tree? I don't want to completely replace the gadgetfs version
with the functionfs one. For some use cases gadgetfs version might be
more suitable, while for other the functionfs is the only solution.

Best regards
Marek Szyprowski
Samsung Poland R&D Center

Patch summary:

Marek Szyprowski (1):
  PTP: ported from gadgetfs to functionfs kernel interface

 Makefile          |    9 +-
 README            |    2 +-
 README-functionfs |   65 +++++
 ptp.c             |  800 ++++++++++++++---------------------------------------
 usbstring.c       |  142 ----------
 usbstring.h       |   38 ---
 6 files changed, 284 insertions(+), 772 deletions(-)
 create mode 100644 README-functionfs
 delete mode 100644 usbstring.c
 delete mode 100644 usbstring.h


To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

B and H Foto and Electronics Corp.

[Linux Media]     [Video for Linux]     [Linux Input]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Free Online Dating]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]     [More Archives]

Add to Google Powered by Linux