Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp287460iof; Mon, 6 Jun 2022 03:34:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAIx/0IUlKXv5p23CWtK5puLOeJ0PZyEGOGexrenYe9kED0uy44NVKZiXiVxhxU7c1rxZ3 X-Received: by 2002:a17:902:ce06:b0:15f:a51a:cdec with SMTP id k6-20020a170902ce0600b0015fa51acdecmr23413765plg.53.1654511683985; Mon, 06 Jun 2022 03:34:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654511683; cv=none; d=google.com; s=arc-20160816; b=xd96FwEgwQs8jSQTr4xmBVPIddz/lDLflPf0U1IfvRfH5yOMufxhJaUPEs7N68/U3j 3bnzwWk74osl7bncctzgQLHF4FSojyk7jCmuCShIJN8CY3ZzacNd4bIoFqU/dnS/syVg s3ZdHjjEomwqT3hoZZ1sFFEp4pzt3GRGukcuUXxU7Vzh8yttEsyC1Cna+JmmDuH84GCR 1XTDAVF/Lj90nHvfFViuzZ7C57T6VQ4s+Wlbc+6Fh1PkJtZlIycxAKi2zV5nFEXPqOZu xggmBExkzLbOigbvWJxWmDbKmXr5mvm45Ms8qgBebnh6K4/o0jHSiRs/LsGTBBi0Tnu2 yQ8g== 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=+5JSUl6T9dzo0E9gzTpqLUFwPae7tquGGk12r0TB/ms=; b=MXtOB7pX90Kf2Inh82nQpWnATnAQlMLFWbPOf8RHYUG3YkEdVhznswz/fWXgj6dAYF VxDWs14SMuP6haH0jHqHZvgHMiTEGaDM8paLSuIVWkgOagL8s8BG2PntSAxwTVD+p7f+ DXLPhzqc3akHuqgM0VCjQA0bVHRQBgPdo1NOuu0tlqrNtf65Zx4M+Uq/qgpQro3GqwJs GnX4sdUmrgMW8XzZtu0VWbsydtU8CpATYzuNOR/aBGMaTy4rBHkkqO2sDRmg8sSdBRCQ mqIzAAqcLDhBS4OcUK4ORHtKOUJ/SKOSwD6Dbrjnsk1cYXTmHZLmuIEZwmhCDJJ92VYx sbOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TCDO5eVX; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id s3-20020a632c03000000b003fbe6ace027si20820706pgs.806.2022.06.06.03.34.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 03:34:43 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TCDO5eVX; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 D40BA319; Mon, 6 Jun 2022 03:12:46 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233725AbiFFKJe (ORCPT + 99 others); Mon, 6 Jun 2022 06:09:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233538AbiFFKGb (ORCPT ); Mon, 6 Jun 2022 06:06:31 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF26F14084B; Mon, 6 Jun 2022 03:06:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654509986; x=1686045986; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=7XJq3KuEwylRleSQc/kmsQM+84+gFlD9hNoKE43ukeE=; b=TCDO5eVXQ+w4bw109315m9zeLTX1V5oYlmIdqAQ1zpFvvbczPfXg64Qt no6tqj/1Ewwyppx8D5eZBlN7LyGvIZvKGB9pYBzjvw8PplZOP18u7Tk2Q NQvj28UhVJTsiklOu2i+lKa6X8elgxIqSBptkl3vgAt2JSNK70DD5ZlXl GBE/tjFsqLtd5P1NUTSAetgKi4nwAWxUbTKkf9X7WxOxMclDV9oJrz13o fqOXN9rwNsGcC4eugDx/IjWQh0TJK6eESbao7mmaDDeINXAYsk0id+hqS OjA7FZ1YiK6iyxNCP4YJF25HVUa/qOTQvBWC1942kgANqapc1RuD294XO g==; X-IronPort-AV: E=McAfee;i="6400,9594,10369"; a="362987087" X-IronPort-AV: E=Sophos;i="5.91,280,1647327600"; d="scan'208";a="362987087" 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:23 -0700 X-IronPort-AV: E=Sophos;i="5.91,280,1647327600"; d="scan'208";a="635523878" 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:20 -0700 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= To: linux-serial@vger.kernel.org, Greg KH , Jiri Slaby , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Subject: [PATCH 31/36] serial: imx: Remove serial_rs485 sanitization Date: Mon, 6 Jun 2022 13:04:28 +0300 Message-Id: <20220606100433.13793-32-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 The driver provides different rs485_supported for the case where RTS is not available making it unnecessary to handle it in imx_uart_rs485_config. Signed-off-by: Ilpo Järvinen --- drivers/tty/serial/imx.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index ba853bc9b4db..1e96ddd2e262 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c @@ -1913,10 +1913,6 @@ static int imx_uart_rs485_config(struct uart_port *port, struct imx_port *sport = (struct imx_port *)port; u32 ucr2; - /* RTS is required to control the transmitter */ - if (!sport->have_rtscts && !sport->have_rtsgpio) - rs485conf->flags &= ~SER_RS485_ENABLED; - if (rs485conf->flags & SER_RS485_ENABLED) { /* Enable receiver if low-active RTS signal is requested */ if (sport->have_rtscts && !sport->have_rtsgpio && -- 2.30.2