Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3487512pxb; Mon, 4 Apr 2022 18:34:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxi5fSxwR9blaFaiKlJYQo8aW8IuEVI7XmG/VHcoMObNxlT+kDpazbHbCnPPypMJqFsvpys X-Received: by 2002:a17:902:9309:b0:156:983d:2193 with SMTP id bc9-20020a170902930900b00156983d2193mr909097plb.158.1649122452097; Mon, 04 Apr 2022 18:34:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649122452; cv=none; d=google.com; s=arc-20160816; b=NSVgqK1qcQfvD+dBsiDkbbZibF4N6btiVG4PvHZiGXzTqcPVlz8GMJnq/G+h8Yg9Rx GXVcDTyXjMnB0yvpdHDZHMxyrLix9ghfLtTcjsh8/7ppURVil7Dz1h/q6neFnJCvRMIe GPOw4/sTrEKM8biKm/PmB3YsZEZKPdP+I0/LV1BcusrdjT0aGWOBZrR3Y/OStB3nsU2f uKMmQh7aC41F5chT9Lg2ptDDux/wvA/In0Ms0YypDbVLcXD5gtiqXIDHXET2EGcXVkRC HgQAIdXa4B5L59fhsicQbOaOeWUYR7xV0iDR0u5gGyL5+eFrv9pDOaYrwa4h1How4Kon 5K9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=wHrImhNN/9qbmcAnUMTv4ZpYlwZNkFufveUOX6lE8Xg=; b=xuS+fTaSDqoEieWHhd6ucRjvCYa/ehGikAaNipEI1dArSb0j0yWOBazlCzv6wdUwFR t9K99N+ry75TGiMGTG1oKd89+eRiqXIAl6PGprj9voUTw7dK9OvRuybw7W/2+sTn8W82 hUyTjG9ELWSkhIX/k4IVR4HiU/vwLmLSTrzvawhT0oitpe2Riq8fsCEo2Soa+SQ90Q7f 1RVNDsXONuxECGyp793p9gi7UG/xOIuGC54oFuPxZMQGezyxMH8051K5LVL9AQahrnq1 33p7XlX5KE2pWJI76E5Xow0g5QlYTuo2hxc3xk9RmQPvhrv56Xkd84bWRc0OwN062wB7 JEBg== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id v6-20020a63d546000000b003816043f0e0si11849994pgi.725.2022.04.04.18.34.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 18:34:12 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BEE451EE8DA; Mon, 4 Apr 2022 17:24:22 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354230AbiDDJg2 convert rfc822-to-8bit (ORCPT + 99 others); Mon, 4 Apr 2022 05:36:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237909AbiDDJg1 (ORCPT ); Mon, 4 Apr 2022 05:36:27 -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 F3CAC25C72 for ; Mon, 4 Apr 2022 02:34:31 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nbJ6D-000624-TH; Mon, 04 Apr 2022 11:34:13 +0200 Received: from [2a0a:edc0:0:900:1d::4e] (helo=lupine) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1nbJ6D-00101n-4r; Mon, 04 Apr 2022 11:34:11 +0200 Received: from pza by lupine with local (Exim 4.94.2) (envelope-from ) id 1nbJ6B-0004fp-0u; Mon, 04 Apr 2022 11:34:11 +0200 Message-ID: Subject: Re: [PATCH v2 1/7] reset: imx7: Add the iMX8MP PCIe PHY PERST support From: Philipp Zabel To: Richard Zhu , l.stach@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: Mon, 04 Apr 2022 11:34:10 +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" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: p.zabel@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=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi Richard, On Mo, 2022-03-07 at 17:07 +0800, Richard Zhu wrote: > Add the i.MX8MP PCIe PHY PERST support. > > 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; >         } This doesn't do what the commit description says. The PCIEPHY_PERST bit is already supported by the driver (albeit incorrectly?) - this patch just inverts the bit. Since this bit is not inverted on the other platforms, and the i.MX8MP reference manual says nothing about this, please explicitly state why this needs to be inverted and call it a fix in the commit description. regards Philipp