Re: [PATCH v3 4/5] usb: gadget: f_fs: add poll for endpoint 0

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

 



On Wed, Jan 22 2014, Robert Baldyga <r.baldyga@xxxxxxxxxxx> wrote:
> This patch adds poll function for file representing ep0.
>
> Ability of read from or write to ep0 file is related with actual state of ffs:
> - When desctiptors or strings are not written yet, POLLOUT flag is set.
> - If there is any event to read, POLLIN flag is set.
> - If setup request was read, POLLIN and POLLOUT flag is set, to allow
>   send response (by performing I/O operation consistent with setup request
>   direction) or set stall (by performing I/O operation opposite  setup
>   request direction).
>
> Signed-off-by: Robert Baldyga <r.baldyga@xxxxxxxxxxx>

Acked-by: Michal Nazarewicz <mina86@xxxxxxxxxx>

-- 
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--

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux