Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp526567rwe; Thu, 1 Sep 2022 03:50:36 -0700 (PDT) X-Google-Smtp-Source: AA6agR7lPCWJhG+1hv4S0PAkWzIRSkNpwze+ExJwZm8P963wmPMq0p20nPOsTuxyGU+IUy4PlCwl X-Received: by 2002:a17:90b:3509:b0:1fb:35ed:6fd4 with SMTP id ls9-20020a17090b350900b001fb35ed6fd4mr8146698pjb.1.1662029435928; Thu, 01 Sep 2022 03:50:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662029435; cv=none; d=google.com; s=arc-20160816; b=p/2vwmK1+zkIVcam4RhP0Fcv3mD6CbelNi6lLj73dHHx6qQs5OaJ70FDy0rgdw39Qq 8fE+4E+wpSShPYsjixOHbeMLvMinUAVUhCwAbaPfH8GfVEpgcGp61ZCzJXZcEfDxySea DjbK0lmSllH11np6oFShBXFifZAbI2en2umMzEU8eEfX7nFn8IWJZ4fGKWBDzIgmfS6w TseBsgIdLVf+03DRwtZ639JrXJcYKPUE39G60EK/JwsfVMg8ivzZtcF0crlarH2uaiuY YYEzo/WgOKw0rs+YMgXPzzJRheXTHkgb/I140o8jVPBQQMJwDOWL03+Pun6vj95wpkmk xlLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=aZDxynz3EsarZZnpfwEelK+kYQKiprN6GFkxTglVz6A=; b=Es+gXsD3r1RQQA7U/4+bRy4HJbx4DPX8gXAU77gb1Nm+7G1IFfNlDKVRpjMlDpB3wx KTKT5mqld/m19ZG50wQgnNuj0qGEy473eW7LlzTc2CB7QTD0NCmA2F4kcTrkxItwzofM v/3JaQdUT2l7Pli16ICPM89CBUDZh+j8v7df5N0FXAa0WHtQ6K0sR5bpBr+Yd99HR/G+ jir0ibVD2rf/nRcqD6ceevg/Rwn6WQ8ryMFEDZUK4Usw+oKvYY5Mvwm809oihG7RE/PS LzZZTPF/T6UwZkgdMUeLWdfhFXbCdzeU24R/tevXeDNeDn1kR+SgpUQTunMQvUru99Pm ZsBw== 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 s17-20020a17090302d100b001752c126e5esi6441509plk.495.2022.09.01.03.50.14; Thu, 01 Sep 2022 03:50:35 -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 S232838AbiIAKn2 convert rfc822-to-8bit (ORCPT + 99 others); Thu, 1 Sep 2022 06:43:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232714AbiIAKnR (ORCPT ); Thu, 1 Sep 2022 06:43:17 -0400 Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [IPv6:2001:4b98:dc4:8::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17313DB04F for ; Thu, 1 Sep 2022 03:43:15 -0700 (PDT) Received: (Authenticated sender: hadess@hadess.net) by mail.gandi.net (Postfix) with ESMTPSA id 8A6BA100006; Thu, 1 Sep 2022 10:43:11 +0000 (UTC) Message-ID: Subject: Re: [PATCH BlueZ v4 2/6] adapter: Implement PowerState property From: Bastien Nocera To: Luiz Augusto von Dentz Cc: "linux-bluetooth@vger.kernel.org" Date: Thu, 01 Sep 2022 12:43:05 +0200 In-Reply-To: References: <20220831091912.47894-1-hadess@hadess.net> <20220831091912.47894-2-hadess@hadess.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.44.4 (3.44.4-1.fc36) MIME-Version: 1.0 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, 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 On Wed, 2022-08-31 at 13:03 -0700, Luiz Augusto von Dentz wrote: > > +enum { > > +       ADAPTER_POWER_STATE_TARGET_NONE = 0, > > +       ADAPTER_POWER_STATE_TARGET_OFF, > > +       ADAPTER_POWER_STATE_TARGET_ON > > +}; > > Lets take out the TARGET portion and have all the states PowerState > can assume including the transitioning ones. Done, with the rest of the changes, in v5. I've also fixed the initial rfkill state if the adapter is blocked before bluetoothd is started.