Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp284757iof; Mon, 6 Jun 2022 03:31:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzow5Kv9F4CLUkpxXctyEkly/oJUfFJAO9emsbP56KJMODMprmdVUXrTta/sN21cG8o5W9x X-Received: by 2002:a17:902:a502:b0:15e:c251:b769 with SMTP id s2-20020a170902a50200b0015ec251b769mr22698364plq.115.1654511501119; Mon, 06 Jun 2022 03:31:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654511501; cv=none; d=google.com; s=arc-20160816; b=E/fNqRir9/jtpeP6zC7Mv8I8GZ4ZVYslGjB7AEQa9MM2ysOvrlQibqeP0COJMSOYkx s+X1Fw3w2tFh82xkQ6leezwnnxPxJ/CqOfPjByIE5pizngmPsCL2vYcL445J0u5pHnr+ FEnqA4h4DIVWR+wtUJqy+/R4/FLZz2YK3XShH8BjHAnmMQzj7Y3HgKw+uGYPa3D8FyGR Ja8oQkfxGBED0Gt4M8h0l1mtgd+sXKUvHtMcORQoxGWtzMsUPtlfKi+XZMDCAm+WVqho THxDtzZfK3EBXtK8PNrEAK58rMrM7VOOjSCfR+U2seSM/QW3v316jAlAP7uz/Y68GWOp HW5g== 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=X8kd9TdklSOy+2IgYtNr1ruKzA4kl8XY4Mdle0XAa9w=; b=zDHXdWwP1h7WjSg+wI2FdqYb2cHZ4Yv/Frk/bJLjITeABRgqqZM3KA4VrhnoGvnr0y rE9Jtsbj1tJsh4bej4fbkSh1WEG55+gIm3Qk1DXXqAHRK/+31xwh4smBsCvPBEGurM/x Ln/C+KEIrNTDlkjeuP9weAwgo3Qely0Kl29ctLQo0touE9dgPSkfQNv7uzlu5BOJHH5I TNB1/0QqMFaW0gSAKC8V+74ECHMM52VbEfdlSHK2KqjCFWmF7LRD2KrraUT5BUVdqXNM 6Vc9/S5/sbimCLhlchXN2oI4JEhAeZn+ZrLqPfITzXse/T8eLbVd5FnbSTyatCXRXxeF mZ5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SI3yj8OS; 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 i10-20020a17090332ca00b001674c1a3475si14638393plr.126.2022.06.06.03.31.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 03:31:41 -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=SI3yj8OS; 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 951CE168373; Mon, 6 Jun 2022 03:09:09 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233677AbiFFKH5 (ORCPT + 99 others); Mon, 6 Jun 2022 06:07:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233445AbiFFKGC (ORCPT ); Mon, 6 Jun 2022 06:06:02 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AADCB1248D3; Mon, 6 Jun 2022 03:05:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654509946; x=1686045946; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=7XSfGDSnHBYzZ97A7lWYCvMsBnzI6IPieM3jLFqdRQY=; b=SI3yj8OSI8bltOiLecpIrnVZ+IRrTdrbD+XnJCJVPt7bKVwg679PI4oH SmqKTNqgyQD64mjjYRCIgkimRR6V/kpBib7APg6mrb+yfVVaeZH2xmETu 8tji6L1txBZbWMToglDQ1r/gAEGc5C1DI9rJWgz42lN9Ttas5B8WHCjc/ w1nCp8FY4gX9g99myVJBnHY0pRhi3uuTqDZ/PjzE8qFuT/vg9WvW0DVkw gEPVMUIk5xge76/np3CtE0SN5jQ+Np8FtY91/nqsUfypYFYlOXTXei//X JiGD7Q0+HROP8oYQ56ppsPxzu61ElGQdtFTPjlqkKckcFwuKDSzHHgu5D Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10369"; a="362987063" X-IronPort-AV: E=Sophos;i="5.91,280,1647327600"; d="scan'208";a="362987063" 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:46 -0700 X-IronPort-AV: E=Sophos;i="5.91,280,1647327600"; d="scan'208";a="635523762" 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:44 -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 18/36] serial: mcf: Fill in rs485_supported Date: Mon, 6 Jun 2022 13:04:15 +0300 Message-Id: <20220606100433.13793-19-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/mcf.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/tty/serial/mcf.c b/drivers/tty/serial/mcf.c index 2aec62b5d6c4..655255e0c76a 100644 --- a/drivers/tty/serial/mcf.c +++ b/drivers/tty/serial/mcf.c @@ -453,6 +453,10 @@ static int mcf_config_rs485(struct uart_port *port, struct serial_rs485 *rs485) return 0; } +static const struct serial_rs485 mcf_rs485_supported = { + .flags = SER_RS485_ENABLED | SER_RS485_RTS_AFTER_SEND, +}; + /****************************************************************************/ /* @@ -502,6 +506,7 @@ int __init early_mcf_setup(struct mcf_platform_uart *platp) port->uartclk = MCF_BUSCLK; port->flags = UPF_BOOT_AUTOCONF; port->rs485_config = mcf_config_rs485; + port->rs485_supported = &mcf_rs485_supported; port->ops = &mcf_uart_ops; } @@ -629,6 +634,7 @@ static int mcf_probe(struct platform_device *pdev) port->ops = &mcf_uart_ops; port->flags = UPF_BOOT_AUTOCONF; port->rs485_config = mcf_config_rs485; + port->rs485_supported = &mcf_rs485_supported; port->has_sysrq = IS_ENABLED(CONFIG_SERIAL_MCF_CONSOLE); uart_add_one_port(&mcf_driver, port); -- 2.30.2