Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp874973rwd; Thu, 25 May 2023 05:21:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ53DoUbWzw6VqZcn7/hj8xtAHCt9hYYW0Wttbk2PzPdAL3ZiLLBV+RuZC+lGZlefJjxzte7 X-Received: by 2002:a05:6a20:9f4a:b0:100:6f8f:7793 with SMTP id ml10-20020a056a209f4a00b001006f8f7793mr18606333pzb.3.1685017289171; Thu, 25 May 2023 05:21:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685017289; cv=none; d=google.com; s=arc-20160816; b=mkmpx8dsoC53FIfQNcKP/Ceym9YcLvcvPjXK78opw19KqG/D/bXtr2vvgCbineWksr 0TdgKrI43orarOkWqMdwaOfLOs1Okh+sAErMgNG+TuOapzifP/rzWGupgDXy+iq0ECw9 C932LhosId2/aED4tbFnBMutqIvOfowCp4Kys6npzB55dUXIpZJ1y8eF0EJOvyLPBqko ty7/UYa95zk9PFqVMAFDA9/XZgQ/+p/phELqhvecHt3hKT87QWuK+b548OcOpfD8PNOS PQGS5WJDxlDeta0SdLSll1eyaJ4Ecvn7QqfkFcSngEckiNaoNnRhUtiJiY5dQzaRa4cE u0ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=n1tFL+5FHjAj1YFxC55JuwiLnDukYjUQTEDbXDzlvTM=; b=gwZZGyzGIsCnWGnMeOa0HgJRA2Dga12a1red+t/H15i/oHYX5Imrws9YsweM3UylZs iLMQx41Awessg2oWMXMRZD68AJCOcMoPCvxexkahNorheA2tKoCJSGK9S3aYCbqLAcoU GX+o9vV4uKdAzzOkdU5JCk5tHCN+F/+e0zAJHMFFytz0UPmX8jJg7zrMPO6Pa4bskHR+ XlXles3EfTNzYoAowKkrtUba1U/+SOjp4SMs2ZeAqzGTCtw/P3+I7yyTQlLLZR3v/KeL ZMkgZ8o6lasfFXRDtOIxyfH7/cuCAiKoFP33F0zWimRQXO4qlQ5Sdg7KBkam2cxd/phE Bnew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dgFfOhPQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 20-20020a631854000000b0050b8a7635dfsi146180pgy.295.2023.05.25.05.21.16; Thu, 25 May 2023 05:21:29 -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=pass header.i=@intel.com header.s=Intel header.b=dgFfOhPQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240960AbjEYMRL (ORCPT + 99 others); Thu, 25 May 2023 08:17:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229603AbjEYMRK (ORCPT ); Thu, 25 May 2023 08:17:10 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B5B1A9; Thu, 25 May 2023 05:17:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685017029; x=1716553029; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=bQ1iL6BsiW9BxzNcM756bUoMHD0bKrBZjPW4yVwoXCU=; b=dgFfOhPQlNaO5yv7W8H9G0lYcOqEgFOV8SIrUHAWz+dqGQtX+WKYGzsf 4dydSYz+lEVipxpesrTk43+OLNZPTnYl76sqLSyV8Vjev/I4kRTor0prq Wc2ZSYtN/4lXZBVEWFeKui0RdPaOXYVIBexpK3WuO7kPI6dY+ZEO9Q21Y CEX+Ailz1yv2zjS6+wNIfYU819vGHqc+zjI5NIAQr7YKoHSasO5coonVS c7Y2uEUkmVEuAhjOUkK82OfH6WIvE9UaNpJ5RDfJ45A+YDwp8jAB9ymFe MIL6oBQB7l0X4vIjDkHxivjf9ZCWc01E5bM4jy9mV8I3uUTLoTD6MYXp0 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10720"; a="357096183" X-IronPort-AV: E=Sophos;i="6.00,191,1681196400"; d="scan'208";a="357096183" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 May 2023 05:17:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10720"; a="1034963147" X-IronPort-AV: E=Sophos;i="6.00,191,1681196400"; d="scan'208";a="1034963147" Received: from aghiriba-mobl.ger.corp.intel.com ([10.249.40.17]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 May 2023 05:17:04 -0700 Date: Thu, 25 May 2023 15:17:02 +0300 (EEST) From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= To: Hugo Villeneuve cc: Greg Kroah-Hartman , robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, Jiri Slaby , jringle@gridpoint.com, tomasz.mon@camlingroup.com, l.perczak@camlintechnologies.com, linux-serial , devicetree@vger.kernel.org, LKML , linux-gpio@vger.kernel.org, Hugo Villeneuve Subject: Re: [PATCH v3 10/11] serial: sc16is7xx: add call to get rs485 DT flags and properties In-Reply-To: <20230525040324.3773741-11-hugo@hugovil.com> Message-ID: <986e2042-6c1d-b87a-ef9-d89a61bc8c@linux.intel.com> References: <20230525040324.3773741-1-hugo@hugovil.com> <20230525040324.3773741-11-hugo@hugovil.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-2137940837-1685017028=:1738" X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-2137940837-1685017028=:1738 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8BIT On Thu, 25 May 2023, Hugo Villeneuve wrote: > From: Hugo Villeneuve > > Add call to uart_get_rs485_mode() to probe for RS485 flags and > properties from device tree. > > Signed-off-by: Hugo Villeneuve > --- > 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 c2cfd057ed9a..03d00b144304 100644 > --- a/drivers/tty/serial/sc16is7xx.c > +++ b/drivers/tty/serial/sc16is7xx.c > @@ -1511,6 +1511,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 */ > Reviewed-by: Ilpo J?rvinen -- i. --8323329-2137940837-1685017028=:1738--