Linux PCI subsystem development
 help / color / mirror / Atom feed
From: Siddharth Vadapalli <s-vadapalli@ti.com>
To: Manivannan Sadhasivam <mani@kernel.org>
Cc: Siddharth Vadapalli <s-vadapalli@ti.com>, <lpieralisi@kernel.org>,
	<kwilczynski@kernel.org>, <robh@kernel.org>,
	<bhelgaas@google.com>, <helgaas@kernel.org>, <kishon@kernel.org>,
	<vigneshr@ti.com>, <stable@vger.kernel.org>,
	<linux-pci@vger.kernel.org>, <linux-omap@vger.kernel.org>,
	<linux-kernel@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>, <srk@ti.com>
Subject: Re: [PATCH v3] PCI: j721e: Fix programming sequence of "strap" settings
Date: Mon, 8 Sep 2025 13:36:09 +0530	[thread overview]
Message-ID: <578e5125-21d8-40c8-aaeb-389599cdd32b@ti.com> (raw)
In-Reply-To: <wvrouqouhrpoexmggwbc6vjz4xflnylzxrb2ffw3ai7656ehrt@keb53gb2tm2o>

On Mon, Sep 08, 2025 at 12:58:51PM +0530, Manivannan Sadhasivam wrote:
> On Thu, Sep 04, 2025 at 11:33:00AM GMT, Siddharth Vadapalli wrote:
> > On Wed, Sep 03, 2025 at 06:51:14PM +0530, Manivannan Sadhasivam wrote:
> > 
> > [...]
> > 
> > > 
> > > I thought put_noidle() will just reduce the refcount and not invoke the
> > > idle/suspend callbacks, but I seem to be wrong here.
> > > 
> > > Anyway, I guess we have no option here other than to drop the
> > > pm_runtime_put_noidle() call. This will keep refcount as 1 and will prevent the
> > > parent (genpd) to not enter runtime suspend, but we have to live with it (this
> > > was also the previous beahvior as well).
> > > 
> > > Btw, pm_runtime_set_active/enable change belongs to a separate patch.
> > 
> > I will work on and post the v4 patch with the following change:
> > - The commit message and the comment in the code will be updated to
> >   indicate that the runtime PM APIs are used to cause 'genpd' to power off
> >   and power on the controller.
> > 
> > I assume that the driver changes can remain as they are in this patch given
> > that the existing behavior has to be preserved. As j721e_pcie_ctrl_init()
> > programs the strap settings, powering off the controller via
> > pm_runtime_put_sync() and powering it on via pm_runtime_get_sync() shall
> > be implemented within j721e_pcie_ctrl_init() itself leaving the rest of the
> > probe function as-is. To summarize, the driver changes will be:
> > 
> > 	j721e_pcie_ctrl_init()
> > 		...Existing code...
> > 	+	Add pm_runtime_put_sync() here to power off controller
> > 		...Existing code to program strap settings...
> > 	+	Add pm_runtime_get_sync() here to power on controller
> > 		...Existing code...
> > 
> > Please let me know what you think.
> 
> I would've preferred changing the runtime PM calls as I suggested initially, but
> still we would keep it incremented which brings the net effect to the same.
> 
> So you can drop my initial comment and post just this patch with improved patch
> description.

Thank you for the clarification. I will implement the above in the v4
patch.

Regards,
Siddharth.

      reply	other threads:[~2025-09-08  8:06 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-29  9:16 [PATCH v3] PCI: j721e: Fix programming sequence of "strap" settings Siddharth Vadapalli
2025-08-31 12:45 ` Manivannan Sadhasivam
2025-09-01  4:57   ` Siddharth Vadapalli
2025-09-01  5:48     ` Manivannan Sadhasivam
2025-09-01  6:21       ` Siddharth Vadapalli
2025-09-01  6:44         ` Manivannan Sadhasivam
2025-09-01 11:20           ` Siddharth Vadapalli
2025-09-01 14:45             ` Manivannan Sadhasivam
2025-09-02  5:04               ` Siddharth Vadapalli
2025-09-03 13:21                 ` Manivannan Sadhasivam
2025-09-04  6:03                   ` Siddharth Vadapalli
2025-09-08  7:28                     ` Manivannan Sadhasivam
2025-09-08  8:06                       ` Siddharth Vadapalli [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=578e5125-21d8-40c8-aaeb-389599cdd32b@ti.com \
    --to=s-vadapalli@ti.com \
    --cc=bhelgaas@google.com \
    --cc=helgaas@kernel.org \
    --cc=kishon@kernel.org \
    --cc=kwilczynski@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=lpieralisi@kernel.org \
    --cc=mani@kernel.org \
    --cc=robh@kernel.org \
    --cc=srk@ti.com \
    --cc=stable@vger.kernel.org \
    --cc=vigneshr@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox