Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp151962lqc; Thu, 7 Mar 2024 13:05:52 -0800 (PST) X-Forwarded-Encrypted: i=4; AJvYcCWKRxj8NscyQUTvkz3jzdz4E+4sw8syG1CqxzM2KtWhDnHnmbCaIyk3H68NN/k52jyTHTqKTpSmDOygTUjKQAGg7brGoibuENuqoTHsHQ== X-Google-Smtp-Source: AGHT+IHaRqeIphcG3BUrs0HFlu5xS0yjTbROYXFyElFy6s/78uMtuJkUR/XSdwYOUz1XuAaJSTQm X-Received: by 2002:a2e:97cf:0:b0:2d3:f68e:ab51 with SMTP id m15-20020a2e97cf000000b002d3f68eab51mr2043063ljj.48.1709845551868; Thu, 07 Mar 2024 13:05:51 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1709845551; cv=pass; d=google.com; s=arc-20160816; b=orMIiP1+JJ37ag8gLygzXjY4Cfu+RJJw7IIkdId2vFwOW5au1z+dguJGtzunATsaAU XyblgLegaXK/tnkn80SgZSB9tRsSvHUXwkC3ieeGpTBoJz2KDvUgs4RZp87l3xYLnRgi vmcL49bwiqMDb8qFwC193kwZi91qUBgoVbFP4yHgQmiLojjzg2NsgjbV6ENh/oLY6jcu hm8anwNXCr0cQgvogU8sSLm68ZSBcfwaXnmYoxq2BNvUFVBfuSduTIRsjYatx1iJmLP4 B1eYJmy96pF/i0uMZjZp/4+A0jgbkTfSwErPsm/tQrIU2RajYrF43QCZ3rm4w4f4Q31s vEoA== ARC-Message-Signature: i=3; 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=JOIgGDjdtARv1sonRymvnJtC1V7OjFeJnLElmSYoZaU=; fh=ExGhjNQEFJgRqHmYATVc5UXZbS7abAmaHDitrfHKOuE=; b=hoqjkrmLkiPHFm6/e65IYJkWFx1Nri5cq5O4vu8P6xQ044GzacvqnnGABAt7WwyAvC 3GCak6wPkOGlM3z9XwRwScNGzJ1HmklMCm5Axdp2sw6agboqIlY8scsr6YU5VsLjB/x2 mtqcxzO/El/L+buWJEN+OTrcHp3033+8MwAVofPS8p9OocWbp425Lzg5ww6rPI5iYoLI 7lDTdbZHhs7K5cpw09fpCoVb+C5FEKLow4NchNtXjjOPhGB9h90wtoIvpq/tWD9ABOHb 8SD9ys7ZX0G1oor+gn111N9lxnRW3bRZ+QswFnvOefvLBQpsCiCQV49Y4EDTE+vCv81U khlg==; dara=google.com ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@iki.fi header.s=lahtoruutu header.b=pfjSK7ef; arc=pass (i=2 spf=pass spfdomain=iki.fi dkim=pass dkdomain=iki.fi); spf=pass (google.com: domain of linux-bluetooth+bounces-2364-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2364-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id bd6-20020a056402206600b00565b50b75f1si7350969edb.431.2024.03.07.13.05.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 13:05:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-2364-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@iki.fi header.s=lahtoruutu header.b=pfjSK7ef; arc=pass (i=2 spf=pass spfdomain=iki.fi dkim=pass dkdomain=iki.fi); spf=pass (google.com: domain of linux-bluetooth+bounces-2364-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2364-linux.lists.archive=gmail.com@vger.kernel.org" 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 96F311F250BB for ; Thu, 7 Mar 2024 21:05:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 463BC13A871; Thu, 7 Mar 2024 21:05:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=iki.fi header.i=@iki.fi header.b="pfjSK7ef" X-Original-To: linux-bluetooth@vger.kernel.org Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [185.185.170.37]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9E668139593 for ; Thu, 7 Mar 2024 21:05:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=185.185.170.37 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709845540; cv=pass; b=LdIsFIvIFhHEB7Kpt9Kvdab1NY6YkYRLbwzvIm6WZigsJ2AtxvGbcSNJKj2tQKCWbnrKz2KZhyQ/v4NPl5YkG/Ms7W/bhqJrO5CxP64JuWxZQqRlL3eDIlALQuEtwy49aqZHMx4IsHKpjH6tMEqaSKAiFnrd7te6HnEPdLSM+g8= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709845540; c=relaxed/simple; bh=IAsHYV/LYTKzBaMwwd5+A9Lzg8buy4fTj9sQ+ouZR1M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Si1/vwD5Hkm+aFXXediYYiT4eDqKj8CnWinEj2pxFpqibr0wBCf5j5COGDKjeiovOKgIQY8vUk8YeP9Oa+msHVr74Fy33N4ShlnRtnLHvNOqlu7bOw8bQiY9XlfxmRuD3O/Ow+gCZRFleHL9b42lGsTNHzg8nDKJDOXAovxvmG4= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=iki.fi; spf=pass smtp.mailfrom=iki.fi; dkim=pass (2048-bit key) header.d=iki.fi header.i=@iki.fi header.b=pfjSK7ef; arc=pass smtp.client-ip=185.185.170.37 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=iki.fi Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=iki.fi Received: from monolith.lan (unknown [193.138.7.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pav) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 4TrMJn0cYmz49Q5W; Thu, 7 Mar 2024 23:05:28 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1709845530; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JOIgGDjdtARv1sonRymvnJtC1V7OjFeJnLElmSYoZaU=; b=pfjSK7efGjO0iSWHqCEW2rLYoBfxzW8bp/TYkVxodz37t5uCtuaqiHCPNiPFKwxxYR8d+f bJn48Tzh+eYLAZhEYbSoibmT+ZQ9ViI294bplz3IxIZISMpv48F/TlIar0fR/CvNEHy/nI qn/e9x9YpQ4aAc/qcV3T9u24Q3m1U6n5+9Iab1ZPoV2hHopj2NvIYknr1FuTiuR6YoUwM4 U6wHbOPOzcYNyppv7SQp6ty6ifTGT0oByWfE/eHOF8eCq5liMuiFhZG/YcIK2JScH3FiYc md7p+CWfhZ+m9y5fgIPrxPN9xuksCTCDwYfXk6Jl0zvHmhLgrfIJubMOWI2CCQ== ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1709845530; a=rsa-sha256; cv=none; b=rJl8Uxghp4+Tcn2ZZwUGmU7qH1FCbHgF9zgr9WXlgpFuJZBXa8xa1LZluMcVtk6/UqIg4d BrLgmwd5MQgVWoQhEBlRODTxSb14siT2WMJzXl2/reRB3njwtu9Gk6g7zX7vwhgHYcblMV mh40fxu4csjzpay6pn9xnwHyr5nW9ZCrT978Oj3j72/v3l85UL0jhFzwzUE10vQNf8Pa5C mWSEDeP+X6LFKPS/GMqJsDd4kTU/Hw4w8WjDfPtYyEliBISEoNqUTXYIb3Pk/USt9wGUiq XyGSnIC73Sff7UYlpGRetEyQ/tyD9Db+wk4IGq+eC7Z5lX2eAAf9zvUmzXUYug== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=pav smtp.mailfrom=pav@iki.fi ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1709845529; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JOIgGDjdtARv1sonRymvnJtC1V7OjFeJnLElmSYoZaU=; b=PhTJXURFlBm0PQ9EasTA9UmtdHqt7dutbVc9zSVuRHF1x6ecFrKxQgavXhmASY1NQyRZvd ++6kQ/VJn0sCubjTgDnBCROIhpWp+n5CCmY14etjIiTURiBWrIJZS2o/OzNGn0BWEf9zx9 UJ6azo+AnW6YKAn4HQcN24doUoaCvjXDyMwDlCPHPnsWfn2jSdbgmtlYlg5XJx2gGz1Dro d1j8/BrBPtqWFXIaS/91mphww3UU89TZK1OzXTRM3AeDtvqwXLoQy7MY0dRzNa6BQHhF0r Nlr/Oc9o5QAc8JXITONOGBDVxMIbYKWW8VyxlndmCdUvjVbUlyNqCgl0bTXM4Q== From: Pauli Virtanen To: linux-bluetooth@vger.kernel.org Cc: Pauli Virtanen Subject: [PATCH BlueZ 2/3] avdtp: don't consider TX timestamps as errors Date: Thu, 7 Mar 2024 23:05:18 +0200 Message-ID: X-Mailer: git-send-email 2.44.0 In-Reply-To: <31e0a8235e5c04ad6ae171024e1127c2e7387e28.1709845195.git.pav@iki.fi> References: <31e0a8235e5c04ad6ae171024e1127c2e7387e28.1709845195.git.pav@iki.fi> Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Use io_add_err_watch to avoid considering TX timestamps as errors in the transport io channel. --- profiles/audio/avdtp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/profiles/audio/avdtp.c b/profiles/audio/avdtp.c index 3667e0840..16d7f7385 100644 --- a/profiles/audio/avdtp.c +++ b/profiles/audio/avdtp.c @@ -31,6 +31,8 @@ #include "btio/btio.h" #include "src/btd.h" #include "src/log.h" +#include "src/shared/io.h" +#include "src/shared/io-glib.h" #include "src/shared/timeout.h" #include "src/shared/util.h" #include "src/shared/queue.h" @@ -862,7 +864,8 @@ proceed: avdtp_sep_set_state(session, sep, AVDTP_STATE_OPEN); - stream->io_id = g_io_add_watch(io, G_IO_ERR | G_IO_HUP | G_IO_NVAL, + stream->io_id = io_glib_add_err_watch(io, + G_IO_ERR | G_IO_HUP | G_IO_NVAL, (GIOFunc) transport_cb, stream); /* Release pending IO */ -- 2.44.0