Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp62530pxb; Thu, 14 Apr 2022 16:06:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDQ6Ap807G4paEkuD3MBbcGWCGPOHaS07QjuE5cchzeJ1FLHaGf9xgl5NeElokPKKYpDel X-Received: by 2002:a63:1c01:0:b0:399:5113:9d6a with SMTP id c1-20020a631c01000000b0039951139d6amr4071802pgc.550.1649977611906; Thu, 14 Apr 2022 16:06:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649977611; cv=none; d=google.com; s=arc-20160816; b=o4nwUaHRym+h5PE02xTxI8IcphHTbm+/Vw0pskgxkZe3yTpHa+1W2+kKCWb4Av+nMa n/OhpdooLrkYbAm+6QfQVWGJm3CkS0X4AMwpmQaACPB8dRa/nVezI3yDe2TRve/vrmJB +fK0PX2osy0xexBk1bUk1KmvhU3ImkCUUbDg8w5CiN3QxlTtcKMt7mUll/rORb52APT5 6lvAhYfjv29/q6U6u8Y/rwX6QaVB0PGMMqIPQTJtqrtxiUjQcDvNlh5P1KgW+czajddH JQGEshi7ngLKmuM4diMQ1UugG75FhDyq/F5s2jZ6qMC2JClsp9tXk+NTlUloPCdNfPvo UXXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=MoOp1dOZOKovHH22S+B+QoKHzzBNJ4911TgqFAfa4y0=; b=yCSnA2VyUTIOFmyRQq1EqwHMw7udOd74xz3/XlpF2BjU3uTyvrxpT5eQyS5zwfvUZk h4pVxgMsR0t+mDEGF8eszKbsy/uWmpGL/ijDIZZYDObjkdBKsIVXGhQpfL2seZ2uxgyR IeF509hMohoAlhATwbTuW5r6x0FpKIDx7kD1RxHl+Mlp7MXhD/AfyM5LQbXIqNrqu4OD taQTPkmzpSa1lVC66DD6Hm6b0dcNGD5peHlSpovdL0zvWPvJm9E5d+CRvjSLtxNoBBbW T4RyUmxiNAw9wqsnXLuT511spQI/TddTFfAw+E6IgnD4A9etDEUjp6Qp18/Npc8fiC+n uqyw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id np2-20020a17090b4c4200b001cba31ea308si3537126pjb.6.2022.04.14.16.06.34; Thu, 14 Apr 2022 16:06:51 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344952AbiDNUu5 (ORCPT + 99 others); Thu, 14 Apr 2022 16:50:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242193AbiDNUu4 (ORCPT ); Thu, 14 Apr 2022 16:50:56 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10498EDF0C for ; Thu, 14 Apr 2022 13:48:31 -0700 (PDT) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=[IPv6:::1]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nf6O1-000642-Ee; Thu, 14 Apr 2022 22:48:17 +0200 Message-ID: <837af8d131bd0674d7466d89c3df74da08c8c435.camel@pengutronix.de> Subject: Re: [PATCH v2 1/7] reset: imx7: Add the iMX8MP PCIe PHY PERST support From: Lucas Stach To: Richard Zhu , p.zabel@pengutronix.de, bhelgaas@google.com, lorenzo.pieralisi@arm.com, robh@kernel.org, shawnguo@kernel.org, vkoul@kernel.org, alexander.stein@ew.tq-group.com Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de, linux-imx@nxp.com Date: Thu, 14 Apr 2022 22:48:15 +0200 In-Reply-To: <1646644054-24421-2-git-send-email-hongxing.zhu@nxp.com> References: <1646644054-24421-1-git-send-email-hongxing.zhu@nxp.com> <1646644054-24421-2-git-send-email-hongxing.zhu@nxp.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 (3.40.4-1.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Am Montag, dem 07.03.2022 um 17:07 +0800 schrieb Richard Zhu: > Add the i.MX8MP PCIe PHY PERST support. As Philipp said: please add some more description on why this is necessary. As far as I can see the reset is already present on 8MQ, and is low-active, like this patch claims. We just didn't handle this reset at all on other SoCs as the power on de-asserted state was okay to get things working. Regards, Lucas > > Signed-off-by: Richard Zhu > --- > drivers/reset/reset-imx7.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/reset/reset-imx7.c b/drivers/reset/reset-imx7.c > index 185a333df66c..d2408725eb2c 100644 > --- a/drivers/reset/reset-imx7.c > +++ b/drivers/reset/reset-imx7.c > @@ -329,6 +329,7 @@ static int imx8mp_reset_set(struct reset_controller_dev *rcdev, > break; > > case IMX8MP_RESET_PCIE_CTRL_APPS_EN: > + case IMX8MP_RESET_PCIEPHY_PERST: > value = assert ? 0 : bit; > break; > }