From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752989AbcLHS4y (ORCPT ); Thu, 8 Dec 2016 13:56:54 -0500 Received: from foss.arm.com ([217.140.101.70]:40094 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751667AbcLHS4x (ORCPT ); Thu, 8 Dec 2016 13:56:53 -0500 Subject: Re: [PATCH 1/2] mailbox: mailbox-test: add support for fasync/poll To: Jassi Brar , Lee Jones , Jassi Brar References: <1480430225-14567-1-git-send-email-sudeep.holla@arm.com> Cc: linux-kernel@vger.kernel.org, Sudeep Holla From: Sudeep Holla Organization: ARM Message-ID: <7c683b2d-6f68-3b08-f23c-f135ecde13da@arm.com> Date: Thu, 8 Dec 2016 18:56:50 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <1480430225-14567-1-git-send-email-sudeep.holla@arm.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29/11/16 14:37, Sudeep Holla wrote: > Currently the read operation on the message debug file returns error if > there's no data ready to be read. It expects the userspace to retry if > it fails. Since the mailbox response could be asynchronous, it would be > good to add support to block the read until the data is available. > > We can also implement poll file operations so that the userspace can > wait to become ready to perform any I/O. > > This patch implements the poll and fasync file operation callback for > the test mailbox device. > > Cc: Lee Jones > Cc: Jassi Brar > Signed-off-by: Sudeep Holla Gentle Ping! -- Regards, Sudeep