From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752743AbaGaQ47 (ORCPT ); Thu, 31 Jul 2014 12:56:59 -0400 Received: from mail-qg0-f48.google.com ([209.85.192.48]:47557 "EHLO mail-qg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751997AbaGaQ44 (ORCPT ); Thu, 31 Jul 2014 12:56:56 -0400 MIME-Version: 1.0 In-Reply-To: <20140723152649.GJ23210@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> Date: Thu, 31 Jul 2014 22:26:55 +0530 Message-ID: Subject: Re: [PATCHv9 2/4] mailbox: Introduce framework for mailbox From: Jassi Brar To: Lee Jones 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 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(). Thanks Jassi