Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp1997340rwa; Sun, 21 Aug 2022 23:25:56 -0700 (PDT) X-Google-Smtp-Source: AA6agR7kv9RfiiPQ5Uu+eLpeaZq0nIubJCr+aJCePONWCTmo/k27pjOw9WuaVlnSb7yuygafOqN3 X-Received: by 2002:a05:6402:270d:b0:43a:67b9:6eea with SMTP id y13-20020a056402270d00b0043a67b96eeamr14835238edd.94.1661149556217; Sun, 21 Aug 2022 23:25:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661149556; cv=none; d=google.com; s=arc-20160816; b=vkials+K+VhCfmaj2vQKaWw76FZAQLFJvxEimN5PFLsjBZbJIUIOO6ymev1Aa9Uw7B LRepzWrQNimao0KVqoogw8Vh9LXTrgb2aCV40Jk/WnfT+vba5KCfj+LVE3N/MLZHxxyE Ye3nIXUkcvZaxIDXk/FmwXGx2soZCPIM24MT7Y284ekDUp5PMjlKWK8Dkswfxu4qWyDD ynEBNBeKKPaYbcOwHZEiwXpQUyE97lI7bWMyFijow3IfdH8Y7cZI/A1BwN28UPrAeHKx PyTJ+C3g0v4cp/hIebkqZcFAApsdfFD/IpjF/kQmGE9zsJUVbdL0wK0tQeSwAyjuK0wZ Cldw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=0n32QO7WaCvxxikoSi8dXsxy2I0sX0AZdECFCZ4TjWE=; b=uWkcWPByfAJYMqwLfoE/sEAyHEXalAKRemjy0LCU/OgOHp6oAbcNPCjbVomtjbsmrx K8dbtP0GyMr52rCoGWuYuj55G675s8nlpVopmz3LZnJZ9QDCKUH5nJ9Svvw+kWrq5VUv WdJ3Ao1Ae8kCpUcBFvurl3rvXaXNClZSGVXRATBJ2ba01p3s2tYf0g6Oglxv/mnLQgHs EFbd8aF5qt4pNfQsJ91yw/Fl4F4DgZrc8ANSrv+eGWaNJCNle/VA6vOsd112O+GE8a5g hAP930yhZG+5+TAkKzuw+0EbJjiGlPw+CmV+zIGY8k6Lpo7SBUmGDeWrvMpLo+SNO0fo RFzQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dd10-20020a1709069b8a00b007306064f323si9937022ejc.531.2022.08.21.23.25.23; Sun, 21 Aug 2022 23:25:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232098AbiHVGQE (ORCPT + 99 others); Mon, 22 Aug 2022 02:16:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232861AbiHVGQD (ORCPT ); Mon, 22 Aug 2022 02:16:03 -0400 Received: from mx1.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1190827171 for ; Sun, 21 Aug 2022 23:16:00 -0700 (PDT) Received: from [192.168.0.2] (ip5f5aeccb.dynamic.kabel-deutschland.de [95.90.236.203]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 3744D61EA192C; Mon, 22 Aug 2022 08:15:58 +0200 (CEST) Message-ID: Date: Mon, 22 Aug 2022 08:15:57 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.1.2 Subject: Re: [Bluez PATCH] adapter: Reset pending settings when receiving MGMT error To: Archie Pusaka Cc: linux-bluetooth@vger.kernel.org, Luiz Augusto von Dentz , Marcel Holtmann , chromeos-bluetooth-upstreaming@chromium.org, Archie Pusaka , Sonny Sasaka References: <20220822125221.Bluez.1.I541cbea9d6295f531c796bf3bda96b22db76bc19@changeid> Content-Language: en-US From: Paul Menzel In-Reply-To: <20220822125221.Bluez.1.I541cbea9d6295f531c796bf3bda96b22db76bc19@changeid> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Dear Archie, Thank you for the patch. Am 22.08.22 um 06:53 schrieb Archie Pusaka: > From: Archie Pusaka I think the tag in the email subject needs to be [PATCH BlueZ] to be detected by the build bot. > We set the pending settings flag when sending MGMT_SETTING_* > commands to the MGMT layer and clear them when receiving success > reply, but we don't clear them when receiving error reply. This > might cause a setting to be stuck in pending state. Were you able to reproduce a problem on real hardware? > Therefore, also clear the pending flag when receiving error. > Furthermore, this patch also postpone setting the pending flag postpone*s* > until we queue the MGMT command in order to avoid setting it too > soon but we return early. Maybe add a comment, that how you tested this? > Reviewed-by: Sonny Sasaka > > --- > > src/adapter.c | 45 +++++++++++++++++++++++++++++++++++++-------- > 1 file changed, 37 insertions(+), 8 deletions(-) […] Kind regards, Paul