Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3580474pxm; Tue, 1 Mar 2022 00:54:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJykhG3t2LNxwCQOFbPppvRuVKfDHAs55UQ8onaTp5L/1IvfIwnOdRRu8ICNdPjxFBHvfRGK X-Received: by 2002:a63:d249:0:b0:36c:54fb:43d2 with SMTP id t9-20020a63d249000000b0036c54fb43d2mr20630981pgi.368.1646124857262; Tue, 01 Mar 2022 00:54:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646124857; cv=none; d=google.com; s=arc-20160816; b=jR8QUSaXg1379yy8aQ+SRELQf1dtvKheMFA8DjOOG1NfXLxY/Dkxdw9EovhLehcCj2 h08gpGHzVnaDKLwVSgHVRNTxHF4NYsgVJWFpj0m+BIA2YfCPIDvaVjgouGCVDQ7AhGfy 3ixxaKpctYb2pXP101BH4IA1iY4gBQU2salcVWXl46ZcetoPkqxWNl9ZUO2lIX52fJ2h 3v+qj0aUsf8txN7HSTqx54qdhD0/MaYD5dUDi45DYvIX6Bejn7L0U/r1EhN2JyiJzAOo qkRm19Z1PtzRRsRBgvhFgf1mdQUA59b2fhu/V5BPHxYg21BjuRc+pu0MI/kjyF4wncrR WJIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:in-reply-to:date:subject :cc:to:from:user-agent:references:dkim-signature; bh=XXHAzHSUKx1FZRpzOVh0FkOoc+KpTYgeqdRYpbFwNrY=; b=pxAL1iskljIyUOGNBqeXKKglRUcZbjh0fP1O01vcXhEuLR6yih9RSVgP5MVj419TSs Asx56v+UWECo+BQ+SuoIdPM/K5korXey2MlVqg5kURD+QAsMSwwqaE6OMaS2sIG8r4/l ErN0dBv0BuoKihR78oTJ1XzO1pHyytXZlCZ2Dbqy3865oyuu0RlURg2BhfRVScvEJdfP G6SBnI9txIJVodo4jO7hZacZ95loaLwyrJtSocFrKcP4THVIC6kDKPZkQiTM/VsYsh4F pkXm9xPQRs3H3ppXlF+pSbBk08BvFvinFLzyTMpTzV12tA6pixLEoPhOgxU8IVQ8fKBR v0/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=F+esdrn2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k6-20020a654346000000b0037716e34d1fsi11030311pgq.133.2022.03.01.00.54.03; Tue, 01 Mar 2022 00:54:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=F+esdrn2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233558AbiCAIuj (ORCPT + 99 others); Tue, 1 Mar 2022 03:50:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233569AbiCAIug (ORCPT ); Tue, 1 Mar 2022 03:50:36 -0500 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 134E58932E for ; Tue, 1 Mar 2022 00:49:54 -0800 (PST) Received: by mail-ed1-x52a.google.com with SMTP id q17so21007919edd.4 for ; Tue, 01 Mar 2022 00:49:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version; bh=XXHAzHSUKx1FZRpzOVh0FkOoc+KpTYgeqdRYpbFwNrY=; b=F+esdrn2u/7IDUUa1QkHWhRVrp8WFnBvGjuqIGJHuagwFCGXLVP7vSZU2U3+wERsQT fWvJ+xVv29r9Vrmb9tn5rHED5cU1X8tK2CqfvV6RM7ezsNCdpa2It3cm4FlFR47szVMA eCVvAxQXUxdGb0T/KPMTEqz/zILzvrx4TfoVmIeR9sr3xkFKjk0FSai0zNLjIqNh5sn+ fN7DjLfFSGC311dIGwM3xCmkbA+CJ1cOM9qaZ/yG4C4X3O31AX151x7loCW6uKWMF9W6 WUL5RqWHhqfJFCCTDtQlIVQP7aw4ks1mo9jMmZArFpwcyWc6pxYrEW01WCNfjPO6TnlG /IUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :in-reply-to:message-id:mime-version; bh=XXHAzHSUKx1FZRpzOVh0FkOoc+KpTYgeqdRYpbFwNrY=; b=Ii6pAaJkReLwTEG+c+8Mayceb5Z1SgA+YWUaVLk9wZI3OGksl7JwhAToRhmzA3nWBD iirHukgmiMW/ClFvVIrwW9igLkQq3N4/d4C2FCmHRr1ZCIYsKUrTgb/xXbZ8/CK7FvSW fXHzH258/WuPAdQJDJN23XIwA2oarsXLhdiROJbPAaLGon0Gy55Yu2xasNfjyoQIW2Fz +VNRN7rvHV4/N03lli+fpFX8nX1JRsYiLlveK78uBkVb17M2TJqLKTnue9sQniRWboAz gjhV38J4BdXaBhV1HQGd1gbKQyjxwnnQE1RI2s+T8t8xYXKM4EFLrdP2t0oPpw4rm5yw LGyQ== X-Gm-Message-State: AOAM532qqkDi+bjrZwoxTe0sgzSikwA/nxLcrIqLxg31VhsyGHsBnBGI eRxvslKnOljrMiuSuPWKCRpbDg== X-Received: by 2002:a05:6402:5207:b0:412:806b:6424 with SMTP id s7-20020a056402520700b00412806b6424mr23434103edd.131.1646124592564; Tue, 01 Mar 2022 00:49:52 -0800 (PST) Received: from localhost (82-65-169-74.subs.proxad.net. [82.65.169.74]) by smtp.gmail.com with ESMTPSA id d2-20020a50cf42000000b004135b6eef60sm6931187edk.94.2022.03.01.00.49.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Mar 2022 00:49:52 -0800 (PST) References: <20220225073922.3947-1-yu.tu@amlogic.com> <1j8rtvxnkv.fsf@starbuckisacylon.baylibre.com> User-agent: mu4e 1.6.10; emacs 27.1 From: Jerome Brunet To: Yu Tu , linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Jiri Slaby , Neil Armstrong , Kevin Hilman , Martin Blumenstingl Subject: Re: [PATCH V7 0/6] Use CCF to describe the UART baud rate clock Date: Tue, 01 Mar 2022 09:36:07 +0100 In-reply-to: Message-ID: <1jilsyvyz9.fsf@starbuckisacylon.baylibre.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 01 Mar 2022 at 13:54, Yu Tu wrote: > Hi Jerome, > > On 2022/2/28 18:59, Jerome Brunet wrote: >> [ EXTERNAL EMAIL ] >> >> On Fri 25 Feb 2022 at 15:39, Yu Tu wrote: >> >>> Using the common Clock code to describe the UART baud rate >>> clock makes it easier for the UART driver to be compatible >>> with the baud rate requirements of the UART IP on different >>> meson chips. Add Meson S4 SoC compatible. >>> >>> The test method: >>> Start the console and run the following commands in turn: >>> stty -F /dev/ttyAML0 115200 and stty -F /dev/ttyAML0 921600. >>> >>> Since most SoCs are too old, I was able to find all the platforms myself >>> such as Meson6, Meson8, Meson8b, GXL and so on. I only tested it with >>> G12A and S4. >> GXL based board are still very common an easy to come by. >> I'm quite surprised that you are unable to test on this SoC family > The fact of the matter is that the S4 is our end-2020 chip, the G12A is > five years old, and the GXL is seven years old. If you must ask for a > test, I will report this problem to the leadership to coordinate resources. The age of the SoC is irrelevant. SoCs don't get deprecated based on age in mainline. It is not just GXL, same goes for meson8. These SoCs are actively used. Boards with these SoCs are still sold and easily available. See the VIM1 or the Libretech boards. Breaking things for the the users of these SoCs is not acceptable. So yes, looking at your series, I strongly recommend you do more tests. >> >>> >>> Yu Tu (6): >>> tty: serial: meson: Move request the register region to probe >>> tty: serial: meson: Use devm_ioremap_resource to get register mapped >>> memory >>> tty: serial: meson: Describes the calculation of the UART baud rate >>> clock using a clock frame >>> tty: serial: meson: Make some bit of the REG5 register writable >>> tty: serial: meson: The system stuck when you run the stty command on >>> the console to change the baud rate >>> tty: serial: meson: Added S4 SOC compatibility >>> >>> V6 -> V7: To solve the system stuck when you run the stty command on >>> the console to change the baud rate. >>> V5 -> V6: Change error format as discussed in the email. >>> V4 -> V5: Change error format. >>> V3 -> V4: Change CCF to describe the UART baud rate clock as discussed >>> in the email. >>> V2 -> V3: add compatible = "amlogic,meson-gx-uart". Because it must change >>> the DTS before it can be deleted >>> V1 -> V2: Use CCF to describe the UART baud rate clock.Make some changes as >>> discussed in the email >>> >>> Link:https://lore.kernel.org/linux-amlogic/20220118030911.12815-4-yu.tu@amlogic.com/ >>> >>> drivers/tty/serial/meson_uart.c | 221 ++++++++++++++++++++++---------- >>> 1 file changed, 154 insertions(+), 67 deletions(-) >>> >>> >>> base-commit: a603ca60cebff8589882427a67f870ed946b3fc8 >>