Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2368933rwa; Mon, 22 Aug 2022 06:44:42 -0700 (PDT) X-Google-Smtp-Source: AA6agR4cwjbUWNz7/D6Z9YICR2DaVL8t9L6kNtFXTAM677DBcd/J3dMiDIljxm0AD0HCwUOPRzZH X-Received: by 2002:a17:906:58d1:b0:73d:6329:5e14 with SMTP id e17-20020a17090658d100b0073d63295e14mr7602716ejs.121.1661175882731; Mon, 22 Aug 2022 06:44:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661175882; cv=none; d=google.com; s=arc-20160816; b=IPHPAvg1nUPgDCC1Fz7IbX4xWyrbrOqbkqweXLtpQEo0KYgRO/uSjmf1bsXHil5NMj 8XDmF+Ggxgt//BQVNf0UcUpNjC6t71Uyigi2nbV/+xGdZB50pZwLDtrmRNywR1j4UdAy qExPgOMe9NHWyHH3sSIdeuJpC5DegC1W13uKLr7+C14IY1kaxdfnVNZlu1SL+7+TtetC u4UlglGLRgiUyOBdqYUSa1jIpZDa+zkTnbgD63Gl/stFQJi8vOW7dp0VpjNqqBvZkM5h hEThTYuu9JNpb4qdCPL3Jk4+RvEAPLFVxfeHn4KHDhW3RxVKXxe/D8ez4rzScPS3EXwS LOOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=CZjxekJN7sq35OH7aCOyeks0g9VB4bdHiePMcBlnDN0=; b=DFozbDBR+FctnbLgwmFFXfkzziRljrbdLD8IiRi2ZEnCBX128yfdcc9K8+hh7aaTa8 4rrknXr/EgB/BytePeb3AASbt6hdeC7mqIGR4uowYjgiZ5Ipf8qnYyTqBNgzr+CVPJYC yfj4hrlnZypQhlLG8JWWUX2ITvl8481edaWrFvO1kRPFecVj1EHgilQZY4KsrH8AqRH3 hhl9I60DBPJQNQEtUH+DQCKnhh+3fF47gne+vkmeszBPuuJGtGViQXa9JQUcUsjal8cj dHUKaMR57+ITEemQyMjy2P4TQI40ySj7vJJn7mB+NDYhd+8zpJloIi0wMI4ZMATgDbbx 6Lew== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wz8-20020a170906fe4800b0073d678f50c1si5770483ejb.416.2022.08.22.06.44.15; Mon, 22 Aug 2022 06:44:42 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235061AbiHVN2T (ORCPT + 99 others); Mon, 22 Aug 2022 09:28:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234953AbiHVN2R (ORCPT ); Mon, 22 Aug 2022 09:28:17 -0400 Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22063E9A; Mon, 22 Aug 2022 06:28:15 -0700 (PDT) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id A17661A2999; Mon, 22 Aug 2022 15:28:14 +0200 (CEST) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 676081A23C3; Mon, 22 Aug 2022 15:28:14 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id B0690180031C; Mon, 22 Aug 2022 21:28:12 +0800 (+08) From: Richard Zhu To: l.stach@pengutronix.de, bhelgaas@google.com, lorenzo.pieralisi@arm.com, vkoul@kernel.org, marcel.ziswiler@toradex.com, kishon@ti.com Cc: hongxing.zhu@nxp.com, linux-phy@lists.infradead.org, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de, linux-imx@nxp.com Subject: [PATCH v1 0/2] Fix the wrong order of phy callbacks Date: Mon, 22 Aug 2022 21:10:54 +0800 Message-Id: <1661173856-1192-1-git-send-email-hongxing.zhu@nxp.com> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP 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=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 Refer [1], phy_init() must be called before phy_power_on(). This series used to fix the wrong order of the phy_init() and phy_power_on(), introduced by commit 1aa97b002258 ("phy: freescale: pcie: Initialize the imx8 pcie standalone phy driver") Tested on i.MX8MM EVK board when one NVME device is used. [1]https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/phy/phy-core.c?id=v5.19-rc1#n233 [PATCH v1 1/2] PCI: imx6: Fix the wrong order of phy_init() and [PATCH v1 2/2] phy: freescale: imx8m-pcie: Fix the wrong order of