Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3528870pxb; Sat, 13 Feb 2021 00:31:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJx4WCI/65wF8gprtf3HUhZQgojJiN4C8nXCPNlYLy+mZ+Pob36EW44oXcQufwS5G6Zvqzfw X-Received: by 2002:a17:906:d189:: with SMTP id c9mr6860870ejz.36.1613205061131; Sat, 13 Feb 2021 00:31:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613205061; cv=none; d=google.com; s=arc-20160816; b=gxrIK0PHjqR7yrvRkJgoOujnoNKVgv2Af/tpEisCkZzVvjWGhiv+fVJlAro+0fRbqZ KtAKiaHRJ2kOBQuCNkzfReBML+Hk64isvnWmY2c+GXl4mQ+dCQUfMWnHUXuMKVhcums7 dNhjHuPXQuCr+Op1yNKQVn7pCBgtukWJwnHqgU5rlOylFk3EpHja+c3O7XNe+cQuL10O fDjXIVXTgnvboHgse5ZXOM875bUOED+/w/MqvKV0Mt2yW8gdrOnrz17tTRDqcLYqqEWp 9rJ7q1ykN3bvjvYojte5CT5cBQZyicQUud8ChBnbxLX4WK4ttSvrC46KOcPATgcBl8GH TmnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=niJCRt1HPkp3tpo0K3yYi0EKQUm0AKVhQf7fKqoffQ8=; b=r/dtkKgrcJ8Aq8BPzkqDkGh/IgE1lJ0iaoUBDM4aahwgvhqGnrawzMtHYFXI/Tz929 rea6fsTkXtHHxrPZD5ye38CCMm7EQ6/LRxhUhtRYWyq39ev9gX4R3s93dF2fpt3rniwV MSrE6VWbt0v73pRCBKmxA3ng2rcQQQv/xDddhSehkdx4H9Ekj/U4DA3b8cn5+0Rhnas/ s6SVdj2/cHV+T/N1xtQW0fpGKyYBsaz/p+xnphIZsY624QeMx2p+wYyCr0RJf1AQkA/3 XQttT8lUWrmXBAXeEYhXdJog7Ub7u2Vq3QwLz7RfhQBXvgaxGlWdCQSyXpV/seVcpNjs L8YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qJGBRk7B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cd9si2594731ejb.303.2021.02.13.00.30.14; Sat, 13 Feb 2021 00:31:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qJGBRk7B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229662AbhBMI1Z (ORCPT + 99 others); Sat, 13 Feb 2021 03:27:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:41666 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbhBMI1X (ORCPT ); Sat, 13 Feb 2021 03:27:23 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 64A0164E12; Sat, 13 Feb 2021 08:26:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1613204803; bh=Hx2lvOO3U9lYskzR0Wudu5H3Pog0MfYpZs0Ec1Ipnuc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qJGBRk7B5CmmdyjhBy8Ds4gW+j0vhYFeWuzjJmZ/wpBT4ROdtjJZhBWs7w9+NqCgh DkeSnaAU+Agk6wPBpl6ls/vGET9YgxvCrIFJCrTDUxQhghyv1DUL16N0Dao9tycGLl O+Ak5oHlV258P+ItDh5WGL5A9QDZzoXJFYhcwob4= Date: Sat, 13 Feb 2021 09:26:40 +0100 From: Greg Kroah-Hartman To: Florian Fainelli Cc: Al Cooper , linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, devicetree@vger.kernel.org, Jiri Slaby , linux-serial@vger.kernel.org, linux-usb@vger.kernel.org, Masahiro Yamada , Rob Herring Subject: Re: [PATCH v3 2/2] serial: 8250: Add new 8250-core based Broadcom STB driver Message-ID: References: <20210212195736.45328-1-alcooperx@gmail.com> <20210212195736.45328-3-alcooperx@gmail.com> <8cb4bae6-5617-8dd5-4c0f-4c81cb4d741b@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8cb4bae6-5617-8dd5-4c0f-4c81cb4d741b@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 12, 2021 at 12:47:02PM -0800, Florian Fainelli wrote: > > > On 2/12/2021 11:57 AM, Al Cooper wrote: > > Add a UART driver for the new Broadcom 8250 based STB UART. The new > > UART is backward compatible with the standard 8250, but has some > > additional features. The new features include a high accuracy baud > > rate clock system and DMA support. > > > > The driver will use the new optional BAUD MUX clock to select the best > > one of the four master clocks (81MHz, 108MHz, 64MHz and 48MHz) to feed > > the baud rate selection logic for any requested baud rate. This allows > > for more accurate BAUD rates when high speed baud rates are selected. > > > > The driver will use the new UART DMA hardware if the UART DMA registers > > are specified in Device Tree "reg" property. > > > > The driver also sets the UPSTAT_AUTOCTS flag when hardware flow control > > is enabled. This flag is needed for UARTs that don't assert a CTS > > changed interrupt when CTS changes and AFE (Hardware Flow Control) is > > enabled. > > > > The driver also contains a workaround for a bug in the Synopsis 8250 > > core. The problem is that at high baud rates, the RX partial FIFO > > timeout interrupt can occur but there is no RX data (DR not set in > > the LSR register). In this case the driver will not read the Receive > > Buffer Register, which clears the interrupt, and the system will get > > continuous UART interrupts until the next RX character arrives. The > > fix originally suggested by Synopsis was to read the Receive Buffer > > Register and discard the character when the DR bit in the LSR was > > not set, to clear the interrupt. The problem was that occasionally > > a character would arrive just after the DR bit check and a valid > > character would be discarded. The fix that was added will clear > > receive interrupts to stop the interrupt, deassert RTS to insure > > that no new data can arrive, wait for 1.5 character times for the > > sender to react to RTS and then check for data and either do a dummy > > read or a valid read. Sysfs error counters were also added and were > > used to help create test software that would cause the error condition. > > The counters can be found at: > > /sys/devices/platform/rdb/*serial/rx_bad_timeout_late_char > > /sys/devices/platform/rdb/*serial/rx_bad_timeout_no_char > > > > Signed-off-by: Al Cooper > > --- > > MAINTAINERS | 8 + > > drivers/tty/serial/8250/8250_bcm7271.c | 1099 ++++++++++++++++++++++++ > > drivers/tty/serial/8250/Kconfig | 11 + > > drivers/tty/serial/8250/Makefile | 1 + > > drivers/tty/serial/8250/bcm7271_uart.h | 158 ++++ > > 5 files changed, 1277 insertions(+) > > create mode 100644 drivers/tty/serial/8250/8250_bcm7271.c > > create mode 100644 drivers/tty/serial/8250/bcm7271_uart.h > > > > diff --git a/MAINTAINERS b/MAINTAINERS > > index 64c7169db617..bb6ad2fc4376 100644 > > --- a/MAINTAINERS > > +++ b/MAINTAINERS > > @@ -3582,6 +3582,14 @@ S: Supported > > F: Documentation/devicetree/bindings/i2c/brcm,brcmstb-i2c.yaml > > F: drivers/i2c/busses/i2c-brcmstb.c > > > > +BROADCOM BRCMSTB UART DRIVER > > +M: Al Cooper > > +L: linux-usb@vger.kernel.org > > This should probably be linux-serial, copy pasted from the USB entry > down below presumably. Yes, it should not be linux-usb, and that explains why these serial-driver patches were cc:ed to that list :( thanks, greg k-h