Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp677722yba; Mon, 1 Apr 2019 14:32:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqwnLbuqKejzgPbJEuTgusMTxhjA9oIsfELPtNVjXN8W/LqOMUSF0AweHLDh0TpBpGSf8OZK X-Received: by 2002:a63:e10b:: with SMTP id z11mr59060049pgh.46.1554154344287; Mon, 01 Apr 2019 14:32:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554154344; cv=none; d=google.com; s=arc-20160816; b=yOogkYkX8BC82gCYgXq7ifQCbSsXGYH44fsssAKjOfhSF0gcCbdPd2gOYbVSu+7Zuv cZn8xNbU/qjR8UntDm5m7twAZQkdjd9TEWs3cxeox4qDz0dsuwJjL+A939kwOSSY5R2e jsujwIJM2XtgZmajAJDDjEvmhzdbdDR/I68rqQlAGShjmvQd9TyWy9icb6oOEuWILeFG lW3/7L+Gg//sVh8Usg/ga25sLHpefK64fYxNXXh3iVe31mFFU56ov32tvgmqnslajQt/ sMD/vtCfJAgAeBH8Yq2XnIv/CiI/E2WdzMIfTOq7sST7udTqu//wR5Z0a1iTZLJ/PBV9 UIPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ZQeUjUJ75hyV0LvmNestfM/OIj7Zji+CivzKLWnsuF8=; b=pXN8kRvFuf+89iRgktbN7ngySvFUj9bjptehoggjqi/8cIxNtvxhitGKMK6lPqMofH t+pT8MSIS4+kvHCIx7cTB10W6ACtvyPcmaYRfu8mlEVm2P9TwdG1aPvFRO8QoIQECh13 Slb6KOZfdH8xe5XLJQyPwmI8Cvr/UbNhgc0OzLzmAUpa+xjDwo9shQugwhGiTfbeat0k YdKZZiDYlSvDe8dMwCRHt/PibZXjW/qosokc7FOla6OI7gnP7T+dXdCUykZhocTGXarN LzFFN9FIsyh+EkXH370lkUZkv7DppjECdhwghqF7PM8RY9YO1BQtzq1tBccV0EEmp8/I 5oYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="C/Hl6nvA"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x4si9404700plr.406.2019.04.01.14.32.08; Mon, 01 Apr 2019 14:32:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="C/Hl6nvA"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728629AbfDAVaF (ORCPT + 99 others); Mon, 1 Apr 2019 17:30:05 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:37973 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725858AbfDAVaF (ORCPT ); Mon, 1 Apr 2019 17:30:05 -0400 Received: by mail-pf1-f196.google.com with SMTP id 10so5212720pfo.5 for ; Mon, 01 Apr 2019 14:30:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ZQeUjUJ75hyV0LvmNestfM/OIj7Zji+CivzKLWnsuF8=; b=C/Hl6nvAwzjOA0sSD7bkz7dVqF3w4QMp/iGTJSfondBNHCUZ1n+NHLkS3zCdnKBZXZ l+Bsb5H7Wsh62dtWHTpGMduBIyyl3iJz/BiVaU9U7V8Xmp42/DALGSx3pJSwSo+OWa+l HElkydD94EbYM7/dTfWh6dwMXPRK4poQZwt/U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=ZQeUjUJ75hyV0LvmNestfM/OIj7Zji+CivzKLWnsuF8=; b=snESItNQIN+vBNIu5ibv8W3ed8FSRvWbgkTjteh38G90fWUEvKkdgO8Lxpb8slPU/Q MtQvcyKcIjtq6SXLuTR4tcoDtpyXiRdjMA8WviZH9sSnzF2QhdWT7xF6slNGcCcjt409 G21cXuRho7vEs+bov09RcvFwoweQF4piIy0/5wJnl9fKqaQr6a/GxF1LkLZM8gKThUkG LpK1lIbBEN0KlwyurzWGEww9RfGpH9P4GS59jc71VmVDytMvGI5MRsfFqs1jipXiL4np uhi2H1yU6SfL23CKy8lL2HcZKq2IhY2/XVtJzM4aATz6ea/scvnNpQz5KWYwFEEigaQu MyzQ== X-Gm-Message-State: APjAAAViPRNoenVXniJGg/o5t/zhhrRiLf/GOLXceUsbqvuXs8238ZQx hAq4uA5zSbZFTqE63u01LDOQsg== X-Received: by 2002:a63:6c43:: with SMTP id h64mr60977972pgc.22.1554154204539; Mon, 01 Apr 2019 14:30:04 -0700 (PDT) Received: from localhost ([2620:15c:202:1:75a:3f6e:21d:9374]) by smtp.gmail.com with ESMTPSA id f1sm15891612pgl.35.2019.04.01.14.30.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 01 Apr 2019 14:30:03 -0700 (PDT) Date: Mon, 1 Apr 2019 14:30:03 -0700 From: Matthias Kaehlcke To: Balakrishna Godavarthi Cc: Marcel Holtmann , Johan Hedberg , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, Hemantg , Rocky Liao , Harish Bandi Subject: Re: [PATCH v2 1/2] Bluetooth: hci_qca: Rename STATE_ to QCA_ Message-ID: <20190401213003.GI112750@google.com> References: <20190312204217.73296-1-mka@chromium.org> <96ea2aaad3d9ff631a621498a6c12a35@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <96ea2aaad3d9ff631a621498a6c12a35@codeaurora.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 01, 2019 at 01:16:07PM +0530, Balakrishna Godavarthi wrote: > Hi Matthias, > > On 2019-03-13 02:12, Matthias Kaehlcke wrote: > > Rename STATE_IN_BAND_SLEEP_ENABLED to QCA_IN_BAND_SLEEP_ENABLED. > > The constant represents a flag (multiple flags can be set at once), > > not a unique state of the controller or driver. > > > > Also make the flag an enum value instead of a pre-processor constant > > (more flags will be added to the enum group by another patch). > > > > Signed-off-by: Matthias Kaehlcke > > --- > > Changes in v2: > > - don't use BIT() > > - change to enum type > > - updated commit message > > --- > > drivers/bluetooth/hci_qca.c | 15 ++++++++------- > > 1 file changed, 8 insertions(+), 7 deletions(-) > > > > diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c > > index 237aea34b69f..1b7ba9e9e08a 100644 > > --- a/drivers/bluetooth/hci_qca.c > > +++ b/drivers/bluetooth/hci_qca.c > > @@ -54,9 +54,6 @@ > > #define HCI_IBS_WAKE_ACK 0xFC > > #define HCI_MAX_IBS_SIZE 10 > > > > -/* Controller states */ > > -#define STATE_IN_BAND_SLEEP_ENABLED 1 > > - > > #define IBS_WAKE_RETRANS_TIMEOUT_MS 100 > > #define IBS_TX_IDLE_TIMEOUT_MS 2000 > > #define CMD_TRANS_TIMEOUT_MS 100 > > @@ -67,6 +64,10 @@ > > /* Controller debug log header */ > > #define QCA_DEBUG_HANDLE 0x2EDC > > > > +enum qca_flags { > > + QCA_IN_BAND_SLEEP_ENABLED, > > +}; > > + > > [Bala]: I would recommend to go with QCA_IBS_ENABLED as IBS is abbreviated > as In band sleep. Sounds good, thanks for the suggestion!