From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jon Hunter Subject: Re: [PATCH v2 1/2] i2c: tegra: Better handle case where CPU0 is busy for a long time Date: Tue, 21 Apr 2020 14:08:13 +0100 Message-ID: <1a5e5455-597f-7724-f992-32a2492c1e24@nvidia.com> References: <20200324191217.1829-1-digetx@gmail.com> <20200324191217.1829-2-digetx@gmail.com> <1e259e22-c300-663a-e537-18d854e0f478@nvidia.com> <8cd085e1-f9fd-6ec0-9f7a-d5463f176a63@nvidia.com> <2e99c2f0-4bba-2ea6-dada-3190c0303dcf@nvidia.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <2e99c2f0-4bba-2ea6-dada-3190c0303dcf@nvidia.com> Content-Language: en-US Sender: linux-i2c-owner@vger.kernel.org To: Manikanta Maddireddy , Dmitry Osipenko , Thierry Reding , Laxman Dewangan , Wolfram Sang , Vidya Sagar Cc: linux-i2c@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org List-Id: linux-tegra@vger.kernel.org On 21/04/2020 13:39, Manikanta Maddireddy wrote: ... >> I am adding Manikanta to get some feedback on why we moved the PCI >> suspend to the NOIRQ phase because it is not clear to me if we need to >> do this here. >> >> Manikanta, can you comment on whether we really need to suspend Tegra >> PCI during the noirq phase? > > PCIe subsystem driver implemented noirq PM callbacks, it will save & restore > endpoint config space in these PM callbacks. PCIe controller should be > available during this time, so noirq PM callbacks are implemented in Tegra > PCIe driver. > > file: drivers/pci/pci-driver.c > static const struct dev_pm_ops pci_dev_pm_ops = { > ... > .suspend_noirq = pci_pm_suspend_noirq, > .resume_noirq = pci_pm_resume_noirq, > ... > }; Thanks, however, it is still not clear why this needs to be done during this phase. When you say PCIe subsystem driver, specifically which driver are you referring too? Are you referring to the pci_pm_suspend_noirq() in the drivers/pci/pci-driver.c driver? If so, just out of curiosity why does this need to be handled in the noirq phase? Thanks Jon -- nvpublic