From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754112AbaHAIRN (ORCPT ); Fri, 1 Aug 2014 04:17:13 -0400 Received: from mail-ig0-f179.google.com ([209.85.213.179]:42331 "EHLO mail-ig0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751736AbaHAIRH (ORCPT ); Fri, 1 Aug 2014 04:17:07 -0400 Date: Fri, 1 Aug 2014 09:17:00 +0100 From: Lee Jones To: Jassi Brar Cc: Devicetree List , lkml , "ks.giri@samsung.com" , Arnd Bergmann , Ian Campbell , Mark Rutland , robh@kernel.org, Pawel Moll , Courtney Cavin , Matt Porter , Craig McGeachie , LeyFoon Tan , Loic Pallardy , "Anna, Suman" , Ashwin Chaugule , Bjorn Andersson , Patch Tracking , Tetsuya Takinishi , Mark Brown , Kevin Hilman , Mollie Wu , Andy Green Subject: Re: [PATCHv9 2/4] mailbox: Introduce framework for mailbox Message-ID: <20140801081700.GM9030@lee--X1> References: <1406055250-29159-1-git-send-email-jaswinder.singh@linaro.org> <1406055374-29275-1-git-send-email-jaswinder.singh@linaro.org> <20140723085411.GG23210@lee--X1> <20140723152649.GJ23210@lee--X1> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 31 Jul 2014, Jassi Brar wrote: > On 23 July 2014 20:56, Lee Jones wrote: > > On Wed, 23 Jul 2014, Jassi Brar wrote: > > >> >> + if (chan->txdone_method == (TXDONE_BY_POLL | TXDONE_BY_ACK)) > >> >> + chan->txdone_method = TXDONE_BY_POLL; > >> > > >> > Unless you're leaving it there for clarity, you can drop the > >> > "TXDONE_BY_POLL |" from if(). > >> > > >> We need to check for both. > > > > What I'm trying to get at is; if it's already TXDONE_BY_POLL, there is no > > need to set it to TXDONE_BY_POLL. > > > In mbox_request_channel() we added the ACK flag, if POLL was set and > now we need to revert that in mbox_free_channel(). Okay, I see what you're doing. Thanks for the clarification. -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog