Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp595346iol; Thu, 9 Jun 2022 09:45:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGZhP++0d37LqW7VacMi9l7TA/8h8bUKmP0/W3FowOcfX/EC+0HFaTZvPA1ufrFsUenZ+e X-Received: by 2002:a05:6a00:814:b0:51c:1878:4943 with SMTP id m20-20020a056a00081400b0051c18784943mr22614145pfk.62.1654793120106; Thu, 09 Jun 2022 09:45:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654793120; cv=none; d=google.com; s=arc-20160816; b=qPTV2igcFjsbKjN4jqrOeDhH0CX43gbRf9HJmiT3XpCuMSVvyO00GW3h2g/p/fCgSF Nz78dJvf0muu9tW3LwKSTAc1NGCnjD6xSVNFyRZvRQbYZfCWv3VRIl2kJJBLK4kZsmNW JKE3fyqONIaSSAU6snnaxW+CtETEP/HlFEZfkpdZiPYIaCCthEiNdS16QNS/VqbYks5x KrRebL3Tkx0yM2cUNX/yLoq8MjLshyxlpCsQwI7B/6FTgf2EtmtuzGIOg2asNLikyKUS A6IsSilqgmsVkkHDZgDAUuoJ0RSYg65YuiJHqJvNcXN5NB753JXcmoEGT0Qgb5NT88o5 osxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=A29KKxNhREhnEuFmB0s4CBBVzbnGUYpLBX7+Np/5IZI=; b=xUHDLjQcOqLPaHk+fjLEWCDWAGY/YFBumTZ4MSMObLMYj8lqmKHAi5UXZYtejF3dQV g8KbxA3bzU/wYdAUH89nZIdxK93y0DxdQa8Qj8tkNNuLnuZb697ZDiaG5AxrP3yN2F8L X+YbQTRNrlCL+21t/9vDIXXh47bQXvewi8V5xKsR+wm3hfarswg+jLzVxcNmXkY22tEN imWCSSLD/IRyzk41pKWV9Ukh3h7oghs32DyVKa1IG05v/gn6feW5y4onZIqXmB34aL4u Ftmr3Kn64w8U/IgAUlRv8lfB4eivEqTRVR1QMkczSbPeUclAec3qVCFByokMpbNa1VFg pI4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SZyyFGAm; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n8-20020a170902d2c800b00153be6474c2si30346529plc.531.2022.06.09.09.45.07; Thu, 09 Jun 2022 09:45:20 -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=@kernel.org header.s=k20201202 header.b=SZyyFGAm; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242156AbiFIQ0D (ORCPT + 99 others); Thu, 9 Jun 2022 12:26:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239526AbiFIQZ6 (ORCPT ); Thu, 9 Jun 2022 12:25:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8F34196; Thu, 9 Jun 2022 09:25:54 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 5213360BD3; Thu, 9 Jun 2022 16:25:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6D961C34114; Thu, 9 Jun 2022 16:25:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654791953; bh=GUCfjj07MT21bODoY17PnMWnqynvpsdI6YTnfv/B07o=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=SZyyFGAm1zl4BW7SYoFMufNROhh/TWjXza+m9Cb/8LVsrN2baONmnwuYXzFnJsDde 0mP0h1dGYQVtmXVyEqDtXaKGlOUOZ1k/EgTu/WfB2+edgj4Jh03pGJec8wO5kaBTfD +wAkMVSBYZRRM/p+hF1BkfN87wDzJHFrRTkzMAUnAx6q18rHUgnfDEc6XviyPOR0Su G9IKS45WM6owg29rxC228tyuGO54WQ6N4ElJzxhHwQ1rTvbKiTC9Pe4JvSy7FbdgWP Hj3wHj9+8Utuh8LSeMmpKpKWQ88p5P8Ngw7+BVx7wSaZtKvxlx7GCuK+/OA1WmT1BJ Bwo0YL/VTFXeQ== Date: Thu, 9 Jun 2022 11:25:52 -0500 From: Bjorn Helgaas To: Hongxing Zhu Cc: "l.stach@pengutronix.de" , "bhelgaas@google.com" , "robh+dt@kernel.org" , "broonie@kernel.org" , "lorenzo.pieralisi@arm.com" , "jingoohan1@gmail.com" , "festevam@gmail.com" , "francesco.dolcini@toradex.com" , "linux-pci@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "kernel@pengutronix.de" , dl-linux-imx Subject: Re: [PATCH v9 7/8] PCI: imx6: Move the phy driver callbacks to the proper places Message-ID: <20220609162552.GA514635@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-8.3 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,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 On Thu, Jun 09, 2022 at 06:20:16AM +0000, Hongxing Zhu wrote: > > -----Original Message----- > > From: Bjorn Helgaas > > Sent: 2022年6月9日 2:58 > > To: Hongxing Zhu > > Cc: l.stach@pengutronix.de; bhelgaas@google.com; robh+dt@kernel.org; > > broonie@kernel.org; lorenzo.pieralisi@arm.com; jingoohan1@gmail.com; > > festevam@gmail.com; francesco.dolcini@toradex.com; > > linux-pci@vger.kernel.org; linux-arm-kernel@lists.infradead.org; > > linux-kernel@vger.kernel.org; kernel@pengutronix.de; dl-linux-imx > > > > Subject: Re: [PATCH v9 7/8] PCI: imx6: Move the phy driver callbacks to the > > proper places > > > > On Fri, May 06, 2022 at 09:47:08AM +0800, Richard Zhu wrote: > > > To make it more reasonable, move the phy_power_on/phy_init callbacks > > > to the proper places. > > > - move the phy_power_on() out of imx6_pcie_clk_enable(). > > > - move the phy_init() out of imx6_pcie_deassert_core_reset(). > > > > I'm not sure what "make it more reasonable" is telling me. In > > subject line and commit log, please say something more specific > > than "the proper places." > > > > It's probably more important to say where they are moving *to* > > than where they're moving *out of*. > Thanks for your comments. > In another review loop listed below, Lucas used said that it's not > good to hide PHY init in imx6_pcie_assert_core_reset() So, I make a > try to move the phy_init() out of imx6_pcie_assert_core_reset(). > And move phy_power_on() out of imx6_pcie_clk_enable() accordingly. > https://patchwork.kernel.org/project/linux-pci/patch/1646289275-17813-1-git-send-email-hongxing.zhu@nxp.com/ > Okay, I would specific that they are moving *to* later. > > > > In order to save power consumption, turn off the clocks and > > > regulators when the imx6_pcie_host_init() return error. > > > > Is the power savings the *reason* for this change? I can't tell > > from the commit log. > > The error handling of the imx6_pcie_host_init() is not mentioned in > the subject. Should I split these changes into two patches? If they can be split, they probably should be split.