Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3185imm; Mon, 4 Jun 2018 11:59:32 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK+oQa14DZqr+LBhV1k+MCUyK7eeZVf41RqdtPBLgaqFo01wH8ViZePYGze4yl1y/mwVe4E X-Received: by 2002:a63:ab05:: with SMTP id p5-v6mr18110709pgf.280.1528138772668; Mon, 04 Jun 2018 11:59:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528138772; cv=none; d=google.com; s=arc-20160816; b=fdQgXiaNhf6Ul6z6Du9Iq96inz9fe/3MVCRAU400QujDtMvqFqkLpw1IDepzLwr25F L6pp43YymRt8qYE9X+kMSEf2mTSKB9qRJuIvrXy/TVtl9UcFMDTAoxUVzCDqbfo2yLs5 627BRXeTvYjA1KiFLPlWslMqTiU3XXR6A+EdsQWQjdQo2K3jSLk4LUQcgUmTijrZmAZr MWmhQdJjrA05mAcKQaAl9nmTnLlcP2vm28KQsx/XmKrISmEd/KEIviLbz2K0iBo6l1QT ATSsCDOKKgxIxVNAi/e5VUG9/mujio0PnGis6WeQT2O2gmw3RidUoL8137IL4aQpk1Cn oHHg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=LgZmGxgxYP3sldfohlW1GgwxAQ49G7tO4V6axPCoe54=; b=p7Ik4nfyWZrRsgXrJ4ZPytWYDS9B+wdWyEDK1R+OkyI/RwPeDcAuD64XRr8Gd1E0pY b3LzG9DKoh54XjzvrIoxCG9Dy+suWVwgHS3YOjcZaCj9iVMv8eT0DwgrZ00NTY+VVtd/ A09fwuMzBIOC0PIew2W62PyKyiWXpSnoYfMiQwsAjATDTPIiL44lRhE1vPW9eE66BcWP 75uhmTt5nLtB0BaHpTLz0kZTp9xJQVjbwAk5AlkFGvCzcWdkkU/Zt13UcJBt4EV6TY7V wk8A4YKsLIErpb9bdajyMKOj+eh2X9INyNch7GUOqeFZx+wuQ+0lK/QA2ONhqbZqYprv mloA== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@micronovasrl.com header.s=dkim header.b=BSZnzkqF; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k11-v6si2555223pgo.43.2018.06.04.11.59.10; Mon, 04 Jun 2018 11:59:32 -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; dkim=temperror (no key for signature) header.i=@micronovasrl.com header.s=dkim header.b=BSZnzkqF; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751307AbeFDS5U (ORCPT + 99 others); Mon, 4 Jun 2018 14:57:20 -0400 Received: from mail.micronovasrl.com ([212.103.203.10]:60716 "EHLO mail.micronovasrl.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751151AbeFDS5S (ORCPT ); Mon, 4 Jun 2018 14:57:18 -0400 Received: from mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) by mail.micronovasrl.com (Postfix) with ESMTP id 5E98CB00769 for ; Mon, 4 Jun 2018 20:57:17 +0200 (CEST) Authentication-Results: mail.micronovasrl.com (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=micronovasrl.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=micronovasrl.com; h=content-transfer-encoding:content-language:content-type :content-type:in-reply-to:mime-version:user-agent:date:date :message-id:from:from:references:to:subject:subject; s=dkim; t= 1528138636; x=1529002637; bh=Aj5HQy3/yctbZy7zrcqxdbq3QSNaAk1E5KV EgiGw3qs=; b=BSZnzkqFd1OtkUay3+uU7KKcW/IARVLeXGn3oApGbVB5TuYRoNW DeM9IonKYoGPew4NhRu/yfZBV0Pu0YQBWAh5OYsE8IbFkF9gNTKlXMy9qyh0vEMZ EcMARelmg8VIJqPAmtxVckJr3OXwoAcWVRbAZH4sDB2ooU1/JH1D0xu4= X-Virus-Scanned: Debian amavisd-new at mail.micronovasrl.com X-Spam-Flag: NO X-Spam-Score: -2.9 X-Spam-Level: X-Spam-Status: No, score=-2.9 tagged_above=-10 required=4.5 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9] autolearn=unavailable autolearn_force=no Received: from mail.micronovasrl.com ([127.0.0.1]) by mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id xFALHZhMRgdz for ; Mon, 4 Jun 2018 20:57:16 +0200 (CEST) Received: from [192.168.2.109] (62-11-51-166.dialup.tiscali.it [62.11.51.166]) by mail.micronovasrl.com (Postfix) with ESMTPSA id EABACB001AB; Mon, 4 Jun 2018 20:57:13 +0200 (CEST) Subject: Re: [PATCH 1/2] serial: 8250: enable SERIAL_MCTRL_GPIO by default. To: Andy Shevchenko , 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, Yegor Yefremov References: <20180601141158.93817-1-giulio.benetti@micronovasrl.com> From: Giulio Benetti Message-ID: <7f4d688c-095a-d056-1edd-430bfc4e00da@micronovasrl.com> Date: Mon, 4 Jun 2018 20:57:15 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: it Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Il 04/06/2018 13:49, Andy Shevchenko ha scritto: > 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. Thanks for pointing me that. I would try to solve serial breakage on intel with already extisting patches dropping this one. I'm going to try. I can't understand if it's enough using qemu x86 to reproduce the bug. If so I'm going to debug and check what makes driver to fail. Do you think it makes sense? Would it be accepted after bug fixing? Thanks Best regards -- Giulio Benetti CTO MICRONOVA SRL Sede: Via A. Niedda 3 - 35010 Vigonza (PD) Tel. 049/8931563 - Fax 049/8931346 Cod.Fiscale - P.IVA 02663420285 Capitale Sociale € 26.000 i.v. Iscritta al Reg. Imprese di Padova N. 02663420285 Numero R.E.A. 258642 > >> 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 >