Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3503220imm; Mon, 4 Jun 2018 04:50:13 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL8jb+MXrUbYrqz56dzGvK93e9WbCLNcsOYmqQAsZRvKtt0ukW5FTeWhbYvPrz5j3CBo0bn X-Received: by 2002:a17:902:9349:: with SMTP id g9-v6mr20912537plp.375.1528113013372; Mon, 04 Jun 2018 04:50:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528113013; cv=none; d=google.com; s=arc-20160816; b=UiE9itiv/WnccLXKXa+rq0EeiiQ86yp2tiiNQS2Vp2v5ORTg5WdSc+NOJyCj8L7WXl fE/0g6laKkIA/BLHwczQLECNMrXkEg+VpL+KjNGx2AKBdojNU0lpEkY7xZ7ltbUJLolt FC4iMe9jazoMhN9xo4yJSBEoACYTM2t2R196AhzfWA+PrF/tjnT7xeuj06LMy1L1AbE3 WPqUy3dG49/avncydxbP8XD5eaOn1SbHwdQ/sOQpI9IJJNpe/NdNQizvUrMqFxkbmFWU 4+G2p5DZYjg67OtWK9J1LnSRG3HLKAZ4OYGdoWxnA+5U5oVIm5tAKfGjFPhRdlEuVcAm L4ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:date:cc:to:from:subject :message-id:arc-authentication-results; bh=b52felOzcC4kv5THbMvNnIH4H+fUR+4iGBleaeTeatc=; b=OKHxVE9o8eOxLIgNFtwx/h6n6IkCQLI/KxSkXuvCf8t8a/CwSerh9EmDFjHW/lf6Hl +IUcTL5Nsq4MV4WtZetiRrU3udcv5mar+xg6q2hKruRjmCZ/Vha87V677rQj0okAupTK mq/u+tyawLbm82rqx7HYMBzegpn3Ea1uCbNt98CNcUrLFBgtUQUfJBlDDgx/AsLGE4xP +A7syCUHqv+UFKCCW1Xdw4XZE+ZhXLZg3WpZF5bv6YqMVPPlhUqEQVm3VnjXm3rlhPRS roPB3BNAnbqP/OOcO9/2tycDm2s11aAtRmx+aSo0Pbm9ss3q+Hs/ho2o+XrvFCFy154R +gbg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w23-v6si5705102pfl.8.2018.06.04.04.49.58; Mon, 04 Jun 2018 04:50:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753085AbeFDLtf (ORCPT + 99 others); Mon, 4 Jun 2018 07:49:35 -0400 Received: from mga04.intel.com ([192.55.52.120]:3400 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753062AbeFDLtd (ORCPT ); Mon, 4 Jun 2018 07:49:33 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Jun 2018 04:49:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,476,1520924400"; d="scan'208";a="229742264" Received: from smile.fi.intel.com (HELO smile) ([10.237.72.86]) by orsmga005.jf.intel.com with ESMTP; 04 Jun 2018 04:49:28 -0700 Message-ID: Subject: Re: [PATCH 1/2] serial: 8250: enable SERIAL_MCTRL_GPIO by default. From: Andy Shevchenko To: Giulio Benetti , Greg Kroah-Hartman Cc: Jiri Slaby , Kees Cook , Matthias Brugger , Allen Pais , Sean Young , Ed Blake , Stefan Potyra , Philipp Zabel , Joshua Scott , Vignesh R , Rolf Evers-Fischer , Aaron Sierra , Rafael Gago , Joel Stanley , Sean Wang , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 04 Jun 2018 14:49:27 +0300 In-Reply-To: <20180601141158.93817-1-giulio.benetti@micronovasrl.com> References: <20180601141158.93817-1-giulio.benetti@micronovasrl.com> Organization: Intel Finland Oy Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2018-06-01 at 16:11 +0200, Giulio Benetti wrote: > It can be useful to override 8250 mctrl lines with gpios, for rts on > rs485 for example, when rts is not mapped correctly to HW RTS pin. > > Enable SERIAL_MCTRL_GPIO by default. > Unfortunately NAK, see commit 5db4f7f80d165fc9725f356e99feec409e446baa Author: Andy Shevchenko Date: Tue Aug 16 15:06:54 2016 +0300 Revert "tty/serial/8250: use mctrl_gpio helpers" for the details. I would love to see a solution that will satisfy everyone, though I have only means to test proposals for now. > Signed-off-by: Giulio Benetti > --- > drivers/tty/serial/8250/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/tty/serial/8250/Kconfig > b/drivers/tty/serial/8250/Kconfig > index f005eaf8bc57..c7992b94fece 100644 > --- a/drivers/tty/serial/8250/Kconfig > +++ b/drivers/tty/serial/8250/Kconfig > @@ -7,6 +7,7 @@ config SERIAL_8250 > tristate "8250/16550 and compatible serial support" > depends on !S390 > select SERIAL_CORE > + select SERIAL_MCTRL_GPIO if GPIOLIB > ---help--- > This selects whether you want to include the driver for the > standard > serial ports. The standard answer is Y. People who might > say N -- Andy Shevchenko Intel Finland Oy