Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp554628rwd; Wed, 31 May 2023 02:03:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6LZR1RR0MtWhOWv1u/DR0Rd/oVKP09A9ULd0STsd2kV9GJX31megx9Q5PiQigSFo19lL+j X-Received: by 2002:a17:90a:ee44:b0:24d:e296:659b with SMTP id bu4-20020a17090aee4400b0024de296659bmr5119288pjb.22.1685523830293; Wed, 31 May 2023 02:03:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685523830; cv=none; d=google.com; s=arc-20160816; b=xS4pkZf0SGV9T6iLz4xOw5bGWkCp2jXIEJfxgEenoAk3/+95L8KIV4KOxafdoQ5gij 3+Pgd1xLWhA4plBpm2+5XgIxp4fgn7bO1PMkhYfZMv+LMZX1rtCVLPzMi9FXAQteBjIP LRAyzsnBZ9naAwz39OVj9rW1Hot3Hlyy68Lk8ABq1f73PldDrmtRS/fpTeYHAvOI5Qaz aqfD+zpX3ff9z+bmyIFpeGzu+oW2CeP1yK/Ond0fuWYFo9ZEO5Z95YNCcn6amCEaNo76 lHmUZ9RjhlpmQnysJrItKTdaPjB2vI5ZccKTjDEaCwmZqyUafkIMUlzb3+ty4/UVGVBj OrvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=MnHjBEY4Xs8+ykMceLAssT3vEsy/0HdJiPko3dLmGnc=; b=HT6s1GMzfh3wIGrsDIrZUwsJ4B1LQR9VwD+sSMcDNgZYtjyuCLFWMoQCOYYM+lbfox 8sy8+OV3MiRPdjhyuEpADHTH55kK2gqRYK2TRqqCt2OxcYl7XCDrKPdCMDAIvoGVIUK3 AF+kBKg+lUSAdihQoSX9bGWE9ZegfVFAd0RjuWHrVVrH2zvtcoC1jczbfIJc0ZGDelTD 3FIVnHV+YRsF+HzBrzQmA9VptPkj0OFv3bdu2MinATIW0lxCAELZhOWsqG7EIZUYNrv0 ZJV9f+ayhh9xl3FIE4v1lFoT1hizyH0NV1VsMUdzXbNG/QvJx+i0CGjoActmySQfm0n4 8Bmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EdgHBh4f; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x24-20020a63db58000000b0052c688e6608si613592pgi.505.2023.05.31.02.03.25; Wed, 31 May 2023 02:03:50 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EdgHBh4f; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233858AbjEaI6n (ORCPT + 99 others); Wed, 31 May 2023 04:58:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234644AbjEaI6l (ORCPT ); Wed, 31 May 2023 04:58:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76D64121; Wed, 31 May 2023 01:58:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C1F6B634A5; Wed, 31 May 2023 08:58:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 21EFCC4339C; Wed, 31 May 2023 08:58:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685523518; bh=mJSo8BBhwI/dxw8GdROOGb5gjgq5W1wrGSLzQKQwoBM=; h=From:To:Cc:Subject:Date:From; b=EdgHBh4fKoarUjaCHDjrTETCm9eZRtZK+xB4AF1Cvyzt8RfhXhvfpaI39jYisNGel W+1HCggsHBWceZ+Wbd/KdUfbPmF6jywdVc49MKy+6LtxnZYzank29gYJh8Yjnm72HR vnIvAFUIM51knHrRGnCdp/UdStJKvbSIsem/YbdfN2tFUZ2H11UB1OpMz7eZNo8dU7 t/FDcSmg6o4Ji/IcGysS32iTV+6O25M7sJpMFOVmtFXdcdYyhqDdw5I2pPamrtIA+U qLIm1/9xqFneZmU5u5Ys37xbGukQj5AEcSQ68iZJHxMq5X3aCH8zmJVt/0ceSN1WYv vtPKAv85S5MSA== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1q4HfE-0000jj-Ss; Wed, 31 May 2023 10:58:41 +0200 From: Johan Hovold To: Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Johan Hovold Subject: [PATCH RESEND 0/2] Bluetooth: fix debugfs registration Date: Wed, 31 May 2023 10:57:57 +0200 Message-Id: <20230531085759.2803-1-johan+linaro@kernel.org> X-Mailer: git-send-email 2.39.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 The HCI controller debugfs interface is created during setup or when a controller is configured, but there is nothing preventing a controller from being configured multiple times (e.g. by setting the device address), which results in a host of errors in the logs: debugfs: File 'features' in directory 'hci0' already present! debugfs: File 'manufacturer' in directory 'hci0' already present! debugfs: File 'hci_version' in directory 'hci0' already present! ... debugfs: File 'quirk_simultaneous_discovery' in directory 'hci0' already present! The Qualcomm driver suffers from a related problem for controllers with non-persistent setup. Johan Johan Hovold (2): Bluetooth: fix debugfs registration Bluetooth: hci_qca: fix debugfs registration drivers/bluetooth/hci_qca.c | 6 +++++- include/net/bluetooth/hci.h | 1 + net/bluetooth/hci_sync.c | 3 +++ 3 files changed, 9 insertions(+), 1 deletion(-) -- 2.39.3