From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lee Jones Subject: Re: [PATCHv9 2/4] mailbox: Introduce framework for mailbox Date: Fri, 1 Aug 2014 09:17:00 +0100 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-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Content-Disposition: inline In-Reply-To: Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Jassi Brar Cc: Devicetree List , lkml , "ks.giri-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org" , Arnd Bergmann , Ian Campbell , Mark Rutland , robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.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 List-Id: devicetree@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: >=20 > >> >> + if (chan->txdone_method =3D=3D (TXDONE_BY_POLL | TXDONE_B= Y_ACK)) > >> >> + chan->txdone_method =3D 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. --=20 Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org =E2=94=82 Open source software for ARM SoCs =46ollow Linaro: Facebook | Twitter | Blog -- To unsubscribe from this list: send the line "unsubscribe devicetree" i= n the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html