Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp4193386ybg; Mon, 8 Jun 2020 01:14:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzijx9hPzDwdCyC47DGA4A+k06BAY2CfOIpRTMoS/Z+bCHQLICd/xJyfEn0WiBMxVI8eXn X-Received: by 2002:a50:e606:: with SMTP id y6mr21453819edm.63.1591604062728; Mon, 08 Jun 2020 01:14:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591604062; cv=none; d=google.com; s=arc-20160816; b=xBEM6k1hZm7m9KwqVyp/pq0FKzt8UAOjrlTXGjiaHRZO4hFgnOUCGSa4YduXE1PDLr gctIZuF85rGyUepvxBqznnOOp+xq3t9QcXPdTbOIpWDybIoVKfR0ny2sa7OLdPojqqo1 GEWlW28hRYacRnvSlnViMZaCLJK+IoFoT1GT4ICjin8F0XmIGSCyPY9u+S5RYtBzDaVh 2qZ2/RMevkxK0Db5l0+ZN6r4gG8rSnSoF7mk8eVnhmpX6D9AkW22std/d/0py8pM/NXU TL9MqXzppjRXzkZr5vFbWcgYJWV6pGgQvcJEiBBOjh+XVpfqKx0NIzdXR7N1ZTB5/MJa zXzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=7RcEtlLjlmsMOZ6+wEWnUCU0EK4j0LomGwUj5I40J5o=; b=CThXeWOJ8PYq7Nq4jGYDyah/5e0ezNEHOr4625bXUb0mSvWMGVCu4ptqXGVZKR8zTV j/H4PCv7uBKn5a96mlqt5n4onkUdhwICsZCiSM4Rr9dW7ZBgrZZm+gfoVJHdvQnNv+7a Y3ct1/PGhTDz79HKww1DA6L7n394sR1cs8fZxbxU9U0CoomF9zw2L9pnhZDEmTgu65Aj ngOH7VCFCDiIQVJZkHg/V6P6qH1efoZ/gcqJZpKwIZ3bu+qcxHaVHGouxqZl4QuvUcHE YMyg/dqniG7KNf/FlI0kE4Nj2yCkA+bEJLKDNN3FasAarfm0npjkAfn34w5i26FfsGJR uMog== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u18si8223484edy.272.2020.06.08.01.13.58; Mon, 08 Jun 2020 01:14:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729163AbgFHINX (ORCPT + 99 others); Mon, 8 Jun 2020 04:13:23 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:47544 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729173AbgFHINX (ORCPT ); Mon, 8 Jun 2020 04:13:23 -0400 Received: from marcel-macpro.fritz.box (p5b3d2638.dip0.t-ipconnect.de [91.61.38.56]) by mail.holtmann.org (Postfix) with ESMTPSA id D8119CEC82; Mon, 8 Jun 2020 10:23:10 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: [PATCH 2/3] Bluetooth: hci_qca: Skip serdev wait when no transfer is pending From: Marcel Holtmann In-Reply-To: <20200605114552.2.I2a095adb2a9a98b15c11d7310db142b27f8cab28@changeid> Date: Mon, 8 Jun 2020 10:13:21 +0200 Cc: Johan Hedberg , Bluez mailing list , Rocky Liao , Zijun Hu , open list , Balakrishna Godavarthi , Abhishek Pandit-Subedi , Claire Chang Content-Transfer-Encoding: 7bit Message-Id: <140F7A9E-C336-4894-B94A-7ABC687B3EC3@holtmann.org> References: <20200605184611.252218-1-mka@chromium.org> <20200605114552.2.I2a095adb2a9a98b15c11d7310db142b27f8cab28@changeid> To: Matthias Kaehlcke X-Mailer: Apple Mail (2.3608.80.23.2.2) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Matthias, > qca_suspend() calls serdev_device_wait_until_sent() regardless of > whether a transfer is pending. While it does no active harm since > the function should return immediately it makes the code more > confusing. Add a flag to track whether a transfer is pending and > only call serdev_device_wait_until_sent() is needed. > > Signed-off-by: Matthias Kaehlcke > --- > > drivers/bluetooth/hci_qca.c | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) patch has been applied to bluetooth-next tree. Regards Marcel