Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp839204ybg; Wed, 23 Oct 2019 06:37:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZ0lygEso36fLqwiTDxL+n5QL3zG/I5zJe6oegRhGZF6BbDHGC5GVhX/ZDcgUR1goCHvme X-Received: by 2002:a17:906:1911:: with SMTP id a17mr32562604eje.14.1571837831566; Wed, 23 Oct 2019 06:37:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571837831; cv=none; d=google.com; s=arc-20160816; b=0RLGyez3MVLOcesLBpIiDDzE5W2cOU11lFKvflGJ5NStawX0BbCEFgbG1o53vAEdox o9cl2KHBooWqxYVKxF93LxFueQ0XAgWZFakhDoRgrsuXAtRkadtRhOxpGZ/KUSebXlCz hcq1znboVNHhthSIz5xhOyMcSwLKOHRm8pNw0WGeNLOPvFw7p8lwfBjHaBZ3qGUrROuF rkWTBBBkJEXAwTegD7zMwVmrcwZTDDIdE9LurqQUETuuj2QOvpFelGbMSdxJ1HkeAd9l kxloZ9uZQtpfkL3JpvifROqW2LMG5gY+IZXKJmsZoB9ppRRoNggFiLK5XZS96gMWvFgv 0vrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=lgfw9at0VOu+u0rqeQ/dXxtfdYPj3Q9dky7Ys33kI2s=; b=kKaVn+bfCil3AAk3dk/ZoUSkg8tpWwrwoALwCR8ZBxadG5/UO1c477C5hx3CijUcm4 OH3pXsGRN5lFRyoqVdb8UcWEDyenAww6AwLANgkgxiiLdpBjeB0nWO/8cEyAnFIeTYvS 55TxL0cptiDa8KiERsCm1B/CFsuOx/9uaeURqAvxrinx5PMR4dECMqkL+5sCiO3CVdUg 9pnyvj7YfZpJh55NYUoSO9ddRF4NZcaQqOkBGvz+QZej93feQ+9PZtTHMBZcWtOm+ADs 7yHmmUI098HgLr2Unhv+ofURWuJjytWNKHBAxre8Jt4e1ZriZCUp38PtHB+KE+R1oVnq 71mg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s19si9077445edd.351.2019.10.23.06.36.47; Wed, 23 Oct 2019 06:37:11 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391631AbfJWMmq convert rfc822-to-8bit (ORCPT + 99 others); Wed, 23 Oct 2019 08:42:46 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:47812 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732361AbfJWMmp (ORCPT ); Wed, 23 Oct 2019 08:42:45 -0400 Received: from marcel-macpro.fritz.box (p4FEFC197.dip0.t-ipconnect.de [79.239.193.151]) by mail.holtmann.org (Postfix) with ESMTPSA id E0B6ACECDE; Wed, 23 Oct 2019 14:51:43 +0200 (CEST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3594.4.19\)) Subject: Re: [PATCHv2 4/4] Bluetooth: btwilink: drop superseded driver From: Marcel Holtmann In-Reply-To: <20191023122745.ldh2ghnzazdhaf2x@earth.universe> Date: Wed, 23 Oct 2019 14:42:43 +0200 Cc: Tony Lindgren , Adam Ford , Enric Balletbo i Serra , linux-bluetooth@vger.kernel.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com Content-Transfer-Encoding: 8BIT Message-Id: <299B10E1-E7A8-4346-BED9-A48446C4D866@holtmann.org> References: <20191003134147.9458-1-sre@kernel.org> <20191003134147.9458-5-sre@kernel.org> <20191020205901.56bafijk7cu3rpaj@earth.universe> <20191023122745.ldh2ghnzazdhaf2x@earth.universe> To: Sebastian Reichel X-Mailer: Apple Mail (2.3594.4.19) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sebastian, >>>>> All users of this driver have been converted to the serdev based >>>>> hci_ll driver. The unused driver can be safely dropped now. >>>>> >>>>> Signed-off-by: Sebastian Reichel >>>>> --- >>>>> drivers/bluetooth/Kconfig | 11 -- >>>>> drivers/bluetooth/Makefile | 1 - >>>>> drivers/bluetooth/btwilink.c | 337 ----------------------------------- >>>>> 3 files changed, 349 deletions(-) >>>>> delete mode 100644 drivers/bluetooth/btwilink.c >>>> >>>> patch has been applied to bluetooth-next tree. >>>> >>>> However what I really like to see is that you re-introduce a >>>> btwilink driver that is purely serdev based and doesn’t rely on >>>> any hci_uart/hci_ldisc code. A clean serdev only driver is that >>>> best and easier to maintain long term. >>> >>> So basically move the serdev implementation from hci_ll.c into its >>> own driver and make hci_ll hci_uart based only? That effectively >>> means, that we have two implementations of the protocol. I don't >>> think this will improve maintainability, since then bugs needs to >>> be fixed in two places? Note, that we have a couple of drivers >>> with serdev+hci_uart by now: >>> >>> for file in $(grep -l serdev drivers/bluetooth/hci_*c) ; grep -l hci_uart_register_proto "${file}" >>> hci_bcm.c >>> hci_h5.c >>> hci_ldisc.c >>> hci_ll.c >>> hci_mrvl.c >>> hci_qca.c >> >> I would like to have something similar to btmtkuart.c which is a >> pure serdev driver that doesn’t depend on any hci_ldisc.c >> framework. If we have this, then we would just drop hci_ll.c from >> the kernel and focus on the serdev only version. As noted, there >> is no need for any other driver at that point since everything is >> probed anyway. Users will not even notice the difference. > > This can be achieved by just removing the hci_uart part from > hci_ll. But AFAIK there are some non-wilink based TI HCILL > devices, which do not require any extra platform data and might > still use the hci_uart part. the hci_ldisc and hci_uart driver abstraction provides enqueue and dequeue handling that just needs to be removed and done natively in the serdev driver. This should be all straight forward and we can keep the current hci_ll.c around for a bit to see what users we have. However I really want to migrate everything over to native serdev drivers that are standalone. The TI HCILL is complex enough to warrant a separate driver. Regards Marcel