>> On Fri, Jul 25 2014, Robert Baldyga wrote: >>> This patch introduces ioctl named FUNCTIONFS_ENDPOINT_DESC, which >>> returns endpoint descriptor to userspace. It works only if function >>> is active. > On 07/25/2014 04:15 PM, Michal Nazarewicz wrote: >> I would argue that user space should never need to know the real >> descriptor. Is this ioctl needed for anything in particular? On Mon, Jul 28 2014, Robert Baldyga <r.baldyga@xxxxxxxxxxx> wrote: > It's needed, at least, to inform user space about maximum possible > wMaxPacketSize value for the endpoint, which is returned by autoconfig > through the endpoint descriptor when value set by user is zero. > > Descriptor returned form this ioctl is mostly the same as descriptor > created by user. I guess you meant that real descriptor is this one, > which contains real endpoint address, because it's probably only datum > in real descriptor which should be never known by user space. > > This ioctl would be also useful in case, when FunctionFS daemon obtains > endpoint descriptors from another daemon, and do not have access to > original descriptor structures given do FunctionFS. All right, I think I can go with that. >>> Signed-off-by: Robert Baldyga <r.baldyga@xxxxxxxxxxx> -- Best regards, _ _ .o. | Liege of Serenely Enlightened Majesty of o' \,=./ `o ..o | Computer Science, Michał “mina86” Nazarewicz (o o) ooo +--<mpn@xxxxxxxxxx>--<xmpp:mina86@xxxxxxxxxx>--ooO--(_)--Ooo-- -- 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