Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp840270pxj; Thu, 17 Jun 2021 15:21:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRK0b4JMJG2v7ZmN9dNW58rYvxox/+z3d1ic/UiOGOkb7VJSrxwlQY013as0j0Vs60P0qt X-Received: by 2002:a05:6e02:20ea:: with SMTP id q10mr4869507ilv.42.1623968505127; Thu, 17 Jun 2021 15:21:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623968505; cv=none; d=google.com; s=arc-20160816; b=Y3VD2BFGSTPg5n9t3NvUy4uDULjNAnE65y+PPzw5JQ4I28Ngbb4FfuCH3swq8HLMGi zHFaBFTqzlJffe8qqlkZ2fIdVPwLQUyoyBLMdV1OO19TLdNXZW2GGpQrfZ5/pJkDiaJB QxERAZa/tPAGpZCLi5V3RQQ1CKStwqKghOUCNWMgLNqjKqCqIZdcyctaZueTWRciKFR7 vgvN/F5xlePV/UM8Cz5eFvBaZvZl0uPclIl0d3wGswxjeswDGDZ+cCRimxq5Zvqao1CK sDKCjrRXS5w3BeWx/rvQFSGy/t6rIMEcXK5/49XvOkGy9etjGp0Ry+N46EdsL5K4gfAC tTWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=p7yOt8Sqqwg0+64uhl7jjD3EXyo9D1HBcssfQqYQmQ0=; b=jUqYOR1w9N/7BJo51u62jxAEDthY4O+733IgdkeNATbQ0xkNBdC4D8BAZ1cr/JrxzE EiEuz9c93aty8xv7xWMR6zlrB0SxQNYbjj/lOiWLFNYjea+oTbWFjfeI/MQ+8AJVkkOY bkNY2UDkD35l4hCB8Ijvyb2OY3I8JdfNspr0aNpe1Rj6vt87Rn9DV0OPv26vb6IHFtsx hVAHtD0kP6QPjaP70lVadwLwemDuaAW2JD9+gMEzcx/ZNcriVNb2VJb7XOuwN8Z3VxSQ CoMixUShLRLW0Ug6L/3OHm0DQkk9+4Ft2W2LbaIpbgEafTHWlXy04FPnwCE3o12B2Tbd LGTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=fUdcjcjI; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h41si6640570jaa.50.2021.06.17.15.21.33; Thu, 17 Jun 2021 15:21:45 -0700 (PDT) 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=@gmx.net header.s=badeba3b8450 header.b=fUdcjcjI; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232574AbhFQRqh (ORCPT + 99 others); Thu, 17 Jun 2021 13:46:37 -0400 Received: from mout.gmx.net ([212.227.15.19]:45679 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230523AbhFQRqg (ORCPT ); Thu, 17 Jun 2021 13:46:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1623951861; bh=p7yOt8Sqqwg0+64uhl7jjD3EXyo9D1HBcssfQqYQmQ0=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=fUdcjcjInBNGszsPGx2vM+W7ZQ4HnqdSALwJUCE1bW1RucH6ycINfiDX7tYmrx2/R wM6yENoXKrcBR17tOmNhkqN+eCmnxBpk6fcv7/Qr+uYirYUuNVWZjjJLxsOqDhK29J BScqaw762H9hygIR6hhzc5bpJImzaOMWI4Y/Vh2Q= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.178.51] ([149.172.234.120]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MwfWa-1l4jJn32j4-00y5O9; Thu, 17 Jun 2021 19:44:21 +0200 Subject: Re: [PATCH] serial: amba-pl011: add RS485 support To: Jiri Slaby , gregkh@linuxfoundation.org Cc: linux@armlinux.org.uk, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210610135004.7585-1-LinoSanfilippo@gmx.de> <5f00ff43-9287-4027-7d80-474da957703c@kernel.org> From: Lino Sanfilippo Message-ID: <7c0ac56d-58da-5e8a-b6be-44bafb183443@gmx.de> Date: Thu, 17 Jun 2021 19:44:21 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <5f00ff43-9287-4027-7d80-474da957703c@kernel.org> Content-Type: text/plain; charset=iso-8859-2 Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:Jh2NaU0qBdY0oHOTZ9WDd6NQuapDUwCMl8vXx7fGOIXDeDQF0rq ZU5J8Eu2cn31J/RlaguLdKG+oDDiSz+SKeRAG91C8jw/PadL6O0uFox1B6wVal/nDHwbLWQ a9hrrKQWeKya7kMRZ+uxIJWLqetztQMQ6lb9H8kmo/e4SmomSjI3GBOrFSdLUvdwGtCg0ps i1MBTThGM0rmCLxzCFTew== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:XxZZ6/QTf7Q=:VkhEKu0XfIC0jNxdeQ3/Vi lmElive9Cbl1xYCRlOJhK55b4jdqAIUVwmHNsLucsdxKZwV7QWiBbbcuerLYJntaDbXOEKQpD WOgVdl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wNW3B0G7qbViky0vmUXw== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 16.06.21 at 08:18, Jiri Slaby wrote: =A0=A0=A0=A0=A0=A0=A0 mdelay(port->rs485.delay_rts_before_send); > > This is up to 1 second delay with interrupts disabled. Definitely not ni= ce. 8250 clamps this to 100 ms at least, why did you choose 1000 ms? > AFAICS the 8250 driver does not clamp values read from the device tree pro= perty "rs485-rts-delay" (set by uart_get_rs485_mode()). Is this on purpose? Regards, Lino