Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4344960rwo; Tue, 25 Jul 2023 04:55:55 -0700 (PDT) X-Google-Smtp-Source: APBJJlGJXkClraXCG/nubJatrgyaoWSC1KCLDoc6EBxOqfdjY2jMAjg65XYSjLlzg9oZUawpfhjN X-Received: by 2002:a17:907:7708:b0:993:d589:8b75 with SMTP id kw8-20020a170907770800b00993d5898b75mr2336429ejc.2.1690286155212; Tue, 25 Jul 2023 04:55:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690286155; cv=none; d=google.com; s=arc-20160816; b=u1S0qelrFM51n4MY7JnGM2sCIg3y5ch5NntbxnJ0XVo6vUx2RaBvj3IMk/iCdNtGN+ mb9Ii8obFobAacjNx5Gcs/bmUPZnswgFA8ssSZ2a52njXOO2Dgz6a2lDLzRwftkVbkJI uHs0cMW/hWaRcg+evdz/FfH6hpXP8z+b/mg0h+grML3pG2S5dEjBHh7XGSSZI+9Vur8u sWrNc7eo1pYyqAT4WjaHzGBEgqn4qijeuiHkovtO1lyzzXhg/aXnTCSjN9x7qz4pLZdX +vqrQzSE05C2ZiEr3IWmC07Mw+D7C19Wzmi2gre5qm6VJ4t6el8ZZvmzhuzjH1EVzW7H oq9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=gQcRK2IFFDxLOlP9RzH/AnpbU8gayw9CS92WI/Y9/fY=; fh=BjdBWomeKxwbU7i1380cCFJev5C2O6q/f50/f2/rn3A=; b=kxc0UUyCpJ/MINYuvRuDKZawqAEGNpv5HeYRi1+dSkVGw6Oh05x36XFb5BF5kiW9qV 8tt9XvHEZIpHhCUR/Sa5qh4VErO/wgwG4fKL9MyDxVx38Ixua6LsYSn/6XDSnFJqmAzo V5QXeEZjm+40qhkSsFiEWQHz560/M3mYfjKLadHAakJI4c9qDjmhu0S4ga0p3T0ErJjR vzUbpslcUys+ztsyPLlz5/i6DxtvIqUH8E0zgpK0rl+zVdVFStw/iD9CNKFAJ9Ut/9gz ZyPwi76GCGALYWNJG3cDISeLGEhP7UyDvaU/mFJxW8SqPmFNeRVqa6YJOMCwh0P3Jm32 KjKA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k6-20020a170906970600b009930d603e75si7131880ejx.905.2023.07.25.04.55.18; Tue, 25 Jul 2023 04:55:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229577AbjGYLse (ORCPT + 99 others); Tue, 25 Jul 2023 07:48:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232831AbjGYLrg (ORCPT ); Tue, 25 Jul 2023 07:47:36 -0400 Received: from mx3.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F2941BE1 for ; Tue, 25 Jul 2023 04:47:33 -0700 (PDT) Received: from [141.14.220.45] (g45.guest.molgen.mpg.de [141.14.220.45]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 6E68461E5FE01; Tue, 25 Jul 2023 13:46:58 +0200 (CEST) Message-ID: <7637dd8a-6dc5-eea8-e706-941113ca2f22@molgen.mpg.de> Date: Tue, 25 Jul 2023 13:46:58 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH BlueZ v3 3/3] shared/vcp: Corrected handle size to accommodate included service Content-Language: en-US To: Nitin Jadhav Cc: linux-bluetooth@vger.kernel.org, devyani.godbole@nxp.com, pav@iki.fi, luiz.dentz@gmail.com, sathish.narasimman@intel.com References: <20230725112126.49656-1-nitin.jadhav@nxp.com> <20230725112126.49656-4-nitin.jadhav@nxp.com> From: Paul Menzel In-Reply-To: <20230725112126.49656-4-nitin.jadhav@nxp.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Dear Nitin, Thank you for your patch. Am 25.07.23 um 13:21 schrieb Nitin Jadhav: > Fix: As per specs VOCS is secondary services hence it should be included singular: service? > under a primary service VCS. Current number of handles should be increase increase*d* > to accommodate the included service. I’d always use imperative mood (also in the commit message summary): Correct handle size to accommodate included service or Reserve one more handler in VCS service for VOCS > --- > src/shared/vcp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/shared/vcp.c b/src/shared/vcp.c > index 0408531b2..263da4c30 100644 > --- a/src/shared/vcp.c > +++ b/src/shared/vcp.c > @@ -998,7 +998,7 @@ static struct bt_vcs *vcs_new(struct gatt_db *db, struct bt_vcp_db *vdb) > > /* Populate DB with VCS attributes */ > bt_uuid16_create(&uuid, VCS_UUID); > - vcs->service = gatt_db_add_service(db, &uuid, true, 9); > + vcs->service = gatt_db_add_service(db, &uuid, true, 10); > gatt_db_service_add_included(vcs->service, vdb->vocs->service); > gatt_db_service_set_active(vdb->vocs->service, true); > Kind regards, Paul