Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp284586iof; Mon, 6 Jun 2022 03:31:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkAKQi4y77WBZi5Kaa/omMRj8Bvd9VU+ALwlroSCsNXbgDvRlC+LbE7DX8efFtqfDV7S6g X-Received: by 2002:a17:90b:38c4:b0:1e6:89f9:73da with SMTP id nn4-20020a17090b38c400b001e689f973damr23336186pjb.220.1654511491015; Mon, 06 Jun 2022 03:31:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654511491; cv=none; d=google.com; s=arc-20160816; b=Zu9aZsTsj1ga4dVQygjwwWdCLa6e9TZGZYylUXjcuxtbyFAAf9k6tKasSDXx8FA+mm i+Fycfze/dJZJ+DpCgH6JI4ilEKrezsIVLOrtYCdFDhxu/GY0kBy6ld7WwmkbLYUCcOg Y8i+O13AOSOaDibwb3R3PX9ofIbCEjabkWzVF9212kDdrZFQ9PGszVcz49adB7wOHLUt 9uY8A5SWZXeINaBjWCNJexC0MPnFejvAvIo7LqIKtz6xQgke9xKO9AIPwYt39woHIhH/ vgZcZ0dqJdij/NZlT4CWOkfwTBpJ8q+19lTXQlUqXBgYoS+6Q6CV674oFNbJ0L4wXOY+ gCMA== 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=YlpUCJyDVX8OFLKel5uiaDujXTw9fZjihR58Do90fIs=; b=pSmXlKWgVbo1ZaE8ZKAVPj/Kml492JI4GsfzFEl+tfTcwksmsmNS3jomzZZ4BYFOPy x3AZXd19TKoUsChMMOsKju3z6+QG0YUQXci045DKQucSdJtxFh5ExRn2rj4AR8Z9J6Ma gECLLVYgfy+icvFvgXlc/SdfPXgIQy6R3q6thbwf7ifqVypsr9pbS1yOeARJmxS7p7oA KyUj1ah2df1lkqT3gwtI03bzQGQ0U1dPyp+5iHZigOh4s8z15fkFNB4ZSbWSEZl2+RTM /QUdKW8jcK+wFl1PrsawKXpsXCqZhQKBNKqbeEk7CSn7Mobq9f/xojqqgtI3EFSGxX2P 0q0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hHE2W06Y; 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 c11-20020a170903234b00b00164420193a0si22111195plh.404.2022.06.06.03.31.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 03:31:31 -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=hHE2W06Y; 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 52D369B18A; Mon, 6 Jun 2022 03:07:48 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233524AbiFFKGu (ORCPT + 99 others); Mon, 6 Jun 2022 06:06:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233339AbiFFKFl (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 A5D4DE15F0; Mon, 6 Jun 2022 03:05:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654509936; x=1686045936; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=WndMwTVfuW00rnE/S6LgTXND/zSnSa30GDTQqWRCwI8=; b=hHE2W06YlK+ItNQYMWYHY0U+xNz3LDnMX5WbYI8mjpL6eIhrjOEFyE7u 2l/m4ACY9Adl9GoUgt2qspaxuQuvYYBvFtl4OpsfvDmqiksEnNjUKKTCf CxcAgiKJPpw2+gsA3NWqzIeIrgo4vNeSAhu8iS6nDaTGJNaLgkNqi1sSS hbKGm/ZhN+Ic6u0WbsS1mBkMMvw3I94AFzjmzFEfm4jg1k8C1TDxR8D/4 TEEkoq+bOajzQ75hWF+ljINpwTrlbfgq8e/ukFIX7wDPBWZ4qePkDystN D6F9WyJDbwJCZqL8vAh3zY0SGMYaqLhu2uuB3CmG91V7rmFy+uHU2mG3e g==; X-IronPort-AV: E=McAfee;i="6400,9594,10369"; a="362987054" X-IronPort-AV: E=Sophos;i="5.91,280,1647327600"; d="scan'208";a="362987054" 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:34 -0700 X-IronPort-AV: E=Sophos;i="5.91,280,1647327600"; d="scan'208";a="635523712" 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:31 -0700 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= To: linux-serial@vger.kernel.org, Greg KH , Jiri Slaby , Richard Genoud , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Subject: [PATCH 14/36] serial: atmel: Fill in rs485_supported Date: Mon, 6 Jun 2022 13:04:11 +0300 Message-Id: <20220606100433.13793-15-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/atmel_serial.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c index dd1c7e4bd1c9..74dd1d3ac46f 100644 --- a/drivers/tty/serial/atmel_serial.c +++ b/drivers/tty/serial/atmel_serial.c @@ -2473,6 +2473,12 @@ static const struct uart_ops atmel_pops = { #endif }; +static const struct serial_rs485 atmel_rs485_supported = { + .flags = SER_RS485_ENABLED | SER_RS485_RTS_AFTER_SEND | SER_RS485_RX_DURING_TX, + .delay_rts_before_send = 1, + .delay_rts_after_send = 1, +}; + /* * Configure the port from the platform device resource info. */ @@ -2494,6 +2500,7 @@ static int atmel_init_port(struct atmel_uart_port *atmel_port, port->mapbase = mpdev->resource[0].start; port->irq = platform_get_irq(mpdev, 0); port->rs485_config = atmel_config_rs485; + port->rs485_supported = &atmel_rs485_supported; port->iso7816_config = atmel_config_iso7816; port->membase = NULL; -- 2.30.2