Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp184047lqb; Tue, 16 Apr 2024 12:22:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWahA87gbcUWSNgsMgfFv0Grn+vMbRTwVHaBHrY4nTCQs9EG/yOZuP6CBtjXEduIoc8w5FjQentipTbCMM2MkPo9mzKRwUZptw5guegVA== X-Google-Smtp-Source: AGHT+IGo1l0nY5Tw8rnmPQOPRRrd/6+DERWd/ENYlW5FlP9XNsJPnSrUPqkO0vM5RBBAHCMMSkuX X-Received: by 2002:a17:907:944e:b0:a52:5b3c:b527 with SMTP id dl14-20020a170907944e00b00a525b3cb527mr7032896ejc.28.1713295320337; Tue, 16 Apr 2024 12:22:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713295320; cv=pass; d=google.com; s=arc-20160816; b=jCCAk6RVCKIAuR8C7vpTV7HDUghCpyVYTmysQgg6uxQ+qou+zv9zELym2arLVuMAaj DXOVtM0bxdDWg2DaG1eUh+A4plUcYWj9YA7VoW+nLvppwhTSuhgzClHNRhhLKKXnzGRw qUhRhxaU3NEiTuRYEYZH++lpIsLnxLM2iWKZdAUalgiAkrdvXzkU2U/jmhOTuKm2A3Zr gP4Ou/XuCvuMv99ov+BCwxsG1aAKo/zsD0hkd1bH2CrnuWDF/CMxqsO9ncz+gWXp8M01 GQGpYmNi8d8dJEUqxW/501Eg90M+c2/9PMnDuF8Xyr6fikJB6a2KdN9d0Q737WHgJ2Bu gu1A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:feedback-id:references :in-reply-to:message-id:subject:cc:from:to:date:dkim-signature; bh=5qcKuUFEXJAj5jrbqiLvzMPkKKsc2Zpg7ofBMee6fJI=; fh=IFgVgoakDO3qw9gWY07IltYmiI3jIJb9zoJI5Tu9WzY=; b=MIRLkEF/6M6CJNUJFRZQlcGxVLVPE229s1aKth6gZUSdlO3CaIRhBB4n76nEP8ev7N CMtVuXbymH7O0QABhL95ocpEjk+Haob1yyt8FeUOfM7u9lUACdMgMDv/YnpMH0QWZ2iI JCZtq1OCSzgKvVI2lmXIOVtsDxAcbWRWrugsBC9Ed94bdREWfGETB0L9cO7UkN788JO5 z7dsLcxMoiknRzvz6AiKXt7YvTXoKBZyWu46hTG85u0TO3fTcwIHR1kpF5lGc73oAyZw TyTL5beinvIhG2EhbJXnZz30mRpOwo9RfAGSGtpfBvdVWcm3HPkK21SJZ+27w/3coSUk p6Tg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail3 header.b="JA4Q1Z/K"; arc=pass (i=1 spf=pass spfdomain=pm.me dkim=pass dkdomain=pm.me dmarc=pass fromdomain=pm.me); spf=pass (google.com: domain of linux-kernel+bounces-147469-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147469-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id f3-20020a170906048300b00a523ada570bsi4535372eja.894.2024.04.16.12.22.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 12:22:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147469-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail3 header.b="JA4Q1Z/K"; arc=pass (i=1 spf=pass spfdomain=pm.me dkim=pass dkdomain=pm.me dmarc=pass fromdomain=pm.me); spf=pass (google.com: domain of linux-kernel+bounces-147469-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147469-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 7FC011F21E3C for ; Tue, 16 Apr 2024 19:21:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1F65813849C; Tue, 16 Apr 2024 19:20:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pm.me header.i=@pm.me header.b="JA4Q1Z/K" Received: from mail-40131.protonmail.ch (mail-40131.protonmail.ch [185.70.40.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C2B2713792D for ; Tue, 16 Apr 2024 19:20:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.40.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713295242; cv=none; b=AD+5QMmu0czB3LmjvRH4jB4A4RmycFXRK4UV1p8eohOyFDAAKncIpPwM9EV9q+6F/F+NSse5DHOJ10v/8aJ3twbkrOtmyOymD3XeE+Pfa3AIo/RbNwwNQWqUo+g5kKZeUXqo+RiJ4Itdgh9bxG8ST/0kxnDuhCvErbVWhj9y11o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713295242; c=relaxed/simple; bh=5qcKuUFEXJAj5jrbqiLvzMPkKKsc2Zpg7ofBMee6fJI=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ER3wZr/nbvyfSMjAxGo4D7Bd5GF7u54C5iOGKlG0nPMfLlFGVB5NlpTnlwjVGH0/EvZ2K04I/4BkUtVEHhcyhKzvFTq93Kl9fQpl3JxZrS5O0iToJI2Y135KifDRtrzPP2ZdvLd+3nAJwumyK1KyCCvCuxA19/b3p3ApQRqFyWc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=pm.me; spf=pass smtp.mailfrom=pm.me; dkim=pass (2048-bit key) header.d=pm.me header.i=@pm.me header.b=JA4Q1Z/K; arc=none smtp.client-ip=185.70.40.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=pm.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pm.me DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail3; t=1713295238; x=1713554438; bh=5qcKuUFEXJAj5jrbqiLvzMPkKKsc2Zpg7ofBMee6fJI=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=JA4Q1Z/Kfq2B9xCOZl1sB30t8BiUbqz3JtIqG/nmhdHw2stIKhIzySwnUjQcQm4kL 9N9SJYuq7PCb9aYxb1nlhNteCmK1zdd7GS0rNex0PeOlC4xWVz+8xVbFNv19q4+4Rt /5CinoOCT60ubUyli1LBBD8mLjofcYW18Pb1+QzYPVzV6y1CvRwBZ6gj8Ct3pKaQf9 +NjP1OHduxgTeap1cKc23acEcgLGach0T+290OBH+3TxdsVN8oR0ChnawQPQWQq4oC V00uRG5tuPM+EDZjFpXlJPdSPurYx6L52z5BE4H30RhY0zUW9dwTbqwIZmjG1/Un+3 br9YAx1Mg4AwA== Date: Tue, 16 Apr 2024 19:20:18 +0000 To: Andy Shevchenko From: Michael Pratt Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Greg Kroah-Hartman , Jiri Slaby , Wander Lairson Costa , =?utf-8?Q?Ilpo_J=C3=A4rvinen?= , Vamshi Gajjela Subject: Re: [PATCH v2 1/3] serial: core: Store fifo timeout again Message-ID: In-Reply-To: References: <20240416182741.22514-1-mcpratt@pm.me> <20240416182741.22514-2-mcpratt@pm.me> Feedback-ID: 27397442:user:proton Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Andy, On Tuesday, April 16th, 2024 at 14:58, Andy Shevchenko wrote: > ... >=20 > > + if (port->fifosize > 1) > > + port->timeout =3D uart_fifo_timeout(port); >=20 >=20 > else > port->timeout =3D port->frame_time; >=20 Consistent with what I said in the other reply, the only reason that I have an if statement here, is to avoid doing extra math for devices without a fifo, as a specifically calculated timeout value would be useless in those cases. However, if you don't like the 10 ms default timeout, perhaps port->frame_t= ime could actually be a more reasonable default value? That is, provided that w= e have a process for calculating the proper value already in place... >=20 > -- > With Best Regards, > Andy Shevchenko Thanks for taking a look :D -- MCP