Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3876152iog; Tue, 28 Jun 2022 04:46:45 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vh1AHaX1axulBqFQ4ztzuSCybX0+rK6btEQjKiWFS1IPOf7IrSDz6ZgABsLko/tulUWagD X-Received: by 2002:a17:907:7289:b0:726:bea6:488d with SMTP id dt9-20020a170907728900b00726bea6488dmr6177167ejc.283.1656416805312; Tue, 28 Jun 2022 04:46:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656416805; cv=none; d=google.com; s=arc-20160816; b=b/xT86eOKLM1UZYyimx727oX13P+A88ZUyiUj5oKwRktHPuAzNm8cD/bwmjjDOaVGC LH0owqsd3V9x8nGtiW55CVVPh9VR52Z3+Ys1dhCt8tpcAV3Prvtvg1VUXTdXLrhltM1I jun8J3tv7WQnNIQwBBOz/aTkAGOiuFHGEDp+D4RkJ/3unt8NqZgRKxVD00NQNoheqtiQ jqIPmQP4ci7jyVR7JuAt5Y0jaaj0YjignRw80T58oR0LhfA62ajIDSFhGmORvDIuTvac yhr18eo9LYkdqRFOjDvNkxPaXTONpxUUwv8qvVsRx122w5sdX20tkZTPD8NCfert1Kos 1qkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=noX9Qw20rdOUnrhd7rCBZDR35mgpbR/5H4GWJxhK7U4=; b=Y8KUlBDsrl9BdeaVkeV9yGdxz3S6hkwsRRE1o64fRJ4a5goU8Yq8etBbKoU0AcwlxY if+D87q0tms9J9zpW+kLrb/kIFxLlY1JAfwneTpgmHeBnd/Zg/cOc3eEhfdprM1dzKox GSEsIlM9AFEncTKhEMWgBRDJTjF9FKzr/z+7nSPiaJQ+Wc5yIj1UsJ/kaSIBZZmkaz0B 1df7M+GN+JG0TK0U+KFhCiRZ78Yjg0Yiq+zWkOqu+9OQFSBBEeBgnZrmzz6Jrw0ZTL3R CCYksMmo+XsBY8ygdnhAEEEDrNRtWJuXssGRk9EGterwUsrgNPWgnZ2IUhLAouxe3K1f DTBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="MydxI/Ip"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o13-20020a170906974d00b00722fc335c77si12885854ejy.213.2022.06.28.04.46.17; Tue, 28 Jun 2022 04:46:45 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b="MydxI/Ip"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344995AbiF1Ljn (ORCPT + 99 others); Tue, 28 Jun 2022 07:39:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229739AbiF1Ljm (ORCPT ); Tue, 28 Jun 2022 07:39:42 -0400 Received: from mail-yw1-x1131.google.com (mail-yw1-x1131.google.com [IPv6:2607:f8b0:4864:20::1131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2593EB873; Tue, 28 Jun 2022 04:39:42 -0700 (PDT) Received: by mail-yw1-x1131.google.com with SMTP id 00721157ae682-318889e6a2cso113657047b3.1; Tue, 28 Jun 2022 04:39:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=noX9Qw20rdOUnrhd7rCBZDR35mgpbR/5H4GWJxhK7U4=; b=MydxI/IpeL1O2h+GMMYUVYNmZbIO8GvAHD8ZtgTZF5Jp/3rzZqM/b7wR88QbDa2N2I c0+YnUKNV7SKdgwODbz9f4zAEn5xalOwLVyjSTOQ16c2mC9epB3YJXm72Kf9PiIGLCQF ChQWnUmcBekLRuk+8j+MldPcN5daqIsMHTOLWhlQ4q1NI96cdeXUyRODYppdAEolW74T ze8rpyYtP8RoCf1kkHXneV00kFXZEZ5pSybf1Uu3zSIyEuPQp/5nwCqfx+9kHHp5XmZY 58pwL7IR00LgSZVFsDu+M1sTsU/cDqPV+7NBiXoTXJPK8YlsTa19o0tgKLuyxOQIAIp+ tCcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=noX9Qw20rdOUnrhd7rCBZDR35mgpbR/5H4GWJxhK7U4=; b=ukc1ht+uRv9LRePKrzWa/NcMRLkLQnSkoJNPvkfnuC2YrOhPEWZdAT1mycXUjXI0DG d3W5tOd+R+lC3Ua9jLPHFzzWjXK4DhApSOSobLyIZ8IXNeqPvtzk0Ky5+AZnF5yOHKpM JYlkhKRMfz1HcOY2jyxZ+zj+bA6SRT3kEyGd5diLNScn5YTecOxnEYmeVYubghhEn8CQ ykr1a8wlZWa6oJG563b7fBNkdfnWeyhKcAG45+Ke2vlMtBFsg6no+BEPWnPJWiqAiC3k 6Zz0JqsiCZNHyRHAkbIuR2wLLNMGSiQAuqIWQomb0gDIveFJIPeGIHXC/ahji6y8hAGi QyKQ== X-Gm-Message-State: AJIora8HJ3AIBQGn3TIubVTO/jkR4b8JpZFmhyU9yDA2GoIlEHjGSCd+ L8doPjlcHytrJGqBMfh2KeLlu7NaOsCt6OdcoRU= X-Received: by 2002:a81:2386:0:b0:317:6586:8901 with SMTP id j128-20020a812386000000b0031765868901mr20792966ywj.195.1656416381294; Tue, 28 Jun 2022 04:39:41 -0700 (PDT) MIME-Version: 1.0 References: <20220628094155.26297-1-ilpo.jarvinen@linux.intel.com> <20220628095136.fhtjjjkj3mre7hwa@pali> <20220628095942.rbpl2iocxoqtzxiy@pali> In-Reply-To: <20220628095942.rbpl2iocxoqtzxiy@pali> From: Andy Shevchenko Date: Tue, 28 Jun 2022 13:39:03 +0200 Message-ID: Subject: Re: [PATCH] serial: mvebu: Apply old baudrate to termios To: =?UTF-8?Q?Pali_Roh=C3=A1r?= Cc: =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= , Greg Kroah-Hartman , Jiri Slaby , Allen Yan , Miquel Raynal , Gregory CLEMENT , "open list:SERIAL DRIVERS" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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, Jun 28, 2022 at 12:01 PM Pali Roh=C3=A1r wrote: > On Tuesday 28 June 2022 11:51:36 Pali Roh=C3=A1r wrote: > > On Tuesday 28 June 2022 12:41:55 Ilpo J=C3=A4rvinen wrote: > > > A fallback baud rate was derived from old termios but got never appli= ed > > > to (new/current) termios. Old termios is dropped once ->set_termios() > > > call chain completes, only termios persists the values. Encode also t= he > > > old baud rate into termios. > > > > > > Fixes: 68a0db1d7da2 ("serial: mvebu-uart: add function to change baud= rate") > > > Signed-off-by: Ilpo J=C3=A4rvinen > > > > Hello! Could you explain a bit more what is this patch fixing? I have > > not caught it yet. Do you have a test scenario which can demonstrate > > this issue? Because I have tested this driver more deeply (on Mox > > and Espressobin) and I have not seen any remaining issue with reporting > > incorrect baudrate. > > Ou, now I see where is the issue. Patch which I tested and which fixes > reporting baudrate is not in kernel tree yet and it looks like I totally > forgot to sent it to ML. I will send it. Sorry for confusion. Shouldn't the Ilpo's applied anyway to fix the current code base? --=20 With Best Regards, Andy Shevchenko