Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp548689imm; Fri, 1 Jun 2018 05:45:27 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJSRZ+uI1YpK3DGTY8JD5g/3Xex2pKug7yFUk4jE/8/D8sF0UYeMsYKHQgTRLbmTH0hBbwB X-Received: by 2002:a17:902:c81:: with SMTP id 1-v6mr10958083plt.126.1527857127575; Fri, 01 Jun 2018 05:45:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527857127; cv=none; d=google.com; s=arc-20160816; b=b8lxKlIbv9LzuFOdZaq6q5NvDAEIwinyiVYaGEp0Ns1zFq6t7b6MMAF/26MZEKcCY8 AC3fsENzZ5HdK9jjZcO7NBu0cY6muGFjkvH/QUXfkVwvkSUrbMec2Z3zq8LC/T9NX44+ M9xS0gacEP2g/eHz/k7/xYA8gkk5z9Nyr1f9bvLAiMp0Vnb+Cz4QKrwlMsp/yzEiAFI1 TxKh62zuXJ6qfWSnrOCmsWtixxEdUopBCKvNw4ytKFr9yP0d68hPEn5ZC66Pn8dSkWdL bWH5ie+KvOe1EqUBl9GeV7KHoZEitIIHSdsSTesVBcbowFGpBCFlQ5dSSQaZRQf+ZJ/C kyCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=YTFEEN7LOrsMAVO4JURvWVB/Lt67AaF7dAiSxs98y70=; b=rZESU11PdsNQxUC2WmajlHJyqhOaMdr3dmxYsWR6yMpCgCTvulpEITnCymQRSHnNpQ M/PQyuZzZqQ/tUSIfTLYNoDtPaWZtTGcehNOVEL/KahQ1N7y/OQCl20KZR+QxO8pBJDq ElNODEjTBN2KS5lPRB/PeWCg+8jeHYQqJrg9KQWR8R/O40tat008yCBoUZmF7ZotY7mV eHleuI9rMpG6TIWIFSQSeNFA0LO2EhJzpkL2JFUhLV+g59VrCtskO1OeLWbUBhjDLV0t 4KnnDeTPy2hYAZGYLRKtOO5DriGm/VC4MwphsQ8hxVyKOnSmxbxMNrdNJpyGR9RuPWcI XySw== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@micronovasrl.com header.s=dkim header.b=avxf8b/2; 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 q89-v6si4075594pfj.8.2018.06.01.05.45.13; Fri, 01 Jun 2018 05:45:27 -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=avxf8b/2; 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 S1752352AbeFAMmn (ORCPT + 99 others); Fri, 1 Jun 2018 08:42:43 -0400 Received: from mail.micronovasrl.com ([212.103.203.10]:38886 "EHLO mail.micronovasrl.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752190AbeFAMkj (ORCPT ); Fri, 1 Jun 2018 08:40:39 -0400 Received: from mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) by mail.micronovasrl.com (Postfix) with ESMTP id A9DC6B006FC for ; Fri, 1 Jun 2018 14:40:38 +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=1527856838; x=1528720839; bh=ex Konjavq32evH5toheUBhygv7o+WqWHxAzGdoJi1/c=; b=avxf8b/2tIS0nqUqu8 x+VXx5GaMxzaXsKFMh0NpLskIB7I80b+3z5ZURhE3OanWH3nXYUEMuABR+nqyrRr g6oqY4gXdUfH43zv5Tn8zo4NyroEzobKykGCLDhuJxhHe32wqbpPRpAhPuZ15Jny bxaTyljGq40DGtZDg6k04O2UY= 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 lDE8TtkQGolL for ; Fri, 1 Jun 2018 14:40:38 +0200 (CEST) Received: from localhost.localdomain (unknown [87.18.119.93]) by mail.micronovasrl.com (Postfix) with ESMTPSA id E49E7B0093D; Fri, 1 Jun 2018 14:40:30 +0200 (CEST) From: Giulio Benetti To: Greg Kroah-Hartman Cc: Jiri Slaby , Andy Shevchenko , Kees Cook , Matthias Brugger , Allen Pais , Sean Young , Ed Blake , Stefan Potyra , Philipp Zabel , Joshua Scott , Vignesh R , Rolf Evers-Fischer , Aaron Sierra , Rafael Gago , Joel Stanley , Sean Wang , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Giulio Benetti Subject: [PATCH 3/8] serial: 8250: Copy em485 from port to real port. Date: Fri, 1 Jun 2018 14:40:16 +0200 Message-Id: <20180601124021.102970-4-giulio.benetti@micronovasrl.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180601124021.102970-1-giulio.benetti@micronovasrl.com> References: <20180601124021.102970-1-giulio.benetti@micronovasrl.com> 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.0