Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5164809iog; Wed, 22 Jun 2022 13:30:30 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ttTGdVw5Ets6KeAC43B70FGxVCqkkSLQhpSZneJGWGa+324G8K3dKm10J7EpY4jVNIR11u X-Received: by 2002:a17:906:5344:b0:711:f8fa:f16a with SMTP id j4-20020a170906534400b00711f8faf16amr4853356ejo.638.1655929830153; Wed, 22 Jun 2022 13:30:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655929830; cv=none; d=google.com; s=arc-20160816; b=jmxePQ7lMLBmo6UY5N3CP3+XsU6sTmR9yZRQIZMOq6rXm54pvb56pvAhqZYIwy5btX Od1ZNFRk/AKADDUzLMJTituMAPci1ePXVbes6Xgn77a8eTn+O/2NXB4s/zDhTB+H0PtR /4h30dndciRJFknZ0O7tN4NFMnsLxWOTVooGr8aPVwOQFuoVSgVZmAY6wkUdIjTf3e4Q dJ4zPquFmCRX5xWDgdO/OfNJCLbSoyoyaPvabZpptOOMKpJe4tLmKdxLPRZQeuQVJ6ic uurbZOpRLXSAKF6vGMsSrX0aP5CbqJSIiIKhQruWBVd0HJc/nU27wn+KhRiT769RwL5c TeOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=3ozmbnbt25/yEk/i5rgOpWZ9GMUPV4ZEIFwG/qdRsbQ=; b=LAzeUfiQDQgZFznQPJ0/hVq6yyLkF0LabllZFitUmvmuSgL/XYMOuWcIPCOC0ttEeW fzh0wD9vhcJtfI9siga4twHEQ5istpRYjOFAGobIFYvkZ1g0NKXxYBiOanzMHqPLpQuF KGKcjO/cLbERzP8IErq/9HCbh1k5o7wGlgCSAyZ28bOq90RGRKLRn+VWEEo9d+XZK3sK WSHO650bJDUl1NwPI+Ry3oxD690M5O6am6bmAeURR+xKWzoJv+l/qRChUr1x55W6s+yh Ds0Ol1UsYo+eMYfeITJTOxpcOvlLNZwxuUWCbsiVPd/DHZpbNQllP7kAH1mOm4KBucnp sisA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="LxVMS/Q/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z16-20020a05640235d000b004359f333398si6521288edc.321.2022.06.22.13.30.04; Wed, 22 Jun 2022 13:30:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="LxVMS/Q/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S233265AbiFVU0w (ORCPT + 99 others); Wed, 22 Jun 2022 16:26:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229473AbiFVU0r (ORCPT ); Wed, 22 Jun 2022 16:26:47 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A85A136682; Wed, 22 Jun 2022 13:26:46 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0470061738; Wed, 22 Jun 2022 20:26:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2427CC34114; Wed, 22 Jun 2022 20:26:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655929605; bh=kXEUTw/N4tbohAVX+9EPs5JvigCwZ5p1wSKw76VkLGg=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=LxVMS/Q/AXjq/CFLjx4GJiLjQKJ1DETmISnpLERNDTg2bTZi4w9aDIBxvLnuWHHlP uMOqpinUDwRQ+HTyi7KMHnZXBnVNrcnH/UxO8QsTWuwAJ7kdPuCvRgke06RfZxQZt7 QgEL+qw7tt9eRLTpjPoy7ssl0bW/Tyjx5mt1eNzRdQ+1zLOSY0fxJbjLJDF8D0cahZ nDWudeSbzuQUmMQ4tlgD5EEkUGAZ1IJ66qk3fgaONAN4C8A/znTSv2/BJZuhZJtOGZ b5OYUF+e4/fmbJ4zisPg/pv7Mlrd0UahYo0SSImMXQ5rb4mVfhbixGAom1IIeVs0wR niIalZUMbk1mQ== Date: Wed, 22 Jun 2022 15:26:43 -0500 From: Bjorn Helgaas To: Robert Marko Cc: Stanimir Varbanov , Andy Gross , Bjorn Andersson , lpieralisi@kernel.org, Rob Herring , kw@linux.com, Bjorn Helgaas , p.zabel@pengutronix.de, jingoohan1@gmail.com, linux-pci@vger.kernel.org, linux-arm-msm , open list , johan+linaro@kernel.org Subject: Re: [PATCH v2] PCI: qcom: fix IPQ8074 Gen2 support Message-ID: <20220622202643.GA1387264@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 22, 2022 at 04:23:49PM +0200, Robert Marko wrote: > On Tue, 21 Jun 2022 at 23:43, Bjorn Helgaas wrote: > > On Tue, Jun 21, 2022 at 11:05:17PM +0200, Robert Marko wrote: > > > On Tue, 21 Jun 2022 at 22:32, Bjorn Helgaas wrote: > > > > On Tue, Jun 21, 2022 at 01:23:30PM +0200, Robert Marko wrote: > > > > > IPQ8074 has one Gen2 and one Gen3 port, currently the Gen2 port will > > > > > cause the system to hang as its using DBI registers in the .init > > > > > and those are only accesible after phy_power_on(). > ... > > Unless there's a reason *not* to move the DBI accesses for other > > variants, I think we should move them all to .post_init(). Otherwise > > it's just magic -- there's no indication in the code about why IPQ8074 > > needs to be different from all the rest. > > I am not sure how to do it properly, especially for the 2.1.0 IP that > IPQ8064 uses > and that is already filled with tweaks to get it properly working. > > As far as I can tell, the reason why it works for all of the others > is that they dont use a PHY driver at all (2.1.0 in IPQ8064 and > 2.4.0 in IPQ4019), 1.1.0 in APQ8084 appears to be unused completely > as its compatible is not used in any of the DTS-es. 2.3.2 in > MSM8996 and MSM8998 also use QMP, so I am not sure why these work. > ... > This patch applies to 5.19 as well, though I will send a v4 with the > updated description. Like, I said, I am not sure how to move DBI > accesses in other IP-s without breaking them. Why would they break? I don't see anything that indicates the DBI accesses are required to be before phy_power_on() or would fail after phy_power_on(). I agree there's always a risk of unintended breakage. It just doesn't seem very likely. Bjorn