Received: by 2002:ab2:2441:0:b0:1f3:1f8c:d0c6 with SMTP id k1csp12797lqe; Wed, 3 Apr 2024 19:45:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU+sIFt/Yymar9psyorULjdlatZhuElRIoiwilO1RYupMJWuHLBuALwlmH1GYIpg16btoWzE1EdFHqdXXNC6DZlp/08QXN7kqjHnCnLbg== X-Google-Smtp-Source: AGHT+IFwUc5/tp3bm/jAlRnTe8SpbpXx6YTOHTUEGXMjQU7J8+Qwf5tGQELXn+4UPlNk7ftATJZT X-Received: by 2002:a05:6830:1e4e:b0:6e6:c4e0:a2bf with SMTP id e14-20020a0568301e4e00b006e6c4e0a2bfmr1173557otj.24.1712198752368; Wed, 03 Apr 2024 19:45:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712198752; cv=pass; d=google.com; s=arc-20160816; b=NlrVxSX8s/ddFIFkD4bJEA0Xn8n8LNUgbBtw7KpUl2mjkSd7c7rGWG+BaK4n6DjfIN 61qtH/PI0lhmRORr3rWtMdbgUOvpiMlrg5pX5s/oknjj0jPBRdJwx3AFnb/xDbLFJbxF hmCS6jfMzNXTNPsaJ5LbGMeZltGcR2K5fxEw+Ng6rBDKx3pm9vbWMqnWjZhZKrOVhNep j20B6XudkbsKPFLtSxCi36nunmMBqEiD/7Daty0sDFM4DWUqJmSbkx1RPezUH3hx8M74 LkBXwr2ywA2cbaOF/lH1zaHErizjlkOEFFLRW304S/iQgUwXM4cub2Hipv1tLICfPTmQ sdTA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=yhVRyojFtHpDvl/I1GiGcFvBQtnda0HUQSY1ygHsDh8=; fh=QvLe9xSQ7zlfGAr+dqnfPkt50uL0YuAdQlMdBJrVoy4=; b=C/tkUXs2qKha486kcUWuOiwl3b7954VJ3J7chUT4pSWlouvCuQLIABn3usDAE1Ptw4 +fJD2ZWamhSkjaOmvjmxhfxOJDJ1pou5ap6RU8tNZZRDlALYtsKeFdfTIRj75zRjpgXp CyUIdBUaQ6DviNmp+FDe79RqWMTe4/vxWAQYusVpc2B6K29EQH7hWMrFVmK0I7CZn5Xo nKFFj3oeGW9jb7oSjnPLcl0J60wMx5LlpLBYpWVQRpWxTwItXC6swtXL/OVYNytTnSRK 4zALv+WEMg8SeqV7cobySxHIocuT2+BB3QlXPqRc7kxnOOavl+hSUMmde0HBswqweb5r Q1Tw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gmIwGZxW; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-bluetooth+bounces-3184-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3184-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id n12-20020a63f80c000000b005f3dca40648si2532422pgh.880.2024.04.03.19.45.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 19:45:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-3184-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gmIwGZxW; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-bluetooth+bounces-3184-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3184-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 09DA82864B4 for ; Thu, 4 Apr 2024 02:45:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 834951CD03; Thu, 4 Apr 2024 02:45:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gmIwGZxW" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9FDFB1CAB3 for ; Thu, 4 Apr 2024 02:45:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712198747; cv=none; b=FX8Y4hY1tKq4luZxjy+oNCSZQCKYyzEY8smxCkPEW74hYsASasNo1ro4RRirX4A3kglw4kfWLWCH9RO+yPAatNnaod6A3fxNvDYwg6xc+rZIeUOfnAWr1Fj/K7ykkEkCo3SB4dUGP4/BkPvte76AtoosqhNEHdEenBubk8ZEH8Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712198747; c=relaxed/simple; bh=iqy/ebasfT5qjlxKBbAkD5hBnSNu2TQwrUmfsRSSLgo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NcYMtCZbqnJXFFLWNyx0SfvtYooyyWCqKkFsS4vae+kPBoyDwUY3WwKiUpBOa4iitcvzMlB8b59/rFK0yIBBswiVvgyTWtbjSLFgqWdh5hUsf7PpMtg0MBKYM2XBP7z8SqLbwqVaOhHeFHLZjs+wfTBj3MnpwZARI5Il5vi5laI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=gmIwGZxW; arc=none smtp.client-ip=209.85.210.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f194.google.com with SMTP id d2e1a72fcca58-6ecee1f325bso114642b3a.2 for ; Wed, 03 Apr 2024 19:45:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712198744; x=1712803544; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=yhVRyojFtHpDvl/I1GiGcFvBQtnda0HUQSY1ygHsDh8=; b=gmIwGZxWvRlOmqX5Rf2MEn3Z5VsWg2vRUSM88oadA5Qh1/pYHyeMM4/3BFcOX3e86D rEc8Q/2Ad+8f4a07hcsYe+Bg9HgIQnyqIQTRO2hXeoPSrM0QtnT/p1a/QZDqp9rTc199 j2dqK/ZmN4YpDV5BEYICuMWGBUdOukjb+AgqrDh1hMmhUqVJPpi57b8x2uCo/W87Gihk btgFq9SX4E6WqV4DSQm2sKWgMZJoMQIqCuhQImyHJAi+DlMZsOL9YCVSjXlOpGGWYIIq 4wXb0N7vd6/f7Tx0qEyionuP5PMQhwagUJ/D+LO7JH+knJOEF61PETncW5pdGa8ZWyob Cumw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712198744; x=1712803544; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yhVRyojFtHpDvl/I1GiGcFvBQtnda0HUQSY1ygHsDh8=; b=uLh9/Jn26zduETavW50O2zYHnrO6V3/KiGxOQuJJKwB2kP/UF6ivzng0HOUgFJh6QV yTcvE9mRHxwLiUYK3+68wwrv1hXy3ZcxWmW+YzFm12JbJgPjNY4JwYMkGRM6+bnxNVhn wnb7r81ZdB8F+3YJVcVhTlboaqaGubXWMzFIvHo2YRHUXBSOhMXL7Xpp+MJKfWYh/AJD l9YTyqwDSef3QFxzKtwS+oNEMtJ0C0j8uqjzAAh5+e9DYwlkwc+jXf/Z2AcGCqiXvcKA kgyW5pI3CZyPbrHQ62bAfLBimId0b7LWP2NpKp5iPEvZyMXl9GF+ao4hN5vseoi9ikWH IKiA== X-Gm-Message-State: AOJu0YxtI5nLP2wAmTPdaFb54y3uMKBpQssRQrCjP/jpJ44tNJKz9B4e PzEvj7WMgL3OLeKf/q6tP9N37jEEb9gaIocrvPb5yCNouleIwlFd8DHRhbEaX0SwvFFe X-Received: by 2002:a05:6a00:885:b0:6ea:f05d:d2e4 with SMTP id q5-20020a056a00088500b006eaf05dd2e4mr1853591pfj.15.1712198744266; Wed, 03 Apr 2024 19:45:44 -0700 (PDT) Received: from angua.lan ([2600:3c0a:e002:7f00::1001]) by smtp.gmail.com with ESMTPSA id g8-20020aa79dc8000000b006e56da42e24sm12512869pfq.158.2024.04.03.19.45.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 19:45:43 -0700 (PDT) From: Dimitris To: linux-bluetooth@vger.kernel.org Cc: Dimitris Subject: [PATCH BlueZ 0/1] V2: Fix busy loop when disabling BT Date: Wed, 3 Apr 2024 19:45:20 -0700 Message-ID: <20240404024521.120349-1-dimitris.on.linux@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240403205252.71978-1-dimitris.on.linux@gmail.com> References: <20240403205252.71978-1-dimitris.on.linux@gmail.com> Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Second attempt with a more narrow change footprint. Dimitris (1): Refactor btd_device_is_connected src/adapter.c | 2 +- src/device.c | 7 ++++++- src/device.h | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) -- 2.44.0