linux-renesas-soc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 回复: [PATCH v6 01/24] genirq/devres: Add devm_request_threaded_irq_probe() and devm_request_irq_probe()
  2025-06-24  8:13   ` Thomas Gleixner
@ 2025-06-25  2:54     ` 潘闯
  0 siblings, 0 replies; 2+ messages in thread
From: 潘闯 @ 2025-06-25  2:54 UTC (permalink / raw)
  To: Thomas Gleixner, Miquel Raynal
  Cc: 李扬韬, Uwe Kleine-König,
	Rafael J. Wysocki, Daniel Lezcano, Zhang Rui, Lukasz Luba,
	Markus Mayer, Broadcom internal kernel review list,
	Florian Fainelli, Shawn Guo, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, zhanghongchen, Yinbo Zhu,
	Amit Kucheria, Thara Gopinath, Niklas Söderlund,
	Geert Uytterhoeven, Magnus Damm, Heiko Stuebner,
	Bartlomiej Zolnierkiewicz, Krzysztof Kozlowski, Alim Akhtar,
	Maxime Coquelin, Alexandre Torgue, Vasily Khoruzhick, Yangtao Li,
	Chen-Yu Tsai, Jernej Skrabec, Samuel Holland, Thierry Reding,
	Jonathan Hunter, Kunihiko Hayashi, Masami Hiramatsu,
	Matthias Brugger, AngeloGioacchino Del Regno, Srinivas Pandruvada,
	Greg KH, Peter Zijlstra, Nícolas F. R. A. Prado,
	Conor Dooley, Julien Panis, Arnd Bergmann, Uwe Kleine-König,
	Colin Ian King, Raphael Gallais-Pou, Patrice Chotard,
	Jonathan Cameron, Jiri Slaby (SUSE), Sebastian Andrzej Siewior,
	Andrew Morton, Costa Shulyupin, Yury Norov, Cheng-Yang Chou,
	Caleb Sander Mateos, linux-pm@vger.kernel.org, LKML,
	linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev,
	linux-arm-msm@vger.kernel.org, linux-renesas-soc@vger.kernel.org,
	linux-rockchip@lists.infradead.org,
	linux-samsung-soc@vger.kernel.org,
	linux-stm32@st-md-mailman.stormreply.com,
	linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org,
	linux-mediatek@lists.infradead.org

Hi tglx and Miquèl,

On Tue, Jun 24 2025 at 16:13, tglx wrote:
> As you cited correctly I said back then:
> 
>   "So there is certainly an argument to be made that this particular
>   function should print a well formatted and informative error
>   message."
>
> This particular function is: devm_request_threaded_irq().
>
> IOW, I did not ask you should go an create a new one, right?

Thank you all for your valuable feedback and guidance regarding the recent patch. I am a bit confused because, in the v1 version, no new function was added. However, in v2, tglx suggested introducing a new function[1]. Now, I would greatly appreciate your advice on the appropriate approach:

  Should we directly integrate dev_err_probe() inside devm_request_threaded_irq()?
  Or should we create a wrapper function instead?

Thank you for your guidance.

[1]https://lore.kernel.org/all/87h6qpyzkd.ffs@tglx/

Thanks,

        PanChuang

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

* Re: 回复: [PATCH v6 01/24] genirq/devres: Add devm_request_threaded_irq_probe() and devm_request_irq_probe()
       [not found] <draft-87ikjnvqfx.ffs@tglx>
@ 2025-07-21 15:20 ` Thomas Gleixner
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Gleixner @ 2025-07-21 15:20 UTC (permalink / raw)
  To: panchuang, Miquel Raynal
  Cc: 李扬韬, Uwe Kleine-König,
	Rafael J. Wysocki, Daniel Lezcano, Zhang Rui, Lukasz Luba,
	Markus Mayer, Broadcom internal kernel review list,
	Florian Fainelli, Shawn Guo, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, zhanghongchen, Yinbo Zhu,
	Amit Kucheria, Thara Gopinath, Niklas Söderlund,
	Geert Uytterhoeven, Magnus Damm, Heiko Stuebner,
	Bartlomiej Zolnierkiewicz, Krzysztof Kozlowski, Alim Akhtar,
	Maxime Coquelin, Alexandre Torgue, Vasily Khoruzhick, Yangtao Li,
	Chen-Yu Tsai, Jernej Skrabec, Samuel Holland, Thierry Reding,
	Jonathan Hunter, Kunihiko Hayashi, Masami Hiramatsu,
	Matthias Brugger, AngeloGioacchino Del Regno, Srinivas Pandruvada,
	Greg KH, Peter Zijlstra, Nícolas F. R. A. Prado,
	Conor Dooley, Julien Panis, Arnd Bergmann, Uwe Kleine-König,
	Colin Ian King, Raphael Gallais-Pou, Patrice Chotard,
	Jonathan Cameron, Jiri Slaby (SUSE), Sebastian Andrzej Siewior,
	Andrew Morton, Costa Shulyupin, Yury Norov, Cheng-Yang Chou,
	Caleb Sander Mateos, linux-pm@vger.kernel.org, LKML,
	linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev,
	linux-arm-msm@vger.kernel.org, linux-renesas-soc@vger.kernel.org,
	linux-rockchip@lists.infradead.org,
	linux-samsung-soc@vger.kernel.org,
	linux-stm32@st-md-mailman.stormreply.com,
	linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org,
	linux-mediatek@lists.infradead.org

On Sat, Jul 19 2025 at 23:08, Thomas Gleixner wrote:
> On Wed, Jul 09 2025 at 17:13, panchuang@vivo.com wrote:
>> Hi tglx and Miquèl, Just a gentle ping on this patchset. I understand 
>> you're likely busy with many other tasks, but any feedback or guidance 
>> on how to proceed would be greatly appreciated. As discussed in the 
>> previous thread, there was some uncertainty about whether we should 
>> directly integrate dev_err_probe() into devm_request_threaded_irq(), or 
>> if it's better to create a wrapper function. Thanks for your time! 
>> Thanks, Panchuang

For simplicity sake just rename the existing functions
devm_request_threaded_irq() and devm_request_any_context_irq() to
__devm_request_threaded_irq() and __devm_request_any_context_irq().

Then create new functions for the API, which

   - invoke the underscore variants
   - and on error invoke dev_err_probe() similar to what I suggested in
     my reply in this thread.

In the rare case of failure, this will print error messages for the
affected drivers both in the core and at the callsite, but that's not
the end of the world.

Then go and remove the random printks from the drivers, once the core
change has hit upstream.

Thanks,

        tglx




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

end of thread, other threads:[~2025-07-21 15:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <draft-87ikjnvqfx.ffs@tglx>
2025-07-21 15:20 ` 回复: [PATCH v6 01/24] genirq/devres: Add devm_request_threaded_irq_probe() and devm_request_irq_probe() Thomas Gleixner
2025-06-23 12:30 [PATCH v6 00/24] Convert to use devm_request*_irq_probe() Pan Chuang
2025-06-23 12:30 ` [PATCH v6 01/24] genirq/devres: Add devm_request_threaded_irq_probe() and devm_request_irq_probe() Pan Chuang
2025-06-24  8:13   ` Thomas Gleixner
2025-06-25  2:54     ` 回复: " 潘闯

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).