linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC v1 0/2] PCI: j721e: A couple of cleanups
@ 2025-10-13 10:17 Anand Moon
  2025-10-13 10:17 ` [RFC v1 1/2] PCI: j721e: Use devm_clk_get_optional_enabled() to get the clock Anand Moon
  2025-10-13 10:17 ` [RFC v1 2/2] PCI: j721e: Use inline reset GPIO assignment and drop local variable Anand Moon
  0 siblings, 2 replies; 6+ messages in thread
From: Anand Moon @ 2025-10-13 10:17 UTC (permalink / raw)
  To: Vignesh Raghavendra, Siddharth Vadapalli, Lorenzo Pieralisi,
	Krzysztof Wilczyński, Manivannan Sadhasivam, Rob Herring,
	Bjorn Helgaas, open list:PCI DRIVER FOR TI DRA7XX/J721E,
	open list:PCI DRIVER FOR TI DRA7XX/J721E,
	moderated list:PCI DRIVER FOR TI DRA7XX/J721E, open list
  Cc: Anand Moon

Refactor the J721e probe function to use devres helpers for resource
management. This replaces manual clock handling with
devm_clk_get_optional_enabled() and assigns the reset GPIO directly
to the struct members, eliminating unnecessary local variables.

These patches have been compile-tested only, as I do not have access
to the hardware for runtime verification.

Thanks
-Anand

Anand Moon (2):
  PCI: j721e: Use devm_clk_get_optional_enabled() to get the clock
  PCI: j721e: Use inline reset GPIO assignment and drop local variable

 drivers/pci/controller/cadence/pci-j721e.c | 25 +++++++---------------
 1 file changed, 8 insertions(+), 17 deletions(-)


base-commit: 3a8660878839faadb4f1a6dd72c3179c1df56787
-- 
2.50.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-10-13 14:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-13 10:17 [RFC v1 0/2] PCI: j721e: A couple of cleanups Anand Moon
2025-10-13 10:17 ` [RFC v1 1/2] PCI: j721e: Use devm_clk_get_optional_enabled() to get the clock Anand Moon
2025-10-13 11:13   ` Siddharth Vadapalli
2025-10-13 14:02     ` Anand Moon
2025-10-13 10:17 ` [RFC v1 2/2] PCI: j721e: Use inline reset GPIO assignment and drop local variable Anand Moon
2025-10-13 11:22   ` Siddharth Vadapalli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).