Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp285093iof; Mon, 6 Jun 2022 03:32:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLmn+UH4eQOVig0IqRaOhi6t0oyzULBd1IocsHjsiq6rdu+yMkoacTN9ZSb/qTnTytL+mf X-Received: by 2002:a17:90a:17c9:b0:1e8:5e58:f658 with SMTP id q67-20020a17090a17c900b001e85e58f658mr11472238pja.239.1654511525653; Mon, 06 Jun 2022 03:32:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654511525; cv=none; d=google.com; s=arc-20160816; b=HsYyBVrslfHPwNeDeFbjmVdTE9fXnhc/TRHkBSAZ2splwKTlYnIA9wFERK2Zo8KosG xWUoB/jUsu5+iAmL2McdD3JGbQ7PHHyYx9q/WJSn56UNeANX2HFLA/aVHMGaQP+lrpjJ lJKAZIbqsHSmvCaUJ1AXICKvXx6utYHRCw7yjB/n17KOg8EH+Dti+OQGcH/oMDaw5+kD 7A7WNy49297PHO5eptAOFfD51j/LCZNVSwPkaypx3cdxQcKuxKfiN6y8nuEl7FMvRK3Z BD84bC7DrgTuIk4s3EI+yqC+tY21aNCpBaj0sujd8vOmW1SMy7zatQweVaEoWeE4laeG hnKg== 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=jEequMPM+yZAA7WCS7uwavDtiKOGyfvo2/JEr6d705s=; b=SqzVQnYoZPIBwV9AaTru5FwAQkBknbkFENPfHEtZIFRtfB1nktGhLB6A43vXB+ZcI/ kU3F6oRmOwzjz7CodxVFE5PNKabHQmX2N6vkfgP3FCgJNZ1akB5Rld6sCmZpwFyPhYg/ JId2wQVD+y6fsBmma6v7ZsAf557O7ddecBrAYi7ZuEGh/Q0MG/TeGUZdtyhgnUEMHOIH kvt+CORwITcpGKWVkACo5R945Dq9gUgKDJC4ME6BIa80rg2Q1vmfXNPfGxMsFwgtD/CP xJwxS1+k/Wc/bJoBBhhR6VgKCWsBfS+G+OpYYMwc70BvOlwtj3RXania/wuGAxjDuGo6 73HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=C2FS1WzF; 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 t18-20020a170902e85200b00163a83d160asi21620029plg.168.2022.06.06.03.32.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 03:32:05 -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=C2FS1WzF; 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 C51FBADBF6; Mon, 6 Jun 2022 03:10:53 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233728AbiFFKHh (ORCPT + 99 others); Mon, 6 Jun 2022 06:07:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233322AbiFFKFl (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 F0890939D3; Mon, 6 Jun 2022 03:05:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654509935; x=1686045935; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=X41obtw/Rrfpr4lluXXoiB8WmKq7kV84aelg5fksidU=; b=C2FS1WzF/0mmKoMa71TL62yEgonVQGQN69DZD0T5KqFmKHoThCOE0sTs 23efTcNNvmEkYrG+u4nkDNHxWcNJ9HnDmQf47qtmJL5Gdthlf8WG8e8Cv Nt2yqjPU4HxE6YVqbyNhuMVIranvoxiCG4hV36aqnKS6z2IJnDAHJkOZ9 TtX5SPcUulaQX4tneoFpbOUQPTQWkUhjOjDCnlqAA1m0K++CGf+oOKhd9 dRQ0BccSV1OsH8b7roXYNWbdrqfyBXcQIn6wafE7Bt1zpQH33iezQMqtC N0ulrX+/3nNWq4dZmvMrMBe9/FIQjj++5uFzSziNU0wzXJ+zMRfCSJGvr g==; X-IronPort-AV: E=McAfee;i="6400,9594,10369"; a="362987052" X-IronPort-AV: E=Sophos;i="5.91,280,1647327600"; d="scan'208";a="362987052" 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:27 -0700 X-IronPort-AV: E=Sophos;i="5.91,280,1647327600"; d="scan'208";a="635523671" 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:25 -0700 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= To: linux-serial@vger.kernel.org, Greg KH , Jiri Slaby , Russell King , linux-kernel@vger.kernel.org Cc: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Subject: [PATCH 12/36] serial: pl011: Fill in rs485_supported Date: Mon, 6 Jun 2022 13:04:09 +0300 Message-Id: <20220606100433.13793-13-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/amba-pl011.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c index 97ef41cb2721..cdc466e89aa8 100644 --- a/drivers/tty/serial/amba-pl011.c +++ b/drivers/tty/serial/amba-pl011.c @@ -2751,6 +2751,13 @@ static int pl011_register_port(struct uart_amba_port *uap) return ret; } +static const struct serial_rs485 pl011_rs485_supported = { + .flags = SER_RS485_ENABLED | SER_RS485_RTS_ON_SEND | SER_RS485_RTS_AFTER_SEND | + SER_RS485_RX_DURING_TX, + .delay_rts_before_send = 1, + .delay_rts_after_send = 1, +}; + static int pl011_probe(struct amba_device *dev, const struct amba_id *id) { struct uart_amba_port *uap; @@ -2777,6 +2784,7 @@ static int pl011_probe(struct amba_device *dev, const struct amba_id *id) uap->port.irq = dev->irq[0]; uap->port.ops = &amba_pl011_pops; uap->port.rs485_config = pl011_rs485_config; + uap->port.rs485_supported = &pl011_rs485_supported; snprintf(uap->type, sizeof(uap->type), "PL011 rev%u", amba_rev(dev)); ret = pl011_setup_port(&dev->dev, uap, &dev->res, portnr); -- 2.30.2