Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2722330pxj; Mon, 31 May 2021 09:06:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlTqOEcymI1KdZFvZslO3hAkj4tbHkh5j5asfkHZkz390g1zeuNv5j9564LaAFc93JuUPO X-Received: by 2002:a05:6638:963:: with SMTP id o3mr21838731jaj.0.1622477191733; Mon, 31 May 2021 09:06:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622477191; cv=none; d=google.com; s=arc-20160816; b=wOOlMl7vgYpKikqKJAsTP/M5NU9aYw5ysByFdiOYl6FXM2bpk7BHTwBgRks65GyvcC 6kGTVB5PzY+gQXNoG1hymlwsE4YTyM/QshH8wD7FB9+kru6TawqzgV2FOIN0S60kemaN 9frQnKpj/xSL3KOSyNunptnerJ47iMDQ38kUcP6/dNqoFtb+8QqIGb9T10zp/4Wd8wvH giXO/egObOVeArjEE7NGTGpTqvwElVuOcVccctfcSN5PwVObAWl/OGTNnAiQ+mRcsBJ6 CcN/AXRJgvMFYpt9gwbL1S05i42sPyoVQ4C9L+zTD4W1OcyZS1V66FKyMmlM7xEBZuiF +Xng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=euB7BL2XuW3HoSpXnWIwx0mLzMjhawHcBqDGg751C3g=; b=T67BWmtQK7/IBU0tLhJbhoLl/GGBcBLbZWzxaOHrs5KSUd7bmar/E4mvfsowvrLpDc pFP1z9gDKZJgrRADvIbsiESF3G1kdYI182yRENsQHgeL5U4XMJbJKy8j/YmRflxMYiAg SMin1+o8TxWABqhqB7OiFgF91JPk+jPxpw7dLaqVThhaFYXkheCu90eeEji/1hSfmvMC mzHH7SatJ09YS8ZEAxEZ+HIAdssyQoA1P3naiCkJ62Qe8hBBNp4w9ZQqdyyulRRD2pZS af0FbVhXk2tfD26EG18PkipxPVKcp07gWKWhH1EK5D4S0fUGlQ5njmAqND/CID1HpEpI AC6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=tDWS4hOZ; 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=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l23si12926452jas.94.2021.05.31.09.06.02; Mon, 31 May 2021 09:06:31 -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; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=tDWS4hOZ; 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=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233431AbhEaQGS (ORCPT + 99 others); Mon, 31 May 2021 12:06:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234386AbhEaQEX (ORCPT ); Mon, 31 May 2021 12:04:23 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96589C061351; Mon, 31 May 2021 07:41:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=euB7BL2XuW3HoSpXnWIwx0mLzMjhawHcBqDGg751C3g=; b=tDWS4hOZfgY456Ivm/TAoCqAi kwzSbsxZzymv6NNi44bQffd7ZVRueqJlNBszDtH/qddj46tkhS/3Fuw+g8KWvQi6JsUHe4dq/Kwc+ 9YJrjaDlUyrlg1ENb0GZqTSnR8QXlZ0aakBYMTkeDqJ5SEqj+IrsOnUF/DdY9lHOzkLkGzV08kV7a 8h+GklEje69BI1jShscsHfdMkfebBoWOLNr7s3SllPMQAkFQqMilwb2dvauJcsy4MlG5Vm17JS1l8 mSG6Dfl1lID8lL4zgtQt1eM+fdGEbG6Pqm1pUw4u+Qct3o4zWw7vkf0cqlmthZbmhe2cSV0uXZ+WL B5HbFDzdA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:44520) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lnj6r-0002p9-Al; Mon, 31 May 2021 15:41:41 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1lnj6m-0007d2-9u; Mon, 31 May 2021 15:41:36 +0100 Date: Mon, 31 May 2021 15:41:36 +0100 From: "Russell King (Oracle)" To: Greg Kroah-Hartman Cc: Andre Przywara , Ondrej Jirman , Chen-Yu Tsai , Maxime Ripard , Jernej =?utf-8?Q?=C5=A0krabec?= , 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 Subject: Re: sunxi: Bluetooth broken since 5.6-rc1 Message-ID: <20210531144136.GS30436@shell.armlinux.org.uk> References: <20210530173454.5ab1dcf5@slackpad.fritz.box> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: Russell King (Oracle) Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org 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. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!