Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2491927rwb; Mon, 3 Oct 2022 01:13:47 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5NgyKg/L6mTzbGaoMaPb+nRqgG1ouoT4sj/+mtxFGQY0CAn1iQ2yItPDPjoX/07nTynWig X-Received: by 2002:a63:d4b:0:b0:43c:1cb8:7460 with SMTP id 11-20020a630d4b000000b0043c1cb87460mr17190774pgn.581.1664784826967; Mon, 03 Oct 2022 01:13:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664784826; cv=none; d=google.com; s=arc-20160816; b=DqtiRl/znnlmcHURh3Q6rU9Rm+CsaW67bIZK9k7jt6sNQ8ETaiP4AxAcHeHGFQOJsZ +7FnyO+jRmBXm1OOjkn2kXci8+ITdvkp6EFuZUVtU04uluh+xyiKMKG1gYcdraNHCr32 snd336tugBZeiDKizxay745vHcU3Y1hIaa6bdDoPGMD4tpLuDjEoI+jC3Y90CdKJnAI4 vGSSjDHRWGta51DSMgQOuFTWDb4eUTbwUybLyIGF7BHpwo8M0cN7I0xZDQV04CLBd+bG vj36Cw9uYLP6YKyEDZsCbTtSkwDd8vd0mzQ/x01zhAKFeelN0a6pik5titj79h+z9Mrh zIlw== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=186o8a9k2f7PuQvMHZTifeInpvioeaosi8GOM+U7rOY=; b=m8PX4FSI9TKkzxa747JxPorN24pRNtJgoD9CII75NHGw0WeETxyrIf679zD9Htcb83 7ZvXiheCeVbiXFCP9PrjZ8x6bByIIlg95bR+4tq5mQOcIYXAL2bTVWDEUNUblCG1CIFl MJjuGFSc0kTa7rXiMUk46hOcqszVfynJ9veD5o7mD5zaPRXJb3XUH/uOzFt2S6H8NWdS eBThCYwvFv2a0833CgiQA57EVkZYv0m4nuPZAazWmek4902Bgs8LPJnVgAUeOe7rGrHf 2ftNydZieknqbsCRs1U7kWGHFQVjJydCBXY82/HKWROPfYr/x/38oA4R/h3O+4C1o5Ac OFfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=D0G1KPsH; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f185-20020a636ac2000000b0043af57e5d16si9607635pgc.724.2022.10.03.01.13.34; Mon, 03 Oct 2022 01:13:46 -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=@linuxfoundation.org header.s=korg header.b=D0G1KPsH; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231714AbiJCHiC (ORCPT + 99 others); Mon, 3 Oct 2022 03:38:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231663AbiJCHgL (ORCPT ); Mon, 3 Oct 2022 03:36:11 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82E6A53D39; Mon, 3 Oct 2022 00:22:51 -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 ams.source.kernel.org (Postfix) with ESMTPS id 331F0B80E93; Mon, 3 Oct 2022 07:22:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B858C433D6; Mon, 3 Oct 2022 07:22:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1664781765; bh=q4QHpmaaAtyn9aGU+5Hj6gU92GcrlTjqLaYaAGTdoRs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=D0G1KPsH6b2XZ0lRTe7u6aLJzHDRxugJ5T/Wq03cRflGKa8/HCI4aFTmSFpShr6QZ +e7SnxHO6zLb9RIsaEVJlEj2EM4Q6AURQcRjA1zOdtpafKOANIN7LWkigLa2GlKXdj H1j7ezjyVWXTurosnUjeR3TZSGJCLnjdWtgGE7wg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Richard Zhu , Philipp Zabel , Marek Vasut , Richard Leitner , Alexander Stein , Sasha Levin Subject: [PATCH 5.10 32/52] reset: imx7: Fix the iMX8MP PCIe PHY PERST support Date: Mon, 3 Oct 2022 09:11:39 +0200 Message-Id: <20221003070719.687403410@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221003070718.687440096@linuxfoundation.org> References: <20221003070718.687440096@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 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 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 From: Richard Zhu [ Upstream commit 051d9eb403887bb11852b7a4f744728a6a4b1b58 ] On i.MX7/iMX8MM/iMX8MQ, the initialized default value of PERST bit(BIT3) of SRC_PCIEPHY_RCR is 1b'1. But i.MX8MP has one inversed default value 1b'0 of PERST bit. And the PERST bit should be kept 1b'1 after power and clocks are stable. So fix the i.MX8MP PCIe PHY PERST support here. Fixes: e08672c03981 ("reset: imx7: Add support for i.MX8MP SoC") Signed-off-by: Richard Zhu Reviewed-by: Philipp Zabel Tested-by: Marek Vasut Tested-by: Richard Leitner Tested-by: Alexander Stein Signed-off-by: Philipp Zabel Link: https://lore.kernel.org/r/1661845564-11373-5-git-send-email-hongxing.zhu@nxp.com Signed-off-by: Sasha Levin --- 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; } -- 2.35.1