Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2495530rwb; Mon, 3 Oct 2022 01:18:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5b+GgZXMN2uRTjCVsU13HtfJUPy11dIRGCKRa9sTSWIiuUcBEQK04pV+SoUUkxwhZ4hamF X-Received: by 2002:a63:1923:0:b0:441:2c12:f704 with SMTP id z35-20020a631923000000b004412c12f704mr13971405pgl.398.1664785098309; Mon, 03 Oct 2022 01:18:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664785098; cv=none; d=google.com; s=arc-20160816; b=FoFpQPdJytKKhA6fQwaBvKLYqgkaNwDW+OjHddlx/+rLrDcXzxlPdSTIDIEmdKOCb7 kyYYQkqnGqibenW/UxHE7fnV1SPcHIh7ghqtQ+DjuaP/nWN9OShc7XWa0GBkiazgBDru lXCokQ+QWue1nOiZuAWpwF1DcvGeGLNAr1x3WYmGN6ldsXFuvpwh/gdBaIDInPVjxBsx g/o8n9nwMopcoYxHBpt3efN80CtrWoaR6vKKlHWaE/loOdhqKeJC00o4WSGAlUn3NSRe UtvZzvSOCbW6LqBHRLSUtKf/q8CgCG93sNqgREBPehdbMksp7Zit9tsR8b6UlCvv8nyp zVFg== 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=EuM7z0yJUSFM/sRvgwYH9H8DiJ8ojL58xB+S8C2wr0YWmqETc8pT9JzTIsviaiBM8C 4Vn7/8I2oK+Wq/nGzLg9kmUuA+rcJ0je1dkPcZLzSz2x7DiZVp/Y0UJEEngxEBqT0r+g fnA5yf7NPDmIIIrlGwDw6RkvuBjssLHXq7k00Zmen2+YrQ/ecESKLRNGVcp5gONkFzUN vaE0jiufencexGypl/coYvHhLaL+OaTIHBghQjwNYFpgic+YRKXSXwipBZ8TlMonwpcn /SuITa9008sAcwVGhxJ0hGo7ac2w22ecJv9ClnWWlstq0HBJ7/cKoPuCyLIbLJMmMwPz rb5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=u9yPgHoX; 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 s4-20020a634504000000b0043dc7961525si9872769pga.470.2022.10.03.01.18.06; Mon, 03 Oct 2022 01:18:18 -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=u9yPgHoX; 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 S231264AbiJCH3r (ORCPT + 99 others); Mon, 3 Oct 2022 03:29:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231293AbiJCH2m (ORCPT ); Mon, 3 Oct 2022 03:28:42 -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 808756558; Mon, 3 Oct 2022 00:19:42 -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 B6406B80E83; Mon, 3 Oct 2022 07:18:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1697AC433C1; Mon, 3 Oct 2022 07:18:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1664781491; bh=q4QHpmaaAtyn9aGU+5Hj6gU92GcrlTjqLaYaAGTdoRs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u9yPgHoXkzR1EIPKAEoG0xd8EhY5qQFZaLsFg3RGbgj3RfsRfixQh3GmHIKoSpOEP XmZYqQKz/PxofSxppZyySpgHL+pnpChRz/Z2XZKDaMNi5Ly2pcmGEB7kWyE4wEw6KJ UjZqI9VRD7GNVKnPbEqXnD9bdf8misBwKgW3b62U= 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.15 40/83] reset: imx7: Fix the iMX8MP PCIe PHY PERST support Date: Mon, 3 Oct 2022 09:11:05 +0200 Message-Id: <20221003070723.003755296@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221003070721.971297651@linuxfoundation.org> References: <20221003070721.971297651@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