From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 376AAC433E0 for ; Mon, 8 Jun 2020 08:09:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 18B1D20823 for ; Mon, 8 Jun 2020 08:09:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729117AbgFHIJt (ORCPT ); Mon, 8 Jun 2020 04:09:49 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:38793 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728956AbgFHIJs (ORCPT ); Mon, 8 Jun 2020 04:09:48 -0400 Received: from marcel-macpro.fritz.box (p5b3d2638.dip0.t-ipconnect.de [91.61.38.56]) by mail.holtmann.org (Postfix) with ESMTPSA id B07F3CEC82; Mon, 8 Jun 2020 10:19:35 +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] Bluetooth: hci_qca: Simplify determination of serial clock on/off state from votes From: Marcel Holtmann In-Reply-To: <20200606095259.1.I0683ea838b69285993c176396349b084562b4e19@changeid> Date: Mon, 8 Jun 2020 10:09:46 +0200 Cc: Johan Hedberg , linux-kernel@vger.kernel.org, Abhishek Pandit-Subedi , linux-bluetooth@vger.kernel.org, Rocky Liao , Zijun Hu , Balakrishna Godavarthi Content-Transfer-Encoding: 7bit Message-Id: References: <20200606095259.1.I0683ea838b69285993c176396349b084562b4e19@changeid> To: Matthias Kaehlcke X-Mailer: Apple Mail (2.3608.80.23.2.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Matthias, > The serial clocks should be on when there is a vote for at least one > of the clocks (RX or TX), and off when there is no 'on' vote. The > current logic to determine the combined state is a bit redundant > in the code paths for different types of votes, use a single > statement in the common path instead. > > Signed-off-by: Matthias Kaehlcke > --- > > drivers/bluetooth/hci_qca.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) patch has been applied to bluetooth-next tree. Regards Marcel