Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2964351imu; Mon, 17 Dec 2018 10:43:03 -0800 (PST) X-Google-Smtp-Source: AFSGD/W3gwgLgir/qzYAk2NWb6QIwOesdKDQ2EZ6m8n+umJQ0IHf1TfXUieWEJ58LHoGEBwzq3VP X-Received: by 2002:a63:e247:: with SMTP id y7mr9373285pgj.84.1545072183557; Mon, 17 Dec 2018 10:43:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545072183; cv=none; d=google.com; s=arc-20160816; b=bmTXDYh6mPYuEQYLuSpTImcn/pa0Xkoff63wJ1ZF3z/OIZb4cPSkd3u05KzS/HDZqm 6MBKiTmecblo1YmHTgnEA/sO3YyFl7WIqGWmItFAcFV5axSXrvnEwbl8Gm2aVecJqlb9 EGLJowtHrBS1AddEdokgJWXPcGTHq9YrUJfjjL/S1WFZyF2HSTMMoeEawm5g0mG6hwiS hj9mJXSI5nQWHRZTYUaLdCLwzCpflGzEpB46HfH3wOGfZ+vLWTXMNEHVVmlDnPfPhizT PhcBMTbMkrPpPA/UH141n1HziRR5yRrDMl83w/P7ALbHIXi1qSp4cb5ML8AYnNLtyZgM jU0g== 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:message-id:subject:cc:to:from :date; bh=HiUFNeT2iOqcj/j9VWsAWkPCjZmn4ObLKhtH8sZAF50=; b=AmxsnHJPqM6d+81sLCqzy53CxKbyJ9uM3wGoJcW/tWIepjgOe/KbeoR9g1zB1Xwe9z yPQytlZut7ryn65ap6F2/xPkqKfkp0hR00kx2kQxRZV0TLJvZdu2FWBwf0SxRjoFjJK/ VzCJ+cXBXGhK4NuRGzHyNDixLi6w+zYoThqYKUuYb76e4Vs5YjSQHnKG+oEXN/nQv/HU 4uFB2taAtLhmEGtvwzOzIMG9qCxv1dPbPEJ7a3r9HhTvMggiBPyuG1b6CMez+XczUNKq Y+ZtJcPNWDHTNiPdX5futB5RE3Jke49d/91uAChr5ZIi/Q+bBQc+8G+OGeENidPprxW4 bvwA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b89si11857072pfj.207.2018.12.17.10.42.48; Mon, 17 Dec 2018 10:43:03 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732673AbeLQObx convert rfc822-to-8bit (ORCPT + 99 others); Mon, 17 Dec 2018 09:31:53 -0500 Received: from mail.bootlin.com ([62.4.15.54]:57041 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727301AbeLQObx (ORCPT ); Mon, 17 Dec 2018 09:31:53 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id ADBEB2074F; Mon, 17 Dec 2018 15:31:50 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.2 Received: from xps13 (aaubervilliers-681-1-89-7.w90-88.abo.wanadoo.fr [90.88.30.7]) by mail.bootlin.com (Postfix) with ESMTPSA id 468AD20711; Mon, 17 Dec 2018 15:31:40 +0100 (CET) Date: Mon, 17 Dec 2018 15:31:40 +0100 From: Miquel Raynal To: Thomas Petazzoni Cc: Gregory Clement , Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , Bjorn Helgaas , , Rob Herring , Mark Rutland , Lorenzo Pieralisi , linux-pci@vger.kernel.org, , , Antoine Tenart , Maxime Chevallier , Nadav Haklai Subject: Re: [PATCH v2 10/12] ARM64: dts: marvell: armada-3720-espressobin: declare PCIe reset GPIO Message-ID: <20181217153140.6d51b9f3@xps13> In-Reply-To: <20181213153619.499aab66@windsurf> References: <20181212102142.16053-1-miquel.raynal@bootlin.com> <20181212102142.16053-11-miquel.raynal@bootlin.com> <20181213153306.4fc3b511@xps13> <20181213153619.499aab66@windsurf> Organization: Bootlin X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Thomas, Thomas Petazzoni wrote on Thu, 13 Dec 2018 15:36:19 +0100: > Hello, > > On Thu, 13 Dec 2018 15:33:06 +0100, Miquel Raynal wrote: > > > I will re-send a series without this patch. I think it does not hurt to > > keep the previous patch adding the pinmux setting in the > > Armada-37xx.dtsi file even without using it, so I will drop only this > > patch. > > I tend to disagree here (but perhaps you'll have other arguments to > convince me otherwise): the GPIO used for PCIe reset is a completely > board-specific thing. You can chose whatever GPIO you want, and each > board can be different. Therefore, there is no reason to have such a > pinmux configuration at the SoC level (.dtsi), it should be within the > particular board that uses that pinmux configuration. > > This is a rule that we have applied to mvebu platforms in general, and > which I believe is fairly common in many DTs. Actually this is a pin that may be driven directly by the PCI IP and is not board-specific (note that the patch is wrong as the functions should be "pcie" instead of "gpio"). What is board specific is if this pin is actually wired to the endpoint PCIe card or not. Anyway, as seen by Gregory, the pinctrl driver must be fixed as when selecting the "pcie1" group, the driver was poking another area making the EspressoBin switch unstable. With a quick fix on my side I realized the reset was not behaving at all as expected. As it is not actually needed for suspend/resume operation (at least on my setup) I will drop the 'reset pin' related patches in the next iteration of the series. Thanks, Miquèl