Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp700487imm; Tue, 5 Jun 2018 03:03:44 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI/d3Cgg4/S6GJczMZ3x6VG+Kzk5VNOl2J4PWpNsjE4ohylrU4ok08LbhDGdgYJe44hHb32 X-Received: by 2002:a65:6604:: with SMTP id w4-v6mr20217090pgv.346.1528193024048; Tue, 05 Jun 2018 03:03:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528193024; cv=none; d=google.com; s=arc-20160816; b=f23U9IjvemYZSq2kO15IBZXyQFpm45JAbIftOAIhpJgG9AfsjLhuSlwGiNxhY0+19x 3QpIP3wZDYohOALKecswiWbWuBXy6x/142FqPPDt1s6tbJ26Hr2OXTi9ie1UllHkn2tF 37x27BeXkjB2JvWK6R0kQkWkmfa1seg60hNJFWK87ZY12ajFkhFSpLvaTRLYN2Gjbmaa ODZkLzVVpADPgfYPJLkb6UsbOf78ZkAkQFQL7+KXX9K1cHSeKjTLRtX4+0qwW1lpl1yB rIWohao9EvoNDnYutpBaspfB7e594wPEPpHbwiBetc6CuUUxcEF6UVYoMHOhHW7tAZbB zxjg== 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=MTUdJOjDTI6ANYMt9XcqsMuHjcUTpNjyzGmfzWxgVok=; b=VOkVncBZ4Tvtrifamvca4PXJhceq8u5MUldgk35QbQ4BWvlSwaczSD4cplk2m5vyEr wDOWQ4EG+1WrYYdY6iGVx8cdb5r85WLu7ElMVtzDjVvY56XPMAHbQoalusfF2WrJJzXA kDx8nXsuOT9YdMLRwLCwHhEAtojtXIlMHQ6zXPxI2rtRvcfgvxJ5N4aHHa+gNECrkC04 sA9z9AeowLWbOWfa4iAqFBg1Yki0i7mc8wGUBcOnrSCpK7xgwq/x72hsg11OhnGy+A+V fNb+gG4zAUWp56exqV/OrIntXlA/nt6H496l7f9YEHfo39KYlMQ/fGB95+6lfLt4sG8Z vw0g== 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 g187-v6si38791915pgc.644.2018.06.05.03.03.28; Tue, 05 Jun 2018 03:03:44 -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 S1751855AbeFEKA7 (ORCPT + 99 others); Tue, 5 Jun 2018 06:00:59 -0400 Received: from mga14.intel.com ([192.55.52.115]:46835 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751808AbeFEKA4 (ORCPT ); Tue, 5 Jun 2018 06:00:56 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Jun 2018 03:00:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,478,1520924400"; d="scan'208";a="46866532" Received: from smile.fi.intel.com (HELO smile) ([10.237.72.86]) by orsmga008.jf.intel.com with ESMTP; 05 Jun 2018 03:00:44 -0700 Message-ID: <2b2a81ce166f16ab88a4733caed2544c8128ae6b.camel@linux.intel.com> 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, Yegor Yefremov Date: Tue, 05 Jun 2018 13:00:42 +0300 In-Reply-To: <7f4d688c-095a-d056-1edd-430bfc4e00da@micronovasrl.com> References: <20180601141158.93817-1-giulio.benetti@micronovasrl.com> <7f4d688c-095a-d056-1edd-430bfc4e00da@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 Mon, 2018-06-04 at 20:57 +0200, Giulio Benetti wrote: > 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. You need to provide an ACPI table with UART contains GpioInt() or GpioIo() resource in it. Where GPIO number is a number of pin related to UART's RxD. > Do you think it makes sense? Would it be accepted after bug fixing? I can test on our hardware. Can't say about the rest, though. -- Andy Shevchenko Intel Finland Oy