Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp287651iof; Mon, 6 Jun 2022 03:34:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyU9Nkz3WEIbqg6rkleNqvqC2fLUMDIfsySiatuQAMOezta0dlPUSLngv+iHsigUei01Bm5 X-Received: by 2002:a17:90b:1c82:b0:1dd:1b46:5aa9 with SMTP id oo2-20020a17090b1c8200b001dd1b465aa9mr25975131pjb.158.1654511697993; Mon, 06 Jun 2022 03:34:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654511697; cv=none; d=google.com; s=arc-20160816; b=AaF942/BKEDMjjH/0odxieuNLHljnnbOZw6lNROn9oXkjolqvH+vCB4gmlpCy+EAbl wkR9iewejyjyp8dZmECqyg2n52DrRu+gmAO6Vzx0A14Z6ll2R3itX6jYERpTuW67hJkL MJ3ZUAZ+ws7AuQQgQCYRd3CQw4GeaQkYOXfbObsH3IzrnqApZr2o1rbQ9XsfxVD95H6F G6MZCzmZmSspKMu09TM/X+8JedceAyy0xfdoIE1vD96EPH8DWbOXBSNVEepiYMU4HKtK fdxQwYo8IUUFFNMrojp9yhWTV6nL9j7dcRAf2cmvM16ESnw8GFEP5A4DCU0e9MBHuXwj yFnQ== 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=biwXjrbY7E4gPNwNd5YfrVWJHwFHuESB5zrxE/YbxWE=; b=CnaZWTARM/sWGipI6s6HWE0lVHz2XBgDeZ+4zoo/kpVtH1Von+NXlNtSQryu0kTDGg MBjyhRJ/uT0/Tf+V7qzfFBeec6wnUVIeuu6AtAAuvl1bRqpYUOajkW4xIRKiPVaKqixv MN2C5FLw8ODMdiEfDwAVLm9//wtnCNR1871Fc5csT8DbEWe9d8aYX5ZHmlqD0aCZWaXT eqb4sP+UWBA7DdAMGeKQyWw1Ssh/mBGPZCzCNgV852KDg5UkENoA3Je4DsxKjr6YZAYp XDRs+5xXTA7W1+CoQhZrCu5A6cwP9nb7xsxF9pUqNMxl2r6BOtKTlqJmiRw9AehndTP7 8Udg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=aOvs0MvO; 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 g191-20020a636bc8000000b003c233469c0asi20080441pgc.745.2022.06.06.03.34.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 03:34:57 -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=aOvs0MvO; 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 B2C4BFC4FA; Mon, 6 Jun 2022 03:13:53 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233657AbiFFKHK (ORCPT + 99 others); Mon, 6 Jun 2022 06:07:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233330AbiFFKFl (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 C3DBC8FD51; 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=1654509934; x=1686045934; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=gopuiUjawsIQJXpUDy/dJyIooGKGJ4go2NXCzVHTfHA=; b=aOvs0MvObGjSQ4I9794yc+RpmQl4yl5Do4BcR0YGmmqcMI9y1wifOiUd GURijDOcR2+zUu0IPCCwt0B/5788zoE3gksNc5eNtL/qAhe5YxaTNFr53 sK97PSNzCBj5Rl+8mjaCDY6y5wyxK/+5vb3uVMjOjk6dmiVOpdW/RD76T vLzN6EWzMuEucI1ep8QGPun1ppzhA39/fKooVr+hEutPhFb5Ti2CDCsX9 Xb/xH93veY65xPOuLPibzcEJc1iqx00lMpRJbvmHQvubpvF+XYrDXKbaA xlWNsJDnqaF/ws05eG7zox9N8Hefw6vdgJz0tBE4mPpFZmuDVWE6zWncP g==; X-IronPort-AV: E=McAfee;i="6400,9594,10369"; a="362987050" X-IronPort-AV: E=Sophos;i="5.91,280,1647327600"; d="scan'208";a="362987050" 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:24 -0700 X-IronPort-AV: E=Sophos;i="5.91,280,1647327600"; d="scan'208";a="635523653" 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:22 -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 11/36] serial: 8250_pci: Fill in rs485_supported for pci_fintek Date: Mon, 6 Jun 2022 13:04:08 +0300 Message-Id: <20220606100433.13793-12-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/8250/8250_pci.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/tty/serial/8250/8250_pci.c b/drivers/tty/serial/8250/8250_pci.c index fb0a49e39072..a76254031bc2 100644 --- a/drivers/tty/serial/8250/8250_pci.c +++ b/drivers/tty/serial/8250/8250_pci.c @@ -1597,6 +1597,11 @@ static int pci_fintek_rs485_config(struct uart_port *port, return 0; } +static const struct serial_rs485 pci_fintek_rs485_supported = { + .flags = SER_RS485_ENABLED | SER_RS485_RTS_ON_SEND, + /* F81504/508/512 does not support RTS delay before or after send */ +}; + static int pci_fintek_setup(struct serial_private *priv, const struct pciserial_board *board, struct uart_8250_port *port, int idx) @@ -1616,6 +1621,7 @@ static int pci_fintek_setup(struct serial_private *priv, port->port.iotype = UPIO_PORT; port->port.iobase = iobase; port->port.rs485_config = pci_fintek_rs485_config; + port->port.rs485_supported = &pci_fintek_rs485_supported; data = devm_kzalloc(&pdev->dev, sizeof(u8), GFP_KERNEL); if (!data) -- 2.30.2