Message ID | 20230529140711.896830-9-hugo@hugovil.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1546054vqr; Mon, 29 May 2023 07:13:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ71TT+QxjD2SHmEuAv9aJYPNWQUZwfrzW4JbyTEa1+iXH6P2EpMNutkJbdGyQccnjCnilne X-Received: by 2002:a17:90a:d783:b0:253:86ed:9b0e with SMTP id z3-20020a17090ad78300b0025386ed9b0emr9590933pju.42.1685369639585; Mon, 29 May 2023 07:13:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685369639; cv=none; d=google.com; s=arc-20160816; b=El6mIqpv4yN1uHRSrikSbwoDDNlcXQG9CzjCREWHgDxOSa4NPyNdoXIUALKib408Ua cw9CesAhiiSTGeYat5xkeymxEU8jzdApnLIUvgzu8nePBj+uE90QPj0hci8WS7upZ0pi n73UmkeNSLdveVrRV133WygvMe9Dbzkq5+0uZricWMEJQCA7fr3YIQPzz34rLAwO2HIL QW7q03BppfiSaxqqsY39p1g8laxz/g+wS/Jbxs3fHKRBfDQn568xsnSuqhS/IF+0sV8Q toaCWiJPD57IG4Q+neGBu8tkK8f7iGyOEWR7RMfNbQA5CYBfZ4eJE5CXfGNTWuUcSiTu WmUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:cc:to:from:dkim-signature; bh=fc4FhhujNpwaqbn8hNhuyb4eRPa/1T5Kc38omDT24E8=; b=iUj5OdrJPNFRuxizhmYLJp831lFP+0fchn8egrZPJisNMmkq7w+NYcohOfb/mvWwjj H81itAmkSEOh6LYGGPSkwgRIRAt3SajmdKWOQrUdyJiDScCGtK+TEWNBNWznawPO7yd2 97MXUOhw5Ns2AGs7fxBcFlLjAU92zeRRhyZLMOKXeHePAw4SjldtPY7xIVoNnVt8Jke4 hhOCU57gkDjgVbFAt2firM0FLGSjhtoE/p5CdN92YIscjoIWjL7mTBVY7javEvv6XVb/ 9+1Yrc08UvH1NoFEkfb5wU1tbs6rDNdi/1dcO6yX0a87rKxazZ4wmXJ45VsJSzbBmbfo wDuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@hugovil.com header.s=x header.b=CEdfqXUy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g6-20020a17090a714600b00250366a3a83si9392026pjs.188.2023.05.29.07.13.47; Mon, 29 May 2023 07:13:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@hugovil.com header.s=x header.b=CEdfqXUy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230345AbjE2OIS (ORCPT <rfc822;zhuangel570@gmail.com> + 99 others); Mon, 29 May 2023 10:08:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230341AbjE2OH7 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 29 May 2023 10:07:59 -0400 Received: from mail.hugovil.com (mail.hugovil.com [162.243.120.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E19E212A; Mon, 29 May 2023 07:07:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=hugovil.com ; s=x; h=Subject:Content-Transfer-Encoding:Content-Type:MIME-Version: References:In-Reply-To:Message-Id:Date:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=fc4FhhujNpwaqbn8hNhuyb4eRPa/1T5Kc38omDT24E8=; b=CEdfqXUyP58G/d5VWU4r+OLwDb HmIyUfNkMT81zJuJxXOQ1Q1fcwq4HwGUez9ovSOfMpuGp20WeK6jOYrY1hHVIuzjUZSDMlbDrTo7n dN/1nLOMLBMHb/tynStuFkZcbkTEF9AxwejIDooH64PSLKxIo0HYDIiIMBchJywN9tFc=; Received: from modemcable168.174-80-70.mc.videotron.ca ([70.80.174.168]:50024 helo=pettiford.lan) by mail.hugovil.com with esmtpa (Exim 4.92) (envelope-from <hugo@hugovil.com>) id 1q3dX4-0004Ht-UK; Mon, 29 May 2023 10:07:35 -0400 From: Hugo Villeneuve <hugo@hugovil.com> To: gregkh@linuxfoundation.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, jirislaby@kernel.org, jringle@gridpoint.com, l.perczak@camlintechnologies.com, tomasz.mon@camlingroup.com Cc: linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, hugo@hugovil.com, linux-gpio@vger.kernel.org, Hugo Villeneuve <hvilleneuve@dimonoff.com>, =?utf-8?q?Ilpo_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com> Date: Mon, 29 May 2023 10:07:10 -0400 Message-Id: <20230529140711.896830-9-hugo@hugovil.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230529140711.896830-1-hugo@hugovil.com> References: <20230529140711.896830-1-hugo@hugovil.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 70.80.174.168 X-SA-Exim-Mail-From: hugo@hugovil.com X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Subject: [PATCH v4 8/9] serial: sc16is7xx: add call to get rs485 DT flags and properties X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on mail.hugovil.com) Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767238155402176502?= X-GMAIL-MSGID: =?utf-8?q?1767238155402176502?= |
Series |
serial: sc16is7xx: fix GPIO regression and rs485 improvements
|
|
Commit Message
Hugo Villeneuve
May 29, 2023, 2:07 p.m. UTC
From: Hugo Villeneuve <hvilleneuve@dimonoff.com> Add call to uart_get_rs485_mode() to probe for RS485 flags and properties from device tree. Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com> --- drivers/tty/serial/sc16is7xx.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/drivers/tty/serial/sc16is7xx.c b/drivers/tty/serial/sc16is7xx.c index 34739b31b44b..b305142e9e9c 100644 --- a/drivers/tty/serial/sc16is7xx.c +++ b/drivers/tty/serial/sc16is7xx.c @@ -1513,6 +1513,10 @@ static int sc16is7xx_probe(struct device *dev, goto out_ports; } + ret = uart_get_rs485_mode(&s->p[i].port); + if (ret) + goto out_ports; + /* Disable all interrupts */ sc16is7xx_port_write(&s->p[i].port, SC16IS7XX_IER_REG, 0); /* Disable TX/RX */