Received: by 10.223.164.202 with SMTP id h10csp729449wrb; Wed, 22 Nov 2017 14:32:37 -0800 (PST) X-Google-Smtp-Source: AGs4zMYQGALsOgtenlBpApGsmyAkLoeoMf48qfGjVogdrzl82OXbBgwh1I6a0runyd+Aj9mlvZmv X-Received: by 10.98.233.21 with SMTP id j21mr20470849pfh.97.1511389957398; Wed, 22 Nov 2017 14:32:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511389957; cv=none; d=google.com; s=arc-20160816; b=QPfmnFhNHcqFXz+V8aYpa4Et8zmeZcQYLhPOXh5kizQU80ErL731lC+PvwQYHdss5c 72KYz/4v5ne0i2tb0GS+B8zquxHmUpGGatrkkDEsZIPjV0t7mQTT8ceYtLyZMy7xwe6M qot+NrTYXwqfJALn3B6YKK397SlHAlfsz3yEg7eo0bgBvOtI09/IO20MyXg0tCcZQqr3 uAT68rSPSInf+8zd1kI4cVmMYyePttC7dyCqn2+sLiYK1Gu7gRMyndF8BK+nfQV3CT8M ev3QeOFasOm/6Eh+N4eHYZkp7aXXseTTpo+A9+MMi6mC3VoQYqX99Y8hq03AdTFajtfZ hMCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=400WpVNHBLuJvCz6PM6VVJ0hedLnVM7DvdlpzepHCyE=; b=HQKFYKXtiJp8DICCF6GaHSAZ3hZcH/VTVgzkxSe/eZBMLASlZLUdzpoyvwU7E4y3Jl YmVOYCyeOFyOlZ6d3d/AzxQv4wrZrey0VIT10fy04Bft13fxQG3tK5LHLFs+GaEPKvze ahDHffsgaqJ9Rhn2CvS2YI38wkAopbPRHPZ5EphicBrwbLSW/vezUOqX+jEwKu6fZ4vi qSBk9JztNx/6P9Z67zmHrR3p+BlUb06fTmGHvZRZWm5KjYOdm/epzn/eQ+uquKpC3Fi4 ZNjNkGipn2OS/p3jRHsWgpsSnlorDYlXLIQtgAUF8/4gyyQ+QeVts4GPTme2khWpFdLX cbQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cjB8vlqI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j69si14326898pgd.355.2017.11.22.14.32.26; Wed, 22 Nov 2017 14:32:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cjB8vlqI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753444AbdKVWbg (ORCPT + 78 others); Wed, 22 Nov 2017 17:31:36 -0500 Received: from mail-lf0-f65.google.com ([209.85.215.65]:47073 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751635AbdKVWbZ (ORCPT ); Wed, 22 Nov 2017 17:31:25 -0500 Received: by mail-lf0-f65.google.com with SMTP id g35so19929615lfi.13; Wed, 22 Nov 2017 14:31:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=400WpVNHBLuJvCz6PM6VVJ0hedLnVM7DvdlpzepHCyE=; b=cjB8vlqI+Sx3ST7raNXwchfAnZH4ROxav2cyoKSdfOoteEpQYOyKvtIEU4zAAduy8a H/QOjkpGcy1Bs5uTnX/XyuqmlG6nNIpHPKxXBRgtlrjhJA0cW3b0SLfKkhv7GIaMYOsW vBaWI9YXJylLKYCjVrPr8JlU03e5WeKTZ3qKpKt1azBnX/LHx63mLPKHZLs7MQbC5mTc e6Wg9U+7xoewmKC2umxE52Hi8qL6P1ejxGcY1rWX6eTeH+q30CsSOQN0IvoO+4sATlys teIaIUIIEGxCUCrOCGd76T2W07WChH2hSF+Jq+PQUdWmjA4JoZP05LfHtZPvXmgJEAIt G58w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=400WpVNHBLuJvCz6PM6VVJ0hedLnVM7DvdlpzepHCyE=; b=VFAwmbzWiP4KTTyfH717AAGAQnP1WEE3C0Jo/MeSQEjH+4rg+FFD+MANN+XpJB8GdM GkQaXJ6ieC409iL8T1Kg1ZAdsgyCn+Pn7Y9LLiZATVcQqRJzHG11JpVFpkx7Do4hm0Hl tXuG8mmnXeQpSZvbtoHgZS0lplT0oWrY7IIAiHbcLRdiUWXD6HznV9KhsxfaJaWfrq7J C9cXZve0kSUG7Rwi8V4L6PC8sYeldYZ0NzKn53C5QD+E3V7q2uC69lSnWmFz6lFmb6ue OWaKzJTalhpR5gLCBGXh8Km1kRsvEtSAZ1D5CrkMQ8C/VLRFQR8mTAg2auIzHdKYXzK3 S84w== X-Gm-Message-State: AJaThX4fDobnlopkPV7UE+ZzDB+Bzl2RZb1cvexCIHr43zdOTD3+a4c2 7tFqDZ6X4tzFL4PJebmZll1dwih8ZTYL1tIgCtM= X-Received: by 10.25.38.145 with SMTP id m139mr4427305lfm.122.1511389883725; Wed, 22 Nov 2017 14:31:23 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.143.11 with HTTP; Wed, 22 Nov 2017 14:31:02 -0800 (PST) In-Reply-To: <20171106104913.2553-2-ricardo.ribalda@gmail.com> References: <20171106104913.2553-1-ricardo.ribalda@gmail.com> <20171106104913.2553-2-ricardo.ribalda@gmail.com> From: Ricardo Ribalda Delgado Date: Wed, 22 Nov 2017 23:31:02 +0100 Message-ID: Subject: Re: [PATCH 2/2] serial: 8250_fintek: Disable delays for ports != 0 To: Greg Kroah-Hartman , Jiri Slaby , "Ji-Ze Hong (Peter Hong)" , Lukas Wunner , linux-serial@vger.kernel.org, LKML Cc: Ricardo Ribalda Delgado Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ping? On Mon, Nov 6, 2017 at 11:49 AM, Ricardo Ribalda Delgado wrote: > According to the datasheet, only the first port supports delay before > send and delay after send. > > Reported-by: "Ji-Ze Hong (Peter Hong)" > Signed-off-by: Ricardo Ribalda Delgado > --- > drivers/tty/serial/8250/8250_fintek.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/tty/serial/8250/8250_fintek.c b/drivers/tty/serial/8250/8250_fintek.c > index ca7e96f9f080..61745d4bea31 100644 > --- a/drivers/tty/serial/8250/8250_fintek.c > +++ b/drivers/tty/serial/8250/8250_fintek.c > @@ -216,6 +216,12 @@ static int fintek_8250_rs485_config(struct uart_port *port, > rs485->flags &= SER_RS485_ENABLED | SER_RS485_RTS_ON_SEND | > SER_RS485_RTS_AFTER_SEND; > > + /* Only the first port supports delays */ > + if (pdata->index) { > + rs485->delay_rts_before_send = 0; > + rs485->delay_rts_after_send = 0; > + } > + > if (rs485->delay_rts_before_send) { > rs485->delay_rts_before_send = 1; > config |= TXW4C_IRA; > -- > 2.14.2 > -- Ricardo Ribalda From 1583313499059168040@xxx Mon Nov 06 10:50:18 +0000 2017 X-GM-THRID: 1583313499059168040 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread