Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp774216ybg; Wed, 10 Jun 2020 13:22:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbDzaQN6KkI2bAWtQa92sLygrPZZ5D5cpgrOKCKcsSFFvPH+fu9MFUU3k4X6goOeYvXWDE X-Received: by 2002:a17:906:4c81:: with SMTP id q1mr5157682eju.273.1591820563786; Wed, 10 Jun 2020 13:22:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591820563; cv=none; d=google.com; s=arc-20160816; b=uqNjglVj9HafMWksGsMkwMZ9AAQB34lVjSj1ScDV41Rt3+l7L/21bhj6MCvWNzt5Kz mOd7OZNot0Zkww/Lkdru+p2F9AT2f1jHxfHgjFL4LHAzyLrK5sHoquYfOZSXlEtQUVtq B80f5FfiY43A7ucK5byrQAk87Zi5WdFd2KTM4xkGsAexUwhdJGiFBGc+QdhcyGI68qX5 k/4fhO+jvpAmvXlhc3p8HuxgokzDGZFwN4H4u4nUb1PKzAkWQ+SMxFgJRFvYJ5i5wH5Z ijq55zX9mHUFmuhi+4BN1uWifA89CP4V1a+wbvyLn+7QJ1fUxI+732/AVDxLg+c8fGme 9W7A== 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=aY89JrPbzTjphUZEDgucRVaNNErNDaFMIvpUKdCdfnI=; b=EHd3U/f8VUjcqWLV8RMjG/YZsxd+Ge4lB0P85QvD3n9XXAwV9A/OWb8ClMmiWmnSQs 48BP3jNi9JSt89AXp1rndBOy8uyQ9hbZ2kCZv1KXepCpLjj0aUCEnUAWlPGZ9fCKQ+Zv +DNJ7V4PXIUq/49jllFbWhMowL/nHnrjTehNOGw+/ibZJtISSoyWX88gUUW/k1/rijGJ Qhk8TFnvTrUfnZ8rPCZoJ309E4oYvgGPjJfgGNRXbFbWfT6pp9nGGTnAvT5RFpTml5Yz PH/vRtvSnKCWZM4IM8CFfaj3IqD9sbcXxH9X1TVcyikPx8p1C8Rf0u3I2DtfRat0eekQ k6+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=FUxDQDs1; 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 i10si678359eja.402.2020.06.10.13.22.19; Wed, 10 Jun 2020 13:22:43 -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=FUxDQDs1; 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 S1730485AbgFJUE5 (ORCPT + 99 others); Wed, 10 Jun 2020 16:04:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727877AbgFJUE5 (ORCPT ); Wed, 10 Jun 2020 16:04:57 -0400 Received: from mail-ua1-x92d.google.com (mail-ua1-x92d.google.com [IPv6:2607:f8b0:4864:20::92d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18A6EC03E96B for ; Wed, 10 Jun 2020 13:04:57 -0700 (PDT) Received: by mail-ua1-x92d.google.com with SMTP id c15so1303920uar.9 for ; Wed, 10 Jun 2020 13:04:57 -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=aY89JrPbzTjphUZEDgucRVaNNErNDaFMIvpUKdCdfnI=; b=FUxDQDs1GLvMzbwlfaDvet2E7dlwOTiI+x1M0CSLEXKHAOgyNCMq9qwANI5W+5RiyN jp2WTW879P5CKNUbb1Zash8n51IK0h0oRAh9x4fM0/FD6fyos3qJR+6FQMVYsTfmH0bw gOzvOKZb+wRfpiwDF8bKuKeOnPYDGwy9W2G5M= 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=aY89JrPbzTjphUZEDgucRVaNNErNDaFMIvpUKdCdfnI=; b=JPsj9mrcDbX+XneCp8ljy8ORY24c8Xyer9o5L3GwWZY/d4p1GHqbHSW0SXIN/Xs8lO r0bILLedxkXPFLuE07SOHA6tOTu0ughpQgWUhIFpHkAtO4lsl1agx44cjTL9L3pPWCX2 889SbxxoYydZx3UkEHOamYqQW3rrJjLo6bTN7Y7tVj1wtC0m8pbZ11D8OARbcncydBsG greVAdwdI5ZztWjy6berH7GeOAcecNugCFbBNpcrpSr7c6qf+OVh2tPYZVbiThQh8zNh ISIiRH3f3pjN9HrgZmQJTok1zqWT5bbHLCBBGrLbPtdu1FqJLclDuTqtqYjAK6IgFOEg 2CIA== X-Gm-Message-State: AOAM530nEz+U6UccaRyJTFL0oyymXdC5k/ncKFsMwDu82aoX9w0uQ0+c DqaMhCA1H7121g9rZMJvoQ8xJGpTIyw= X-Received: by 2002:ab0:42e:: with SMTP id 43mr3926100uav.72.1591819495844; Wed, 10 Jun 2020 13:04:55 -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 q185sm107253vkq.10.2020.06.10.13.04.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2020 13:04:55 -0700 (PDT) From: Alain Michaud To: linux-bluetooth@vger.kernel.org Cc: Alain Michaud Subject: [PATCH v2 0/3] Support reading and setting default system parameters Date: Wed, 10 Jun 2020 20:04:49 +0000 Message-Id: <20200610200452.107406-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 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