Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp951321ybg; Wed, 10 Jun 2020 19:02:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxGQr8p4gcA3Qf3jW8/dyxlr3xzsRC+ik97Q73ohYwWQLBm3tfPIlWRxGpJHg/thgMyY2R X-Received: by 2002:a17:906:6b92:: with SMTP id l18mr6335955ejr.145.1591840957091; Wed, 10 Jun 2020 19:02:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591840957; cv=none; d=google.com; s=arc-20160816; b=w+dSBfzUZoHFNzj29k4fURcPi4SKgbdx9a3GXWj9Ni05l1jxlRNLmCuJ1iBEGCUcs3 9tH+yOx22SQ/n4xECbjSwANT8XddC3cmlVu+Lk4kaxYvtsBvQ/P++fEThSj2zy++lW5C WSDV5zm3OFW0PAphgaDtWmET5Y4O5b1YAZy1ZPmKhuRG0GtkyxlT08HdoogQH2rJCBaT G0ddF/D03eRSXhhulkrXIEO5jc8lUP2t1KH1Fefsf4S7S+dxzQ8TUQZMA1IG/TbcZ4wM qfyPPnew3BCXVIoeIdqGPUtyEpp3HKhzMkdFZp5VuNi8PCPf26gsXO6t6euTrI0RD8SN aHjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=jdGd7oJ9RVYQxRo7fYstmcN3nIcBgTRAT3s0K47VsMw=; b=yfIa30lDUPUi+77gIgkhVmpCQF0GkR2P+pnGxZ28IrrkdWBpLQ21oZv3MgWRm2aHmU rqmupOn87k78twCWrhF8LbEk1vqSyIWSjtf0h28kCE4T96C1SaXzIbE+ipaLonmVOGGl EGiDRIV8QVLNndEZFXa3F+Y/mbZkVTrPiRPUEmpyHYB+2uyaVYitpiwvVryB86JzBlW+ iVw1pxr/iaq3DvsYjdjfkODjL+GoVhU2aAguWSec6S2PHR6Y6YxRdY+PdYhc1ygrE9kJ 9RtNz7e/txYbkOiRPDYBaRo3VDm6CaTefgYet5wy5N9r32P4HAu3k0I613CO44+635UU FKYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Oe13Mt3E; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v6si1082991eje.743.2020.06.10.19.02.11; Wed, 10 Jun 2020 19:02:37 -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; dkim=pass header.i=@chromium.org header.s=google header.b=Oe13Mt3E; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726268AbgFKCCC (ORCPT + 99 others); Wed, 10 Jun 2020 22:02:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726265AbgFKCCC (ORCPT ); Wed, 10 Jun 2020 22:02:02 -0400 Received: from mail-ua1-x944.google.com (mail-ua1-x944.google.com [IPv6:2607:f8b0:4864:20::944]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 066C5C08C5C1 for ; Wed, 10 Jun 2020 19:02:01 -0700 (PDT) Received: by mail-ua1-x944.google.com with SMTP id c15so1578641uar.9 for ; Wed, 10 Jun 2020 19:02:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=jdGd7oJ9RVYQxRo7fYstmcN3nIcBgTRAT3s0K47VsMw=; b=Oe13Mt3Ep6s4ftXeT3oIdif8Sny7slkjK7nXXSGRk40SOMgQL531HPfrSR/f+EFZaV dSP/yt8I49RDYF6zMBzHc4oYxjyOhSrNkkJWmNb31ou9RtBYedmeo0O4mOBu4tMe2HKj DTrbMyGNobD0YiKVD0s+gkCMRIymGdxdARxUc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=jdGd7oJ9RVYQxRo7fYstmcN3nIcBgTRAT3s0K47VsMw=; b=TmrRzIt2/OB/8wGunpmrJC1daVBTB4tLI4bP+eVEFhn0iTaahWu+nuGWHf32qcLsNf e5+ZHhjXGc601Ml9soOMOI307RgubuoOasVVcwxos/yzgzTEwsqWCZMNWQHw7BHZatLR TLNtFSaFkKiBmJnR8FaOB1G64h+y0MR+2H0wspEeLYaY5WJnUO9syHWs7M8uMOm4RIPV GjBs1GHPGlKKEU+OYYTdY69IlROW1HZBu5Vg8VmzGSs00waoqy5H2SLlQYwOBnvjkvOp LfxIow7Z3nWebapLQ2+d/OaZdOvE627l/ZMZZ+M8aYNC44Lmh+KNWxa5tP16+yeOiIsE 7yJQ== X-Gm-Message-State: AOAM533w2DVVIa6lH7cRKlE0232hx52ghe/SR6YMe1diKm9cnbtS8lbV XSYQLIkMKEYhP2vIujEWsFXogGRDqCs= X-Received: by 2002:ab0:5f95:: with SMTP id b21mr4850462uaj.122.1591840920746; Wed, 10 Jun 2020 19:02:00 -0700 (PDT) Received: from alain.c.googlers.com.com (252.177.243.35.bc.googleusercontent.com. [35.243.177.252]) by smtp.gmail.com with ESMTPSA id r17sm243197vsi.34.2020.06.10.19.02.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2020 19:02:00 -0700 (PDT) From: Alain Michaud To: linux-bluetooth@vger.kernel.org Cc: Alain Michaud Subject: [PATCH v3 0/3] Support reading and setting default system parameters Date: Thu, 11 Jun 2020 02:01:54 +0000 Message-Id: <20200611020157.70230-1-alainm@chromium.org> X-Mailer: git-send-email 2.27.0.290.gba653c62da-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This series adds support for reading and setting default system parameters from userspace. In particular, combined with the userspace changes, allows platforms to override default system parameters from a main.conf file. The series has been reviewed and tested on chromeos. Changes in v3: - Fixed sparse errors -Fixing sparse errors Changes in v2: - Renamed the mgmt.h per Marcel's comments. - Addressed Marcel's comments in the implementation. Alain Michaud (3): mgmt: read/set system parameter definitions bluetooth:centralize default value initialization. bluetooth: implement read/set default system parameters mgmt include/net/bluetooth/hci_core.h | 18 +++ include/net/bluetooth/mgmt.h | 30 ++++ net/bluetooth/Makefile | 2 +- net/bluetooth/hci_conn.c | 14 +- net/bluetooth/hci_core.c | 14 +- net/bluetooth/hci_request.c | 15 +- net/bluetooth/mgmt.c | 6 + net/bluetooth/mgmt_config.c | 253 +++++++++++++++++++++++++++++++ net/bluetooth/mgmt_config.h | 11 ++ 9 files changed, 341 insertions(+), 22 deletions(-) create mode 100644 net/bluetooth/mgmt_config.c create mode 100644 net/bluetooth/mgmt_config.h -- 2.27.0.290.gba653c62da-goog