Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp595046imm; Wed, 6 Jun 2018 02:51:15 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL7+VqDfCcNkFUJBmuxawybG6YaMZG+eAGUky0C5y9/U50eJI/88m02z6N/fxmlMbSSXQn2 X-Received: by 2002:a63:67c4:: with SMTP id b187-v6mr1973059pgc.86.1528278675037; Wed, 06 Jun 2018 02:51:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528278675; cv=none; d=google.com; s=arc-20160816; b=B5MydA8aRqiOXsLQDPUIMTfWzqbOsULCeaLFv60Pkak6enCmd+x/VDp+9Ij9DB+C5E GcjUldAxAOLN6bdo2qbahacfItZG3LskfRoSLniffCb1TW4J2KGEQrEoKOBK58K6XrXa gczuAzX1qipQf61nMwSrE/cumzVYn3yk2r0+QfSfkYFjH1ZHiyOnzEc7knBi1eIQnUfD DXly6+T3hNBe+D6wyNrIwz1NrrmLh6FWw4DEI4MByTIAXjQMYwPVcYY/otbA7wvS2tuT qVMjimIM1ImkjWtOcy4rmQSDNyUptnjZTQpTVDlP0A8tAWsZ8fUQaa1gvEemEsulhxrO R6Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:in-reply-to:message-id:date :subject:cc:from:dkim-signature:arc-authentication-results; bh=xWB9mWlS4/8ttyv1aprORa5s32qafMc+iS+7Ti+dleM=; b=jW8dkbhxl1TiI2DU9LaTOzm5iflDwj2kMfH6aQUjqwzM8NkSYrVk1Cdc9Xk47+HG27 xZTleoNF7acEIePRtxFGo5bdXuIkV60mT4PHv4+aZBhYtp6bWBEUWsoMLXcaKZMCYL2j uugN/eYKbMSJpvzZXirtiW+aCPkA8BZZzwmwKc5vCdEdOR66R2hNiLcqSaW1Svo1M3ck 5Cb+O4x+ZsO9PbC9nJJBYNtXZ/6yipZwoD2s99Z30WqrBssS29UbBMZPEFPQlgjBY5G5 zVvNuQvCr+QvmSXyqwyFFQn+dd1Wgu94eb23dbX7TyRvSGT4VHdhHGi7vzD5XTS6nt6D XtZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@micronovasrl.com header.s=dkim header.b=lLWOEHGT; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q13-v6si8533270pll.72.2018.06.06.02.51.00; Wed, 06 Jun 2018 02:51:15 -0700 (PDT) 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=temperror (no key for signature) header.i=@micronovasrl.com header.s=dkim header.b=lLWOEHGT; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932560AbeFFJuS (ORCPT + 99 others); Wed, 6 Jun 2018 05:50:18 -0400 Received: from mail.micronovasrl.com ([212.103.203.10]:55750 "EHLO mail.micronovasrl.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932378AbeFFJuN (ORCPT ); Wed, 6 Jun 2018 05:50:13 -0400 Received: from mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) by mail.micronovasrl.com (Postfix) with ESMTP id 3CBFCB00737 for ; Wed, 6 Jun 2018 11:50:12 +0200 (CEST) Authentication-Results: mail.micronovasrl.com (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=micronovasrl.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=micronovasrl.com; h=references:in-reply-to:x-mailer:message-id:date:date:subject :subject:to:from:from; s=dkim; t=1528278611; x=1529142612; bh=EY Jzq5c1YUZrcv5ihY4yEGT+75Fsr5otNL9+sOU7g2A=; b=lLWOEHGTOAwScrkhkK 1QWS2M9cDKsln/m5eC9sItDHyuKWGjBEJoRzAhpaeO1eTBpbIymlS/MavdluibeB q/kO79DbOhkBRzw99Vewnjl9MswTx+Cyr9i1Iw5os3rwK3gh2gUrUsbGBcLSaBjI 0ohAq4BtL4py/fBoxYOiMJyGQ= X-Virus-Scanned: Debian amavisd-new at mail.micronovasrl.com X-Spam-Flag: NO X-Spam-Score: -2.9 X-Spam-Level: X-Spam-Status: No, score=-2.9 tagged_above=-10 required=4.5 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9] autolearn=unavailable autolearn_force=no Received: from mail.micronovasrl.com ([127.0.0.1]) by mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id SnMXhZtdYcvE for ; Wed, 6 Jun 2018 11:50:11 +0200 (CEST) Received: from localhost.localdomain (unknown [87.18.119.93]) by mail.micronovasrl.com (Postfix) with ESMTPSA id 42314B007CC; Wed, 6 Jun 2018 11:50:10 +0200 (CEST) From: Giulio Benetti Cc: matwey.kornilov@gmail.com, Giulio Benetti , Greg Kroah-Hartman , Jiri Slaby , Andy Shevchenko , Matthias Brugger , Kees Cook , Allen Pais , Sean Young , linux-serial@vger.kernel.org (open list:SERIAL DRIVERS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 1/4] serial: 8250: Copy em485 from port to real port. Date: Wed, 6 Jun 2018 11:49:40 +0200 Message-Id: <20180606094942.71190-4-giulio.benetti@micronovasrl.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180606094942.71190-1-giulio.benetti@micronovasrl.com> References: <20180606094942.71190-1-giulio.benetti@micronovasrl.com> To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org em485 gets lost during serial8250_register_8250_port(). Copy em485 to final uart port. Signed-off-by: Giulio Benetti --- drivers/tty/serial/8250/8250_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/tty/serial/8250/8250_core.c b/drivers/tty/serial/8250/8250_core.c index 9342fc2ee7df..c8c2b260c681 100644 --- a/drivers/tty/serial/8250/8250_core.c +++ b/drivers/tty/serial/8250/8250_core.c @@ -994,6 +994,7 @@ int serial8250_register_8250_port(struct uart_8250_port *up) uart->port.rs485_config = up->port.rs485_config; uart->port.rs485 = up->port.rs485; uart->dma = up->dma; + uart->em485 = up->em485; /* Take tx_loadsz from fifosize if it wasn't set separately */ if (uart->port.fifosize && !uart->tx_loadsz) -- 2.17.1