Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2384640pxb; Fri, 8 Oct 2021 06:47:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4OY0i3bJpDiy8wtCTsdZenwVj4FetV4bsepqmPkRlfLHruvJx33gY0Nm+it5rkYAQLyB5 X-Received: by 2002:a50:e044:: with SMTP id g4mr15048285edl.46.1633700869231; Fri, 08 Oct 2021 06:47:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633700869; cv=none; d=google.com; s=arc-20160816; b=is2EWuzcZ6EHMCB1iwcI7kmv1Xw5Za1Px+x7uG4/mgRCyoUbu8JoNrTvTX52OPXBRS iUDZCaAxiDTMyUTbYOHmeRbivqDzYHLB3yN9kbW0zdVyhn4VMke9OuDeMCsozKJfyPSL 52e/hLxnCJKK0hqPbb/I7UmeY5B6UbP2RJqbb2kkp65DzIMRZLx5eD/AcwxzqYCK30+h 7fZYOB7g72nbOyp3D243yWt9Dan0ocEtD3aadzxZ/OZXjFCgFVxqMr0lL/MIqi68AgW3 qfnJzqOrvHA556z0Wq40DPKj24eWRuXn0z5bUB7ltHpum55B5Uuy5t/9GCn1NtFtRdEa 6Iaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=jgz4Q9xMtBJrQQ7NRirUCMPPhfcQqbJ5s0FDt4CC7Dg=; b=xmV3UNtdw/Lg+ymiIBqY7ihHvOCc7twwHDgSjcdemuySnfzkBb9FPNOuBE8cVRBYGN +2W46FLDggCYZVzUeOa/hh1T4W+fcNJh0RpkKAi8oN7d9lAPYo47aswd50WSsjLq2ZbP 4vKtYvh4I2v5X+e/b2m+XoN/iCxm72xmWEknK+o6c0RTPSSklekRIdTLM0W5kq631IN6 KpQM4Ej5rtUZtFXrwE5zeCLGj0ca66OHO1XcF2gWx9Q8x3BWu5mjhbaKQlnoCkeFilve Uazp8tTVjB4lk9XiJIEiOwxnwJCjYKpydFDuv5xXksF+wsN5NzilgLC7DHP5ff2CS9i0 qT4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RGnWbO0M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y6si3981839edp.593.2021.10.08.06.47.25; Fri, 08 Oct 2021 06:47:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RGnWbO0M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229562AbhJHNpq (ORCPT + 99 others); Fri, 8 Oct 2021 09:45:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:50994 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbhJHNpp (ORCPT ); Fri, 8 Oct 2021 09:45:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BF65160F5B; Fri, 8 Oct 2021 13:43:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633700629; bh=1o9q1XcL0I+ROV0ip9arNCr7TM35n15Zzw1snvEtGcI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RGnWbO0Mzk+jd1zPqtfu0npWY10dB4OeJnTuFb6RA3BkXr9+Oek/joN9GpIRNYitX xJiJs8+lL6jUhWRKkJPiLmgbXaSmad9ISbNq1w+nm/bLQz6erKUx8mZkdbkODZ8jV4 Y6ukTvxxsstcHhBHqgnPE9dLP+mzAdX/QrWMv932mWSTtnmK14Pa3x+F9YnycdifJJ MHsuTfMZsUPIHe5alopFMUxQRYJoiyVxqNci3z1S0jF2ULemwVsSkuAnVSicbpzhiv vsF0pOklNqVJkgX2DvJgwzmbD+qs0j+v6pviv9XSUdy5alB5XzoWnRtGY1Y7CzsvtP PynHQzujJGUeA== Received: by pali.im (Postfix) id 76DD3760; Fri, 8 Oct 2021 15:43:47 +0200 (CEST) Date: Fri, 8 Oct 2021 15:43:47 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Robert Marko Cc: Marek =?utf-8?B?QmVow7pu?= , Rob Herring , Andrew Lunn , gregory.clement@bootlin.com, sebastian.hesselbarth@gmail.com, devicetree , Linux Kernel Mailing List , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v5] arm64: dts: marvell: add Globalscale MOCHAbin Message-ID: <20211008134347.lskm5pzt73pkf7oc@pali> References: <20211008114343.57920-1-robert.marko@sartura.hr> <20211008120855.46zbo2fl5edwf7ja@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday 08 October 2021 15:28:38 Robert Marko wrote: > > > + cp0_pcie_reset_pins: cp0-pcie-reset-pins { > > > + marvell,pins = "mpp9"; > > > + marvell,function = "gpio"; > > > > Now I spotted this. Why is PERST# pin configured into gpio mode? Is > > there some issue that this pin in pcie mode is not working properly, > > that PCIe controller cannot handle it correctly? Or something else? > > Its because I have seen way too many broken controllers when it comes > to PERST and > other Armada 7k/8k devices are using it in GPIO mode as well. > Just look at the number of conversions back to GPIO for other > platforms as there is always some bug. I know that A3720 has broken PERST# control in PCIe block... or at least I was not able to figure out how A3720 PCIe block can control PERST#. So configuring it in gpio mode and let PERST# to be controlled manually via gpio by the software is the workaround. I just wanted to know if A7k/A8k/CN913x is also broken in the same way as A3720. Or it it just a configuration workaround for missing driver or missing proper software setup. HW bugs like this should be properly documented and not hidden behind some configuration in DTS file. And reported to HW vendors.