From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758165AbcH3QsW convert rfc822-to-8bit (ORCPT ); Tue, 30 Aug 2016 12:48:22 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:47319 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754607AbcH3QsU (ORCPT ); Tue, 30 Aug 2016 12:48:20 -0400 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: [PATCH 0/4] Bluetooth: hci_uart: various fixes From: Marcel Holtmann In-Reply-To: <1471592327-14133-1-git-send-email-boris.brezillon@free-electrons.com> Date: Tue, 30 Aug 2016 09:48:13 -0700 Cc: "Gustavo F. Padovan" , Johan Hedberg , "open list:BLUETOOTH DRIVERS" , linux-kernel@vger.kernel.org, jason.abele@gmail.com Content-Transfer-Encoding: 8BIT Message-Id: <0649B498-A8BC-42D1-8F70-07B3C8CAB8E2@holtmann.org> References: <1471592327-14133-1-git-send-email-boris.brezillon@free-electrons.com> To: Boris Brezillon X-Mailer: Apple Mail (2.3124) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Boris, > We recently faced some problems when using an BT uart chip interfaced > through the H5 proto (rtk_h5). Here are the logs of the 2 different > issues we had when closing the line discipline (actually, restoring > the previous one) [1][2]. I know the kernel is Tainted in those logs, > but after some investigations I found a few potential issues that might > explain what we're seeing. while I can look through these patches, but I wonder when we are finally getting a full and proper RTK support that doesn't use these hackish hciattach code I have seen. I mean the only thing userspace should be doing is attaching the line discipline and then everything else should run inside the kernel. Attaching the line discipline is the same as plugging in an USB dongle. Detaching it is the same as unplugging the dongle. That is how we should treat it. So for the lifetime of a system it should never detach. All the power control etc. should be done inside the kernel. Same as how we have done it for Broadcom and Intel devices. Regards Marcel