Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp285530iof; Mon, 6 Jun 2022 03:32:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTURLBbcs6l4KDmktUZPdwKBPq+Cmet+JGzpOc7ZEPgg5jHM15t9vBQ4/w/Ci/pVPT84j4 X-Received: by 2002:a17:90a:a390:b0:1e6:732b:d4c4 with SMTP id x16-20020a17090aa39000b001e6732bd4c4mr26351967pjp.134.1654511549759; Mon, 06 Jun 2022 03:32:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654511549; cv=none; d=google.com; s=arc-20160816; b=ojOv70zpxByo36UkgvXux+iHCT2WJHlMMzbkvLcCvn4P0A4B9yPZ/KW8QnfP+DvCzy A8ek13MzsSqklVMTNY8wPXT7GuiNjT7/c5SuvOcwrgFHQsJhZvTxSMxv4UGqeNMF+UyF MATgCHI/QiQzO4aEguJpwc97a+37nyNmbOnks63yzwWvmRH+iC6MQr1m3mZyrOnBE/xB IyHMtG0YYuc1e2nOjrSh3xFwJgku3FrwVOZgjAWCCg1j351bvvZJSXg6ciUSbeX6vOFc N95ecPPHh4jQdf+btgc8TtJc+Ka/cXpjhB0NNdPHK36fdYFfXTNWRIMouLWacOPkqyo0 GXbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=n/YJq+hl29+/badEhnjWRfkQObaa0QUiMAbolyKR0J8=; b=vBS0JxD4nfrQCefMTE1eDQyRdVV6TuF5QxX+AdxFuJeVG9W5lRoiuP+vuywcX3+9NF dlZFLtv44nFoYE9BMcWrp0ZBRNtXfCBwP+Epyn8JjZnjuq73r5sA61jJd/0H9/M7fGhv jkI84z0j9IXU8uVXZ0pTbsNTCQPcUhMaiTVRLP7gbtfiP1oBNtLZBFGtA2hnkciRU/FO GhLJoSV2jYrQsG9o4gT4Q5bcLu01N81sAEVFMGREdXNiJBwQKJokikKquXvxIlkb6sbD reppTqysn0MZ2wKBACo79TUemRRJi5DVTdGTIXTumGjnUz2Fv2fLsukt5mJ71Ui7AhTO 8meA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bU9y9E13; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 84-20020a630057000000b003fcd7cfb4c4si18050222pga.349.2022.06.06.03.32.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 03:32:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bU9y9E13; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F074A181478; Mon, 6 Jun 2022 03:11:43 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233622AbiFFKJJ (ORCPT + 99 others); Mon, 6 Jun 2022 06:09:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233486AbiFFKGN (ORCPT ); Mon, 6 Jun 2022 06:06:13 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC8E513B2C4; Mon, 6 Jun 2022 03:06:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654509971; x=1686045971; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=AqwC+FxddxhYwSjVH6EJblIR6L9xqWvygg7hjybJuBc=; b=bU9y9E13NvC4GZ8dhoiqbaVunUEDs5yrOKegE20koy2E/WaxNRDDx+Fi 3ayg+pS/aDiQyCTb1x5y2OBSrf7FjmFyloqq5hqwNdgCYblK4jqk/NML5 FdPh25dr4n5RgqL2tA/FxqJCYKTzpM0BaUlrnPD3tDdU6dNBKfxNqMtwh Q33c3OHL0Oj2sQep8fDN+H5R2q33EUL8/vHT3CxWL5rtfy4aB+w+ToaZK dmaKFijHiW80dqse9lp6ggcB6aw+B7lcnTlPts8wCm86zFITjb53XxNct Gm0Efy4IGaLnr2o/lzE40oE6NpBS4C8W0akC7FCi4Wj8LWkeWk1Ap4pxl Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10369"; a="362987082" X-IronPort-AV: E=Sophos;i="5.91,280,1647327600"; d="scan'208";a="362987082" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2022 03:06:11 -0700 X-IronPort-AV: E=Sophos;i="5.91,280,1647327600"; d="scan'208";a="635523845" Received: from amkossek-mobl1.ger.corp.intel.com (HELO ijarvine-MOBL2.ger.corp.intel.com) ([10.252.57.11]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2022 03:06:09 -0700 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= To: linux-serial@vger.kernel.org, Greg KH , Jiri Slaby , Vladimir Zapolskiy , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Subject: [PATCH 27/36] serial: 8250: lpc18xx: Remove serial_rs485 sanitization Date: Mon, 6 Jun 2022 13:04:24 +0300 Message-Id: <20220606100433.13793-28-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220606100433.13793-1-ilpo.jarvinen@linux.intel.com> References: <20220606100433.13793-1-ilpo.jarvinen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Serial core handles serial_rs485 sanitization and copying rs485 struct. Signed-off-by: Ilpo Järvinen --- drivers/tty/serial/8250/8250_lpc18xx.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/drivers/tty/serial/8250/8250_lpc18xx.c b/drivers/tty/serial/8250/8250_lpc18xx.c index 66ce5d05fe9c..3a1cb51cbc91 100644 --- a/drivers/tty/serial/8250/8250_lpc18xx.c +++ b/drivers/tty/serial/8250/8250_lpc18xx.c @@ -40,14 +40,6 @@ static int lpc18xx_rs485_config(struct uart_port *port, u32 rs485_dly_reg = 0; unsigned baud_clk; - if (rs485->flags & SER_RS485_ENABLED) - memset(rs485->padding, 0, sizeof(rs485->padding)); - else - memset(rs485, 0, sizeof(*rs485)); - - rs485->flags &= SER_RS485_ENABLED | SER_RS485_RTS_ON_SEND | - SER_RS485_RTS_AFTER_SEND; - if (rs485->flags & SER_RS485_ENABLED) { rs485_ctrl_reg |= LPC18XX_UART_RS485CTRL_NMMEN | LPC18XX_UART_RS485CTRL_DCTRL; @@ -73,14 +65,9 @@ static int lpc18xx_rs485_config(struct uart_port *port, / baud_clk; } - /* Delay RTS before send not supported */ - rs485->delay_rts_before_send = 0; - serial_out(up, LPC18XX_UART_RS485CTRL, rs485_ctrl_reg); serial_out(up, LPC18XX_UART_RS485DLY, rs485_dly_reg); - port->rs485 = *rs485; - return 0; } -- 2.30.2