Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1281191pxj; Fri, 4 Jun 2021 10:15:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKjrqShOXdmZZPX1PqK/r7zVcBy0Ekf0Xa7/WLfAq+o+75sVYPYQGXn4nj4ddSLJp+OFkr X-Received: by 2002:a17:906:abcc:: with SMTP id kq12mr5237122ejb.97.1622826930806; Fri, 04 Jun 2021 10:15:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622826930; cv=none; d=google.com; s=arc-20160816; b=rKsI0J85CRehsCcMRuEWHCzeNsAbUwK6F5rV88J9XRR0oMoiYnN+F2FnXznuiVOksV tPWWziYnC9/rWqKyzl4803vhH7GHe0yqvjJOZdd4IVj0gC+Gxpy4piP9VyWBuu3TQPZ9 4E0erWdDLgHKsnGbD6jGDlrnSod5/46XeFJwcG/ztSAzSNNVfd4udMuCk2Op0WbmDqYx /bFXg28CzCLnv3VC3PTMR5v8OGUEDNy7BZ7iGIZzWI2AAMkN4HbNakQDcSQJ7c38PIRz 7Xw7JFYHkRiCRrNWFxeHrSB2237CsqDSqit6bttC4Ok7FdAfRt3hQzRgAEF6g6S8/12y EN+Q== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=AioRjLXdVqzqpFwzbcy6pQ0jg1xT22PV4lTeR/LYrxM=; b=g6GieXzUx3J7qPGgwas8gpxa7mg8VfK16rlS2AxWyl7iVNc809IqzALlPwRvwfLPvl GqjosSBD7xW69WN1Qqkz0hqwzaFqwdH/9SZLa7tgkaJnGcPmD/u2huFe7W4lQ6cBvZG7 jgTHbz/RSThbsFVK8zpYeTEXi3x6jTVDB1fur37uMS8Hr3Sy31gp/lSnZvYb9bgg4HlT xqLWlJR9FooNAI6kc5v9L9HJFEUFMUHdB2gNrKlwHfRm1yP4qU4lW1R9PNvSOXXE6jHe qErZkXfpVj2fD8qquQp0p/7BUeeylB0kLTWEDYYqO2k9XQIrZ80U6ujs2ajpQTKiYWTi gVeg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l18si5105772edr.482.2021.06.04.10.15.07; Fri, 04 Jun 2021 10:15:30 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229958AbhFDRPT (ORCPT + 99 others); Fri, 4 Jun 2021 13:15:19 -0400 Received: from foss.arm.com ([217.140.110.172]:43982 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229878AbhFDRPT (ORCPT ); Fri, 4 Jun 2021 13:15:19 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9278B1063; Fri, 4 Jun 2021 10:13:32 -0700 (PDT) Received: from slackpad.fritz.box (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 387D03F73D; Fri, 4 Jun 2021 10:13:30 -0700 (PDT) Date: Fri, 4 Jun 2021 18:13:22 +0100 From: Andre Przywara To: "Russell King (Oracle)" Cc: Greg Kroah-Hartman , Ondrej Jirman , Chen-Yu Tsai , Maxime Ripard , Jernej =?UTF-8?B?xaBrcmFiZWM=?= , Jiri Slaby , linux-serial@vger.kernel.org, Linux ARM Mailing List , Linux Kernel Mailing List , Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz , linux-bluetooth@vger.kernel.org, linux-sunxi@lists.linux.dev, Josh Triplett , tuxd3v@sapo.pt, Rob Herring Subject: Re: sunxi: Bluetooth broken since 5.6-rc1 Message-ID: <20210604181322.52a26de8@slackpad.fritz.box> In-Reply-To: <20210531144136.GS30436@shell.armlinux.org.uk> References: <20210530173454.5ab1dcf5@slackpad.fritz.box> <20210531144136.GS30436@shell.armlinux.org.uk> Organization: Arm Ltd. X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.31; x86_64-slackware-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On Mon, 31 May 2021 15:41:36 +0100 "Russell King (Oracle)" wrote: Hi Greg, > On Mon, May 31, 2021 at 03:21:54PM +0200, Greg Kroah-Hartman wrote: > > On Sun, May 30, 2021 at 05:34:54PM +0100, Andre Przywara wrote: > > > An obvious easy hack-fix is to just define > > > CONFIG_SERIAL_8250_16550A_VARIANTS, which brings the delays back and > > > seems to avoid the problem for me. > > > Another hack which seems to mitigate the problem is to avoid switching > > > the baudrate to something faster than 115200. > > > > > > I observed this on a BananaPi-M64 (Allwinner A64 SoC with AP6212 WiFi/BT > > > chip), but others reported the same issue on a NanoPi Air (Allwinner H3 > > > with 6212), but also other SoCs and devices (at least one AP6210). > > > > > > Obviously those workarounds are not real solutions, and I was > > > wondering if anybody has an idea how to properly fix this? > > > What puzzles me is that the delay is happening during the *UART* > > > probe, so before we even start dealing with the Bluetooth device. > > > > What type of bluetooth device is this, and what does it have to do with > > the serial port? Is the SoC device using the same IP blocks for both? > > Many bluetooth "devices" (I mean the interface from the local machine > to the BT world, not as in remote devices) are connected through a > standard UART. Pictorially, it's: > > CPU <---> UART <---> BT chip <---> Bluetooth RF world > > The reporter seems to be saying is that a change to the UART driver now > means that the bluetooth chip wired to that UART no longer functions due > to slightly different initialisation timings of the host UART. Yes, exactly, thanks Russell for clarifying this. How this works (when it does) is that the UART driver probes, then we look at the children of the UART devicetree node, to probe for those, by virtue of the serdev bus. My question was about if this rings a bell with someone, because I have a hard time piecing together how a delay in the *UART probe* could affect devices depending on it. And how to fix this ... Cheers, Andre