Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4386675ybg; Mon, 21 Oct 2019 08:15:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqyL3EDL8tnD5WzVqt+f92dMu63EGQ38RBxMJtN/3piTAJ7s7CJTo73kU/lDAvZ3fHEA2+m0 X-Received: by 2002:a17:906:d209:: with SMTP id w9mr4485954ejz.40.1571670900387; Mon, 21 Oct 2019 08:15:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571670900; cv=none; d=google.com; s=arc-20160816; b=aTmbU1GFiGDDN/TiDX6tWlUfPrQkQxd/+ZIR51XvsBMDBAyemIGN75GBs/PeFReuPo Bp2AwCUciFie92Uyho5tNV9gl1AA1OMrzOCOHxXWJ6V0cVbgXdeRJsoOHPjX8jHgFTea eWaRi2LKhmfVYLxinZvOdnG8aoq2JxxFk1ORfJSvr+gi+dPOU7T1ZgvgL4pKD0FNuavf 0MN9ZDv5/fJEUwtVqQOR7vPqVCiyQs77DtI2MayDV4zN0+cQk6+NskYnFBbnJju/jk4u vX3VmsJnNgaC7LkksBrmsOYjN4+aOhQhSup7KDchgKsUAS4VXAFyszyZpy7zVBYBrJFu x1zg== 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=NZBt2f8uzfykrn+It9zDpWhNclJREoesdefWBBUSi38=; b=hTB/ore1+2JAZbeWjUDuh2bsoz1woNHzavObVtt53DP19Yc4TqSKZ/sTRdhvFDm2gO eskHNZ7P0iPQre92OVFngsTQ1Hje+qL+WDFw8SiMW6RTdmhc5tQ5qIcO7KWPI6kvROeN zUNs1ltV0L7CLQ77bJVeWRZjn2qWTvfDgBosXvbr5weVqAXzwrTPIp8PSPojFscnsnkQ IQCxdGoAUGX9Nj+TlbuJVNeZCDSMJCiYV8C+1y1UKa/ZFfuJHh8jBVfxFXtGA2R84YF+ V2HV87s/9jBpivUC6lL6Y56XWESE90TT5fsU2EK6K1mV3oX1HyqdiHOObmAGauuwO5Qu JVAQ== 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 s39si2840013edm.338.2019.10.21.08.14.36; Mon, 21 Oct 2019 08:15:00 -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 S1729408AbfJUPOT convert rfc822-to-8bit (ORCPT + 99 others); Mon, 21 Oct 2019 11:14:19 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:42578 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727355AbfJUPOS (ORCPT ); Mon, 21 Oct 2019 11:14:18 -0400 Received: from marcel-macbook.fritz.box (p4FEFC197.dip0.t-ipconnect.de [79.239.193.151]) by mail.holtmann.org (Postfix) with ESMTPSA id 1DA90CECC4; Mon, 21 Oct 2019 17:23:16 +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: <20191020205901.56bafijk7cu3rpaj@earth.universe> Date: Mon, 21 Oct 2019 17:14:15 +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: References: <20191003134147.9458-1-sre@kernel.org> <20191003134147.9458-5-sre@kernel.org> <20191020205901.56bafijk7cu3rpaj@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. Regards Marcel