Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp285179iof; Mon, 6 Jun 2022 03:32:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxA4+biDw72RB7BbOUx8UQr6WaRlR+V8Rj+OYcJwVwa/uUpoyw/y0SnO/bwGN/pBVa/h/Pu X-Received: by 2002:a17:902:ce0b:b0:163:ead5:8321 with SMTP id k11-20020a170902ce0b00b00163ead58321mr23821503plg.99.1654511531102; Mon, 06 Jun 2022 03:32:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654511531; cv=none; d=google.com; s=arc-20160816; b=wQkwjY/Sitb48ueadaVJwx9YvdguJbs4i6BAt7M3UzSOYXqmnk/+v0cGQaxtG61pss j9g1dWMmKUK6To1LC6+TSwlUrWG8OVq69ffC992efFsYgsT5D6k2TF0dqZ6SJQZzLjFn 0hBm4DAigiC0+Eb3mwEyNVzpPjym7RMjr5ShDTBjR49pfQiaThJLROGOg3VRljfJIEYh ky/1p2oytrZ6fir0SCOH7fVB1MWNuH6X/hvwoiQYb3M4p9jLYPusfLy6kXRXQIEKKTey C1nm3m9H12KKh/lWkEuoEiEEuA6O9Y4B/mcK8iFnDLbuD9lV3/gO8HEfjawNswcYmmZL Hexw== 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=PuZYW++1XweHapM1OYLzs28mAGJ8lNsinxH+mab2L04=; b=PXZTxTnzUgbxkWSBz3Jm+Clfur1qWXqoqjvsINs1Eu/W//vKT5jZPI9wrjuIol4AX4 KrjKfwCNWUX02coo2Q64gRrNdiqhY0sowbiLKYlksG9jowC6WD9O2HvCAMPSwA432lGF QpPSHEEZncLxyZ1ODadBZV/7sr9pY+JfbuvFXi/fdO00+yy1CDPOwBwfvXXTQ2zSbc+M MOfmO9iaxa+ezmbzSIjlQ71X8rKLDd8nVbftYvVI+FpS7o82Knnu1rxUR0Ia8Jmx9FjB IrxDdpwpDIX4DPDQZB9mIGescLrOZhtjYd4F/WYg9iwFsuakzJTnJd+3H0yZfnT4w6i5 E29Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Dtd4fF2X; 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 ng17-20020a17090b1a9100b001debd181bb9si12579943pjb.138.2022.06.06.03.32.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 03:32:11 -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=Dtd4fF2X; 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 1DF5017D3A5; Mon, 6 Jun 2022 03:11:11 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233747AbiFFKHo (ORCPT + 99 others); Mon, 6 Jun 2022 06:07:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233349AbiFFKFl (ORCPT ); Mon, 6 Jun 2022 06:05:41 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D144F10A62B; Mon, 6 Jun 2022 03:05:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654509937; x=1686045937; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=wwmLHiqZboEiZnfiV6e1hu8KZfAipQe3aQ1BtK145s8=; b=Dtd4fF2XKtLCivDKQAnG7tfL1+a+pRMAlyjmq21sLcRPF6Ew8a4TdQUx ZMM5Du9uqnWovlrfnQICXE/o5JT4an8xaPBoe2c2+Yfup9/911Dy7TO54 Tqrs7EStMJFHPpFS0qZAFlIP8e9BTzWBx3WojfvtKliTJV44M6QUFsNra qW+yZbdgGMlVi68YM1jDJ9pHq4Ee/S2wKDNPfTqxELlGWGKHcWPyin48M qNODD4wvyFF7lcWwERGbHhKJkcQ++1qHY1hhQM48BYsZhfPbjQpvs3AJr KuGio716yOljfHoHwFpVcwC1tOOJJkA7bejkI6Ct/w/FnN+Wq6+FTlMcj A==; X-IronPort-AV: E=McAfee;i="6400,9594,10369"; a="362987057" X-IronPort-AV: E=Sophos;i="5.91,280,1647327600"; d="scan'208";a="362987057" 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:05:37 -0700 X-IronPort-AV: E=Sophos;i="5.91,280,1647327600"; d="scan'208";a="635523724" 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:05:35 -0700 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= To: linux-serial@vger.kernel.org, Greg KH , Jiri Slaby , linux-kernel@vger.kernel.org Cc: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Subject: [PATCH 15/36] serial: fsl_lpuart: Fill in rs485_supported Date: Mon, 6 Jun 2022 13:04:12 +0300 Message-Id: <20220606100433.13793-16-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 Add information on supported serial_rs485 features. Signed-off-by: Ilpo Järvinen --- drivers/tty/serial/fsl_lpuart.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/tty/serial/fsl_lpuart.c b/drivers/tty/serial/fsl_lpuart.c index 509a7912fa9d..88692dc9eefa 100644 --- a/drivers/tty/serial/fsl_lpuart.c +++ b/drivers/tty/serial/fsl_lpuart.c @@ -2621,6 +2621,11 @@ static struct uart_driver lpuart_reg = { .cons = LPUART_CONSOLE, }; +static const struct serial_rs485 lpuart_rs485_supported = { + .flags = SER_RS485_ENABLED | SER_RS485_RTS_ON_SEND | SER_RS485_RTS_AFTER_SEND, + /* delay_rts_* and RX_DURING_TX are not supported */ +}; + static int lpuart_probe(struct platform_device *pdev) { const struct lpuart_soc_data *sdata = of_device_get_match_data(&pdev->dev); @@ -2660,6 +2665,7 @@ static int lpuart_probe(struct platform_device *pdev) sport->port.rs485_config = lpuart32_config_rs485; else sport->port.rs485_config = lpuart_config_rs485; + sport->port.rs485_supported = &lpuart_rs485_supported; sport->ipg_clk = devm_clk_get(&pdev->dev, "ipg"); if (IS_ERR(sport->ipg_clk)) { -- 2.30.2