Return-Path: MIME-Version: 1.0 In-Reply-To: References: <1384872988-19914-1-git-send-email-ravikumar.veeramally@linux.intel.com> <1384872988-19914-2-git-send-email-ravikumar.veeramally@linux.intel.com> Date: Wed, 20 Nov 2013 11:09:00 +0200 Message-ID: Subject: Re: [PATCH_v2 2/4] android: Handle multiple init(register) and cleanup(unregister) calls properly From: Luiz Augusto von Dentz To: Szymon Janc Cc: Ravi kumar Veeramally , BlueZ development Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Szymon, On Wed, Nov 20, 2013 at 9:02 AM, Szymon Janc wrote: > Hi Ravi, > > On Tue, Nov 19, 2013 at 3:56 PM, Ravi kumar Veeramally > wrote: >> This can be tested with haltest. > > I think this should be already handled by Core service. Were you able > to get success response from daemon on multiple sequent init or > cleanup calls? > > btw: I think we should fix this on hal side as well, currently only > bluetooth hal is handling error from daemon correctly. There is also > question if we should return success on second init call... I would just return success if init was already called and should probably be done in a central place, perhaps in the HAL side. -- Luiz Augusto von Dentz